dvbdevice: fix a race condition with frontend timeout

Authored by mauroc on Apr 30 2019, 2:56 PM.

Description

dvbdevice: fix a race condition with frontend timeout

There's a race condition around frontendTimeout logic:
when the device is in idle state, a new tune may occur.

That will change the autoTransponder to point to the newly
channel in tune. So, we need to invalidate the autoTransponder
*before* changing the state to DeviceIdle.

Failing to do that makes Kaffeine to invalidade the next
channel, with causes warnings like those:

30-04-19 12:06:53.952 [Warning ] kaffeine.dev: Invalid transmission type when get props from 497.14 MHz
30-04-19 12:07:06.216 [Warning ] kaffeine.dev: Invalid transmission type when get props from 515.14 MHz
30-04-19 12:07:12.570 [Warning ] kaffeine.dev: Invalid transmission type when get props from 527.14 MHz

With may end by making it not to add the proper tuning
parameters for good channels.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

Details

Committed
maurocApr 30 2019, 3:07 PM
Parents
R466:0dd3fb49add9: dvbdevice_linux: improve some warning messages
Branches
Unknown
Tags
Unknown