From: Andrew Benham <adsb@adsb.co.uk>
To: Hans de Goede <hdegoede@redhat.com>
Cc: hverkuil@xs4all.nl,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH] bttv: Use btv->has_radio rather then the card info when registering the tuner
Date: Thu, 24 May 2012 10:58:40 +0100 [thread overview]
Message-ID: <4FBE0650.20407@adsb.co.uk> (raw)
In-Reply-To: <1337513292-3321-2-git-send-email-hdegoede@redhat.com>
On 20/05/12 12:28, Hans de Goede wrote:
> After bttv_init_card2(), bttv_init_tuner(), and it should clearly use
> the updated, dynamic has_radio value from btv->has_radio, rather then
> the const value in the tvcards array.
>
> This fixes the radio not working on my Hauppauge WinTV.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
Thanks for this. The radio on my Hauppauge WinTV last worked with the
2.6.38 kernel.
Since April 2012 there's been no analogue TV in the London area, and as
the radio part of the card didn't work I was about to throw it away :-(
But a quick rebuild of the module and I have radio again. Many thanks.
> diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c
> index ff2933a..1c030fe 100644
> --- a/drivers/media/video/bt8xx/bttv-cards.c
> +++ b/drivers/media/video/bt8xx/bttv-cards.c
> @@ -3649,7 +3649,7 @@ void __devinit bttv_init_tuner(struct bttv *btv)
> struct tuner_setup tun_setup;
>
> /* Load tuner module before issuing tuner config call! */
> - if (bttv_tvcards[btv->c.type].has_radio)
> + if (btv->has_radio)
> v4l2_i2c_new_subdev(&btv->c.v4l2_dev,
> &btv->c.i2c_adap, "tuner",
> 0, v4l2_i2c_tuner_addrs(ADDRS_RADIO));
> @@ -3664,7 +3664,7 @@ void __devinit bttv_init_tuner(struct bttv *btv)
> 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);
--
Andrew Benham Southgate, London N14, United Kingdom
The gates in my computer are AND OR and NOT, not "Bill"
next prev parent reply other threads:[~2012-05-24 9:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-20 11:28 [PATCH] bttv: Use btv->has_radio rather then the card info Hans de Goede
2012-05-20 11:28 ` [PATCH] bttv: Use btv->has_radio rather then the card info when registering the tuner Hans de Goede
2012-05-24 9:58 ` Andrew Benham [this message]
2012-05-20 14:21 ` [PATCH] bttv: Use btv->has_radio rather then the card info Hans Verkuil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FBE0650.20407@adsb.co.uk \
--to=adsb@adsb.co.uk \
--cc=hdegoede@redhat.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).