]> asedeno.scripts.mit.edu Git - linux.git/commit
media: dvb-frontends/stv0367: DDB frontend status inquiry fixup
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 9 Jul 2017 16:36:45 +0000 (12:36 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 20 Jul 2017 18:06:56 +0000 (14:06 -0400)
commit3658ea39f910ecd469eb0f4966422e85080ef4fc
tree3b35f72278310175c0f1ea59d7b3ad7dd6ab20c5
parent979507a751f096272f27065301f6bb3c71f8830b
media: dvb-frontends/stv0367: DDB frontend status inquiry fixup

Return 0 instead of -EINVAL in get_frontend if no demod mode is active.
This fixes ie. dvb-fe-tool getting confused and assuming a DVBv3 FE on idle
frontends when the FE has been put to sleep using sleep().

Also, in read_status(), don't immediately return when no demod is active,
so the remaining code has a chance to clear the signal statistics.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv0367.c