[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)
commit86bad00a2fd5327925417eb05a2b3d1819c42a70
tree9735dc7106a976f6bd3bfcf150c6f4e2157b1257
parent1e35c77dd1f8f3c1c8ef419ec422250fecb31fef
[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