Re: bttv - Radio sound quirks bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 <david.balazic@xxxxxxxxx>
> To: kraxel@xxxxxxxxxxx
> 
> 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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux