All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] bttv: Enable radio if the card description has no radio flag but the tuner has FM
@ 2012-04-17 17:00 Nils Kassube
  0 siblings, 0 replies; only message in thread
From: Nils Kassube @ 2012-04-17 17:00 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, linux-media

Some bttv cards (e.g. card=24) have a tuner which can receive FM radio 
but the card description doesn't have the has_radio flag set, because 
the description is used for cards with and without FM capability. The 
function bttv_init_tuner can detect the tuner either automatically or by 
insmod option. However the original code only partly uses the detected 
tuner capabilities. While the radio device node is created, the device 
is not usable due to the wrong mode_mask. This patch uses the has_radio 
flag from the detected tuner instead of the card description.

Signed-off-by: Nils Kassube <kassube@gmx.net>

--- media_build/linux/drivers/media/video/bt8xx/bttv-cards.c.orig	
2012-04-17 15:17:55.000000000 +0200
+++ media_build/linux/drivers/media/video/bt8xx/bttv-cards.c	
2012-04-17 15:50:48.000000000 +0200
@@ -3665,7 +3665,7 @@
 		tun_setup.type = btv->tuner_type;
 		tun_setup.addr = addr;
 
-		if (bttv_tvcards[btv->c.type].has_radio)
+		if (btv->has_radio)
 			tun_setup.mode_mask |= T_RADIO;
 
 		bttv_call_all(btv, tuner, s_type_addr, &tun_setup);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-17 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 17:00 [Patch] bttv: Enable radio if the card description has no radio flag but the tuner has FM Nils Kassube

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.