linux/drivers/media/pci/bt8xx
Mauro Carvalho Chehab 3192e00645 [media] bttv: fix audio hooks
as reported by smatch:
	drivers/media/pci/bt8xx/bttv-audio-hook.c:201 lt9415_audio() warn: bitwise AND condition is false here
	drivers/media/pci/bt8xx/bttv-audio-hook.c:241 winfast2000_audio() warn: bitwise AND condition is false here
	drivers/media/pci/bt8xx/bttv-audio-hook.c:276 pvbt878p9b_audio() warn: bitwise AND condition is false here
	drivers/media/pci/bt8xx/bttv-audio-hook.c:307 fv2000s_audio() warn: bitwise AND condition is false here
	drivers/media/pci/bt8xx/bttv-audio-hook.c:334 windvr_audio() warn: bitwise AND condition is false here
	drivers/media/pci/bt8xx/bttv-audio-hook.c:371 adtvk503_audio() warn: bitwise AND condition is false here

there are some serious issues at the audio hook implementation.

They're not following what's specified at the DocBook:
	http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-g-tuner.html#tuner-audmode

Basically, it was assuming that the audmode (V4L2_TUNER_MODE_foo)
is a variable with a bit maskk. However, it isn't.

The bitmask only applies to rxsubchans field (V4L2_TUNER_SUB_foo).

As the code is also too complex, and not all hooks were returning
both audmode and rxsubchans to a VIDIOC_G_TUNER, rewrite the
functions, in order to fix both for get and set tuner ioctls.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-05-01 06:24:32 -03:00
..
bt848.h
bt878.c media/bt8xx: Remove old powerpc cruft 2015-03-24 13:33:50 +11:00
bt878.h media/bt8xx: Remove old powerpc cruft 2015-03-24 13:33:50 +11:00
btcx-risc.c [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00
btcx-risc.h [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00
bttv-audio-hook.c [media] bttv: fix audio hooks 2015-05-01 06:24:32 -03:00
bttv-audio-hook.h
bttv-cards.c [media] bttv: Convert to generic TEA575x interface 2015-01-27 10:13:19 -02:00
bttv-driver.c [media] bttv: fix indenting 2015-05-01 06:03:49 -03:00
bttv-gpio.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-i2c.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-05-02 14:38:53 -07:00
bttv-if.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-input.c [media] rc-core: document the protocol type 2014-07-23 21:50:48 -03:00
bttv-risc.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-vbi.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttvp.h [media] bttv: embed video_device 2015-04-08 06:45:12 -03:00
dst_ca.c [media] bt8xx: just return 0 instead of using a var 2014-09-03 17:59:29 -03:00
dst_ca.h
dst_common.h
dst_priv.h
dst.c [media] bt8xx: make driver routines fit into its own namespcae 2014-05-23 19:48:12 -03:00
dvb-bt8xx.c Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
dvb-bt8xx.h
Kconfig [media] bttv: Convert to generic TEA575x interface 2015-01-27 10:13:19 -02:00
Makefile [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00