[media] ivtv: fix incorrect audio mode report in log_status
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 18 May 2015 13:29:17 +0000 (10:29 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 30 May 2015 14:35:25 +0000 (11:35 -0300)
commit3725d53149e190c6d8da80d458795a396705010e
tree1d54d3d2cd7ecf893cc41b4113d155252f30c950
parentddfa6c63f5b5db14e9fcadc0b259a843fadea234
[media] ivtv: fix incorrect audio mode report in log_status

The log_status ioctl should report if the audio input has mode Bilingual. However, the
check against the itv->dualwatch_stereo_mode is completely wrong and is a left-over from
the distant past. Not only is the bitmask obviously wrong, the test itself is broken too
since itv->dualwatch_stereo_mode is no longer a bitmask at all.

Fix this code properly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/ivtv/ivtv-ioctl.c