linux/drivers/media
Mauro Carvalho Chehab 6175a5af31 [media] au0828: Fix dev_state handling
[ Upstream commit e8e3039f5b ]

The au0828 dev_state is actually a bit mask. It should not be
checking with "==" but, instead, with a logic and. There are some
places where it was doing it wrong.

Fix that by replacing the dev_state set/clear/test with the
bitops.

As reviewed by Shuah:
	"Looks good. Tested running bind/unbind au0828 loop for 1000 times.
	Didn't see any problems and the v4l2_querycap() problem has been
	fixed with this patch.

	After the above test, ran bind/unbind snd_usb_audio 1000 times.
	Didn't see any problems. Generated media graph and the graph
	looks good."

Cc: stable@vger.kernel.org
Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com>
Tested-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2016-04-20 01:03:43 -04:00
..
common [media] saa7146: embed video_device 2015-04-02 23:29:01 -03:00
dvb-core [media] media: dvb-core: Don't force CAN_INVERSION_AUTO in oneshot mode 2016-02-01 11:30:47 -05:00
dvb-frontends [media] tda1004x: only update the frontend properties if locked 2016-02-15 15:45:34 -05:00
firewire [media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device" 2014-11-25 13:30:31 -02:00
i2c [media] adv7511: TX_EDID_PRESENT is still 1 after a disconnect 2016-04-18 08:50:37 -04:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] bttv: Width must be a multiple of 16 when capturing planar formats 2016-04-18 08:50:44 -04:00
platform media/vivid-osd: fix info leak in ioctl 2016-01-31 11:23:40 -08:00
radio [media] media: radio-si4713: improve usage of gpiod API 2015-04-08 06:40:33 -03:00
rc [media] rc: sunxi-cir: Initialize the spinlock properly 2016-02-01 12:39:47 -05:00
tuners [media] si2157: return -EINVAL if firmware blob is too big 2016-04-13 17:14:22 -04:00
usb [media] au0828: Fix dev_state handling 2016-04-20 01:03:43 -04:00
v4l2-core [media] media: v4l2-compat-ioctl32: fix missing length copy in put_v4l2_buffer32 2016-04-18 08:50:34 -04:00
Kconfig Kconfig: disable Media Controller for DVB 2015-06-17 20:53:36 -10:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00