OSDN Git Service

media: dvb-core: Don't force CAN_INVERSION_AUTO in oneshot mode
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 31 Aug 2015 09:13:45 +0000 (06:13 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:13 +0000 (15:07 -0800)
commitaecba569dc08bc746885aeae6086886cd62db7eb
tree633529ed770360339e4af2abe1d440c99b8ebd71
parent3214cf3b5fbe69b0274cb18a4147f62f926bd7fd
media: dvb-core: Don't force CAN_INVERSION_AUTO in oneshot mode

commit c9d57de6103e343f2d4e04ea8d9e417e10a24da7 upstream.

When in FE_TUNE_MODE_ONESHOT the frontend must report
the actual capabilities so user can take appropriate
action.

With frontends that can't do auto inversion this is done
by dvb-core automatically so CAN_INVERSION_AUTO is valid.

However, when in FE_TUNE_MODE_ONESHOT this is not true.

So only set FE_CAN_INVERSION_AUTO in modes other than
FE_TUNE_MODE_ONESHOT

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/dvb-core/dvb_frontend.c