2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 22:53:55 +08:00
linux-next/drivers/media/pci
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
..
b2c2 [media] pci: flexcop: Remove redundant pci_set_drvdata 2013-10-17 05:56:55 -03:00
bt8xx [media] bttv: fix audio hooks 2015-05-01 06:24:32 -03:00
cx18 [media] cx18: avoid going past input/audio array 2015-04-30 13:15:31 -03:00
cx88 [media] cx88: embed video_device 2015-04-08 06:43:16 -03:00
cx23885 Merge branch 'patchwork' into v4l_for_linus 2015-04-21 06:12:35 -03:00
cx25821 [media] cx25821: remove video output support 2014-12-23 10:22:00 -02:00
ddbridge [media] ddbridge: remove unneeded check before dvb_unregister_device() 2014-12-04 15:28:52 -02:00
dm1105 [media] dm1105: fix sparse warning 2014-09-03 10:32:59 -03:00
ivtv [media] ivtv: avoid going past input/audio array 2015-04-30 13:36:15 -03:00
mantis [media] mantis: remove dead code 2015-04-30 15:31:18 -03:00
meye [media] meye: embed video_device 2015-04-02 23:35:01 -03:00
ngene [media] ngene: preventing dereferencing a NULL pointer 2015-04-30 13:33:06 -03:00
pluto2 [media] media_tree: Fix spelling errors 2013-12-09 14:50:50 -02:00
pt1 [media] media: earthsoft: logging neatening 2014-11-03 11:00:41 -02:00
pt3 [media] media: earthsoft: logging neatening 2014-11-03 11:00:41 -02:00
saa7134 [media] saa7134: fix indent issues 2015-04-30 13:16:29 -03:00
saa7146 [media] saa7146: embed video_device 2015-04-02 23:29:01 -03:00
saa7164 [media] saa7164: Check if dev is NULL before dereferencing it 2015-04-30 13:34:08 -03:00
smipcie [media] smipcie: switch ts2022 to ts2020 driver 2015-04-02 22:25:14 -03:00
solo6x10 [media] solo6x10: s/uint8_t/u8/ 2015-01-27 10:03:19 -02:00
sta2x11 [media] sta2x11: embed video_device 2015-04-02 23:56:44 -03:00
ttpci [media] saa7146: embed video_device 2015-04-02 23:29:01 -03:00
tw68 [media] tw68: remove unnecessary version.h inclusion 2015-01-27 10:08:49 -02:00
zoran [media] zoran: fix indent 2015-04-30 13:36:44 -03:00
Kconfig [media] smipcie: SMI pcie bridge driver for DVBSky S950 V3 dvb-s/s2 cards 2014-11-03 18:06:45 -02:00
Makefile [media] smipcie: SMI pcie bridge driver for DVBSky S950 V3 dvb-s/s2 cards 2014-11-03 18:06:45 -02:00