]> git.baikalelectronics.ru Git - kernel.git/commit
media: dvb/earth-pt1: fix wrong initialization for demod blocks
authorAkihiro Tsukada <tskd08@gmail.com>
Thu, 10 Jan 2019 09:56:23 +0000 (04:56 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 4 Mar 2019 11:17:02 +0000 (06:17 -0500)
commit0b74f71ee863cff3ef37389c1797c225ab3003e2
treed6bfba0ebc361a937d5bf0045fe24057c21998d7
parentcb04fbc335ff72768dee7d1d044d36732fb02ae8
media: dvb/earth-pt1: fix wrong initialization for demod blocks

earth-pt1 driver was decomposed/restructured by the commit de81b17f72fc
("media: dvb: earth-pt1: decompose pt1 driver into sub drivers"),
but it introduced a problem regarding concurrent streaming:
Opening a new terrestial stream stops the reception of an existing,
already-opened satellite stream.

The demod IC in earth-pt1 boards contains 2 pairs of terr. and sat. blocks,
supporting 4 concurrent demodulations, and the above problem was because
the config of a terr. block contained whole reset/init of the pair blocks,
thus each open() of a terrestrial frontend wrongly cleared the config of
its peer satellite block of the demod.
This whole/pair reset should be executed earlier and not on each open().

Fixes: de81b17f72fc ("media: dvb: earth-pt1: decompose pt1 driver into sub drivers")
Signed-off-by: Akihiro Tsukada <tskd08@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/pt1/pt1.c