media: lgdt3306a: Add QAM AUTO support
authorBrad Love <brad@nextdimension.cc>
Fri, 5 Jan 2018 00:04:19 +0000 (19:04 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 09:37:30 +0000 (04:37 -0500)
commit4966c0c5c61c0c3a5fb0ebfed7495df02027205f
tree8b12102da04e59b184f4dbd305511dbb88b0770e
parent4c7c3f9b1a85d26ffd4a8a31dd661856c7482357
media: lgdt3306a: Add QAM AUTO support

As configured currently, modulation in the driver is set to auto detect,
no matter what the user sets modulation to. This leads to both QAM64
and QAM256 having the same effect. QAM AUTO is explicitly added here for
compatibility with scanning software who can use AUTO instead of doing
essentially the same scan twice.
Also included is a module option to enforce a specific QAM modulation if
desired. The true modulation is read before calculating the snr.
Changes are backwards compatible with current behaviour.

Signed-off-by: Brad Love <brad@nextdimension.cc>
Reviewed-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/lgdt3306a.c