]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cobalt: fix irqs used for the adv7511 transmitter
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 21 May 2015 09:19:28 +0000 (06:19 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 30 May 2015 14:19:01 +0000 (11:19 -0300)
commit7f67c05b7edbffc3911ee6759c80a23231f7ba56
tree9735dc7106a976f6bd3bfcf150c6f4e2157b1257
parentad9b678ee2d2eb50446d1a2980556423d2fd4b10
[media] cobalt: fix irqs used for the adv7511 transmitter

The interrupt bit assignments use for the adv7511 were off by one.
This means that the current scheme (bit << (4 * stream_index)) can
no longer be used.

Fix this by precalculating and storing the correct masks in the
cobalt_stream struct.

This wasn't noticed before because the adv7511 interrupts are very
rare. But for CEC support these interrupts are essential, so this made
me realize that it wasn't working correctly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/cobalt/cobalt-driver.c
drivers/media/pci/cobalt/cobalt-driver.h
drivers/media/pci/cobalt/cobalt-irq.c