Skip to content

Commit

Permalink
V4L/DVB (13396): correct initialization of audio_mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent c4c1e29 commit b921d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/saa717x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b921d92

Please sign in to comment.