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

V4L/DVB (5991): dvb-pll: Set minimum and maximum frequency properly

The tuner maximum frequency wasn't being set, while the minimum
frequency was set to what the maximum should have been.

If a future patch were to enforce these limits, dvb-pll would be
effectively broken.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Trent Piepho and committed by
Mauro Carvalho Chehab
0d84a62b de23084a

+1 -1
+1 -1
drivers/media/dvb/frontends/dvb-pll.c
··· 784 784 strncpy(fe->ops.tuner_ops.info.name, desc->name, 785 785 sizeof(fe->ops.tuner_ops.info.name)); 786 786 fe->ops.tuner_ops.info.frequency_min = desc->min; 787 - fe->ops.tuner_ops.info.frequency_min = desc->max; 787 + fe->ops.tuner_ops.info.frequency_max = desc->max; 788 788 if (!desc->initdata) 789 789 fe->ops.tuner_ops.init = NULL; 790 790 if (!desc->sleepdata)