upstream: [media] dib8000: improves the auto search mode check logic
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 15 Dec 2013 12:57:40 +0000 (09:57 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:41 +0000 (11:52 +0900)
commit34002f4de88e07829cdc37b72235f6cd5a9d9292
treef489084bbd34e4f2bab7bdd2b0226753c5d0e865
parent3faf6b3cc5533704e2a02792a8bf5781e09188db
upstream: [media] dib8000: improves the auto search mode check logic

The logic that detects if auto search mode should be used is too
complex.

Also, it doesn't cover all cases, as the dib8000_tune logic
requires either auto mode or a fully specified manual mode.
So, move it to a separate function and add some extra debug
data to help identifying when it falled back to auto mode,
because the manual settings are invalid.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Acked-by: Patrick Boettcher <pboettcher@kernellabs.com>
drivers/media/dvb-frontends/dib8000.c