Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[PATCH] drivers/media/video: correct initialization of aud..

 
   Soft32 Home -> Linux -> Kernel RSS
Next:  2.6.31.4+Benchmarks: Core i5/7 - No turbo boost, ..  
Author Message
Julia Lawall

External


Since: Nov 02, 2007
Posts: 206



(Msg. 1) Posted: Sun Nov 08, 2009 1:20 pm
Post subject: [PATCH] drivers/media/video: correct initialization of audio_mode
Archived from groups: linux>kernel (more info?)

From: Julia Lawall <julia.DeleteThis@diku.dk>

This initialization of the value of audio_mode is the one used if nothing
matches in the subsequent switch. The variable audio_mode is subsequently
assigned to constants such as TUNER_AUDIO_MONO and TUNER_AUDIO_STEREO.
TUNER_AUDIO_STEREO has the same value as V4L2_TUNER_MODE_STEREO, so it
would seem better to use that value here.

Signed-off-by: Julia Lawall <julia.DeleteThis@diku.dk>

---
drivers/media/video/saa717x.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/saa717x.c b/drivers/media/video/saa717x.c
index b15c409..a00fb25 100644
--- a/drivers/media/video/saa717x.c
+++ b/drivers/media/video/saa717x.c
@@ -1312,7 +1312,7 @@ static int saa717x_s_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt)
"MONO", "STEREO", "LANG1", "LANG2/SAP"
};

- audio_mode = V4L2_TUNER_MODE_STEREO;
+ audio_mode = TUNER_AUDIO_STEREO;

switch (vt->audmode) {
case V4L2_TUNER_MODE_MONO:
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo.DeleteThis@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[PATCH 3/3] drivers/media/video/cpia_pp.c: don't use _WORK.. - pp_cam_entry->cb_task need not to be _NOAUTOREL ... because in fact it is never used ??? Signed-off-by: Oleg Nester...

[PATCH -mm] compile error in drivers/media/video - LD drivers/media/video/built-in.o drivers/media/video/saa7134/built-in.o:(.data+0x86ac): multiple definition of..

[RFC: 2.6 patch] drivers/media/video/bt8xx/: possible clea.. - This patch contains the following possible cleanups: - remove the following unused global functions: - bttv-if.c:..

[RFC: 2.6 patch] drivers/media/video/bt8xx/: possible clea.. - This patch contains the following possible cleanups: - remove the following unused global functions: - bttv-if.c:..

[2.6 patch] drivers/media/video/cafe_ccic.c: fix NULL dere.. - We shouldn't dereference "cam" when we already know it's NULL. Spotted by the Coverity checker. Signed-off-...

[PATCH] drivers/media/video: Convert to generic boolean-va.. - Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> --- Compile-tested with "allyes", "allmo...
       Soft32 Home -> Linux -> Kernel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]