]> asedeno.scripts.mit.edu Git - linux.git/commit
media: dvb-pll: fix tuner frequency ranges
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 20 Nov 2018 10:19:36 +0000 (05:19 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 27 Nov 2018 18:50:58 +0000 (13:50 -0500)
commit3d8e450f517cdb33da77827ec75929354753e9c0
treec9131317707aa944f6b3afa7b7d51975bc4aa4b2
parentea2fc769719f9cc8e26845e8ffa2a719e2724645
media: dvb-pll: fix tuner frequency ranges

Tuners should report frequencies in Hz. That works fine on most
drivers, but, in the case of dvb-pll, some settings are for
satellite tuners, while others are for terrestrial/cable ones.

The code was trying to solve it at probing time, but that doesn't
work, as, when _attach is called, the delivery system may be wrong.

Fix it by ensuring that all frequencies are in Hz at the per-tuner
max/min values.

While here, add a debug message, as this would help to debug any
issues there.

It partially fixes the following bug:
  https://bugzilla.opensuse.org/show_bug.cgi?id=1116374

Fixes: a3f90c75b833 ("media: dvb: convert tuner_info frequencies to Hz")
Reported-by: Stakanov Schufter <stakanov@eclipso.eu>
Reported-by: Takashi Iwai <tiwai@suse.de>
Cc: stable@vger.kernel.org # For 4.19
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/dvb-frontends/dvb-pll.c