Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] dvb_frontend: better handle lna set errors

If an attempt to set LNA fails, restore the cache to LNA_AUTO,
in order to make it to reflect the current LNA status.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

+2
+2
drivers/media/dvb-core/dvb_frontend.c
··· 1882 1882 c->lna = tvp->u.data; 1883 1883 if (fe->ops.set_lna) 1884 1884 r = fe->ops.set_lna(fe); 1885 + if (r < 0) 1886 + c->lna = LNA_AUTO; 1885 1887 break; 1886 1888 1887 1889 default: