]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:30 +0000 (14:50 +0100)
commit54cf6fff4f77ec6b51d6ac65ab8098479fca5b4c
tree3aa4e516631328053d446b495405f36b998f825e
parent4eef49adea420b04c66a08e69093dc07aad8fb2c
media: dvb/earth-pt1: fix wrong initialization for demod blocks

[ Upstream commit 15d90a6ae98e6d2c68497b44a491cb9efbb98ab1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/pt1/pt1.c