OSDN Git Service

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)
commit15d90a6ae98e6d2c68497b44a491cb9efbb98ab1
treed6bfba0ebc361a937d5bf0045fe24057c21998d7
parentc310d1f97c94f68eb4b3860933b2e977c6b0cf5b
media: dvb/earth-pt1: fix wrong initialization for demod blocks

earth-pt1 driver was decomposed/restructured by the commit b732539efdba
("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: b732539efdba ("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