David Balazic wrote:
> 
> Forwarding here for better exposure :
> 
> -------- Original Message --------
> Subject: bttv - Radio sound quirks bug
> Date: Tue, 27 May 2003 10:07:02 +0200
> From: David Balazic <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> 
> Hi !
> 
> I have a Hauppauge WinTV PCI-FM card ( bt878, msp3415 , stereo, FM radio
> )
> 
> Whenever /dev/radio is opened, I get the following kernel message:
> tuner: radio freq (400.00) out of range (65-108)
> 
> If the radio was already playing ( by running /usr/bin/radio, selecting
> a channel and exiting with "x" ), then the sound is mouted for a part of
> second. Simple test :
> 
> cat /dev/radio
> 
> This happens with driver versions :
> bttv: driver version 0.7.104 loaded
> bttv: driver version 0.7.96 loaded
> bttv: driver version 0.7.91 loaded
> 
> For more details please see :
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91625
> 

The cause is in bttv-driver.c :

static int radio_open(struct video_device *dev, int flags)
{
        struct bttv *btv = (struct bttv *)(dev-1);
        unsigned long v;

        down(&btv->lock);
        if (btv->user)
                goto busy_unlock;
        btv->user++;

        btv->radio = 1;
        v = 400*16;  //                                <--- here
        bttv_call_i2c_clients(btv,VIDIOCSFREQ,&v); //  <--- and here
        bttv_call_i2c_clients(btv,AUDC_SET_RADIO,&btv->tuner_type);
        bt848_muxsel(btv,0);
        up(&btv->lock);

        return 0;   

 busy_unlock:
        up(&btv->lock);
        return -EBUSY;
}

Why are those two lines there ?
They try to set the tuner to 400 MHz, but that is illegal for radio
and is flaged as such deeper in the code.

Does anybody maintain this driver ?

-- 
David Balazic
--------------
"Be excellent to each other." - Bill S. Preston, Esq., & "Ted" Theodore
Logan
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -


--
video4linux-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/video4linux-list

Reply via email to