mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-17 22:41:25 +00:00
[media] ivtv: Fix radio support
Although the ivtv driver reports radio support through the V4L2 API, it fails to actually enable it. This patch fixes that. Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
1eb6337835
commit
8f33450a4c
@ -1180,6 +1180,8 @@ static int __devinit ivtv_probe(struct pci_dev *pdev,
|
|||||||
setup.addr = ADDR_UNSET;
|
setup.addr = ADDR_UNSET;
|
||||||
setup.type = itv->options.tuner;
|
setup.type = itv->options.tuner;
|
||||||
setup.mode_mask = T_ANALOG_TV; /* matches TV tuners */
|
setup.mode_mask = T_ANALOG_TV; /* matches TV tuners */
|
||||||
|
if (itv->options.radio > 0)
|
||||||
|
setup.mode_mask |= T_RADIO;
|
||||||
setup.tuner_callback = (setup.type == TUNER_XC2028) ?
|
setup.tuner_callback = (setup.type == TUNER_XC2028) ?
|
||||||
ivtv_reset_tuner_gpio : NULL;
|
ivtv_reset_tuner_gpio : NULL;
|
||||||
ivtv_call_all(itv, tuner, s_type_addr, &setup);
|
ivtv_call_all(itv, tuner, s_type_addr, &setup);
|
||||||
|
Loading…
Reference in New Issue
Block a user