diff options
author | Julia Lawall <julia@diku.dk> | 2009-11-08 12:49:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:40 -0500 |
commit | b921d929f4a012be3e809fbb1ff1e8e6c0751c06 (patch) | |
tree | 835ab0d06d1f12f552339091898a68c5bea93343 /drivers/media/video/saa717x.c | |
parent | c4c1e295d2721470141843e31a69c4b1c131e0f7 (diff) |
V4L/DVB (13396): correct initialization of audio_mode
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@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa717x.c')
-rw-r--r-- | 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 ad6cd37311fa..6818df571168 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) | |||
1312 | "MONO", "STEREO", "LANG1", "LANG2/SAP" | 1312 | "MONO", "STEREO", "LANG1", "LANG2/SAP" |
1313 | }; | 1313 | }; |
1314 | 1314 | ||
1315 | audio_mode = V4L2_TUNER_MODE_STEREO; | 1315 | audio_mode = TUNER_AUDIO_STEREO; |
1316 | 1316 | ||
1317 | switch (vt->audmode) { | 1317 | switch (vt->audmode) { |
1318 | case V4L2_TUNER_MODE_MONO: | 1318 | case V4L2_TUNER_MODE_MONO: |