Skip to contentSkip to conversation

Repost about fm801 tea575x_tuner in 2.6 kernels

DISCUSSION Kovalyev Sergey 2 participants 5 messages Feb 15, 2005 – Feb 17, 2005

lore
Share & tools
lore
#0 lore raw

Hello all!

When I trying to do

#modprobe snd_fm801 tea575x_tuner=1

I see this thing in my syslog:

kernel: videodev: "TEA5757 radio" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/

As far as I understand, this module is not compatible with linux-2.6 kernels, so, how to fix this problem?

WBR, RandoMan.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw
Quoted 6 lines · Kovalyev Sergey

Hello all!

When I trying to do

#modprobe snd_fm801 tea575x_tuner=1

Quoted 8 lines

I see this thing in my syslog:

kernel: videodev: "TEA5757 radio" has no release callback. Please fix your driver for proper sysfs
support, see http://lwn.net/Articles/36850/

As far as I understand, this module is not compatible with linux-2.6 kernels, so, how to fix this problem?

Nope. This message is only warning and completely harmless. The driver should work. This patch will remove the warning:

Index: tea575x-tuner.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/i2c/other/tea575x-tuner.c,v retrieving revision 1.3

tea575x-tuner.c +5 -0
diff -u -r1.3 tea575x-tuner.c
@@ -168,6 +168,10 @@
 	}
 }
 
+static void snd_tea575x_release(struct video_device *vfd)
+{
+}
+
 /*
  * initialize all the tea575x chips
  */
@@ -186,6 +190,7 @@
 	strcpy(tea->vd.name, tea->tea5759 ? "TEA5759 radio" : "TEA5757 radio");
 	tea->vd.type = VID_TYPE_TUNER;
 	tea->vd.hardware = VID_HARDWARE_RTRACK;	/* FIXME: assign new number */
+	tea->vd.release = snd_tea575x_release;
 	video_set_drvdata(&tea->vd, tea);
 	tea->vd.fops = &tea->fops;
 	tea->fops.owner = tea->card->module;

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw
Quoted 15 lines · Jaroslav Kysela
Quoted 11 lines · Kovalyev Sergey

Hello all!

When I trying to do

#modprobe snd_fm801 tea575x_tuner=1

I see this thing in my syslog:

kernel: videodev: "TEA5757 radio" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/

Quoted 9 lines
Quoted 3 lines

As far as I understand, this module is not compatible with linux-2.6 kernels, so, how to fix this problem?

Nope. This message is only warning and completely harmless. The driver should work. This patch will remove the warning:

Hm...
Under 2.4.x kernels I used this command:
modprobe snd_fm801 tea575x_tuner=2
Now, under 2.6, it says that "2" is invalid valut into syslog:
kernel: snd_fm801: 2' invalid for parameter tea575x_tuner'
So, I trying to use
modprobe snd_fm801 tea575x_tuner=1.
Seems that all ok, even fm says that all ok,
but I hear nothing. Master and Aux channels are unmuted and set to maximum value... (This situation is under 2.6.8.1 with built-in alsa drivers)

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#3 lore raw
Quoted 5 lines · Kovalyev Sergey
Quoted 5 lines

Nope. This message is only warning and completely harmless. The driver should work. This patch will remove the warning:

Quoted 8 lines

Hm...
Under 2.4.x kernels I used this command:
modprobe snd_fm801 tea575x_tuner=2
Now, under 2.6, it says that "2" is invalid valut into syslog:
kernel: snd_fm801: 2' invalid for parameter tea575x_tuner' So, I trying to use
modprobe snd_fm801 tea575x_tuner=1.
Seems that all ok, even fm says that all ok,

The radio chip cannot be detected. Here is the patch which will fix the module parameter (and use tea575x_tuner=2 as for 2.4):

Index: fm801.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/fm801.c,v
retrieving revision 1.55

fm801.c +1 -1
diff -u -r1.55 fm801.c
@@ -64,7 +64,7 @@
 MODULE_PARM_DESC(id, "ID string for the FM801 soundcard.");
 module_param_array(enable, bool, NULL, 0444);
 MODULE_PARM_DESC(enable, "Enable FM801 soundcard.");
-module_param_array(tea575x_tuner, bool, NULL, 0444);
+module_param_array(tea575x_tuner, int, NULL, 0444);
 MODULE_PARM_DESC(tea575x_tuner, "Enable TEA575x tuner.");
 
 /*

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#4 lore raw

Hello, Jaroslav Kysela!

Quoted 22 lines · Kovalyev Sergey
Quoted 10 lines
Quoted 10 lines

Nope. This message is only warning and completely harmless. The driver should work. This patch will remove the warning:

Quoted 10 lines

Hm...
Under 2.4.x kernels I used this command:
modprobe snd_fm801 tea575x_tuner=2
Now, under 2.6, it says that "2" is invalid valut into syslog:
kernel: snd_fm801: 2' invalid for parameter tea575x_tuner' So, I trying to use
modprobe snd_fm801 tea575x_tuner=1.
Seems that all ok, even fm says that all ok,

Quoted 5 lines

The radio chip cannot be detected. Here is the patch which will fix the module parameter (and use tea575x_tuner=2 as for 2.4):

Big big thanks! Radio works now!

\\RandoMan

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click