Skip to contentSkip to conversation

: No sound with ALC260 chip

ALSA - driver 0002339 Jonathan Woithe 2 participants 5 messages Aug 8, 2006 – Aug 9, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

"Lubomir" posted via the bugtracker:

Quoted 2 lines

I own an Acer c204 and am the only one person who use linux on it. I can not get sound out of my headphone or the normal speaker. ...

The bugtracker is currently unreachable and has been for the past 14 hours (at least for me) so I figured I'd respond to the list on the off-chance Lubomir (the original reporter) is listening.

It sounds like this particular Acer laptop needs more than the basic ALC260 model. There are a number of predefined models which can be selected using the "model" option to the snd-hda-intel module. For example:

modprobe snd-hda-intel model=acer

AFAIK there are currently four machine-specific models to choose from for the ALC260 codec: basic, acer, hp, fujitsu. Basic is I believe the default, and acer is the most likely to work for you. Please give each of these a go in turn and see if you manage to get any sound. Note that the snd-hda-codec module will need to be unloaded before trying a different model so the change takes effect.

If none of the existing models work, try the "test" model. This shows controls for all features of the ALC260 even if they aren't used in your particular laptop. See if you can get sound by manipulating the controls provided. Note that you'll have to enable debug support in ALSA for the "test" model to be available.

Report back your findings and we'll then work towards adding support as required.

If you need assistance comprehending the test model controls contact me off-list or check the list archives for previous posts from me on this subject.

Regards
jonathan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#2 lore raw

At Tue, 8 Aug 2006 09:37:46 +0930 (CST),

Quoted 28 lines · Jonathan Woithe

"Lubomir" posted via the bugtracker:

Quoted 2 lines

I own an Acer c204 and am the only one person who use linux on it. I can not get sound out of my headphone or the normal speaker. ...

The bugtracker is currently unreachable and has been for the past 14 hours (at least for me) so I figured I'd respond to the list on the off-chance Lubomir (the original reporter) is listening.

It sounds like this particular Acer laptop needs more than the basic ALC260 model. There are a number of predefined models which can be selected using the "model" option to the snd-hda-intel module. For example:

modprobe snd-hda-intel model=acer

AFAIK there are currently four machine-specific models to choose from for the ALC260 codec: basic, acer, hp, fujitsu. Basic is I believe the default, and acer is the most likely to work for you. Please give each of these a go in turn and see if you manage to get any sound. Note that the snd-hda-codec module will need to be unloaded before trying a different model so the change takes effect.

If none of the existing models work, try the "test" model. This shows controls for all features of the ALC260 even if they aren't used in your particular laptop. See if you can get sound by manipulating the controls provided. Note that you'll have to enable debug support in ALSA for the "test" model to be available.

Quoted 6 lines

Report back your findings and we'll then work towards adding support as required.

If you need assistance comprehending the test model controls contact me off-list or check the list archives for previous posts from me on this subject.

It seems that his laptop has a problem with with communication to HD-audio codec, too, according to his recent post to alsa-devel ML:

Quoted 13 lines

To: [email protected]
Subject: [Alsa-devel] No chance to get the soundcard working
From: [email protected]

Hello, i have a big problem with my soundcard. It have a Realtek alc260 chip (intel-hda) and its build in an Acer c204tmi notebook. I can not get that card working with linux. I tried over 20 linux live cds and have installed now gentoo linux on it. The problem i have is: the sound card is been found by alsaconf and can be configured. Alsamixer also found the card and can configure it. I have unmuted every channel and set it up to max. I have always tired the headphone. I never could get sound of that notebook. In dmesg i found that -> ALSA /var/tmp/portage/alsa-driver-1.0.12_rc1-r1/work/alsa- driver-1.0.12rc1/pci/hda/..

Quoted 8 lines

/../alsa-kernel/pci/hda/hdaintel.c:525: hda_intel: azx_get_response timeout, switching to single_cmd mode...
i do not know is that the reason why i have no sound. I have testet the sound with xmms,KsCD,Noatun, and other. xmms and noatun do not start playing and KsCD start playing, but i can not hear anything.
I also cant ask someone who got alsa running, because i am the only person who use that notebook under linux.
I do not know what i could do. Can you help me?

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#3 lore raw

Hi Takashi

Quoted 3 lines
Quoted 3 lines

"Lubomir" posted via the bugtracker:

Quoted 2 lines

I own an Acer c204 and am the only one person who use linux on it. I can not get sound out of my headphone or the normal speaker. ...

:

Quoted 27 lines
Quoted 2 lines

It sounds like this particular Acer laptop needs more than the basic ALC260 model. ...

It seems that his laptop has a problem with with communication to HD-audio codec, too, according to his recent post to alsa-devel ML:

Quoted 21 lines

To: [email protected]
Subject: [Alsa-devel] No chance to get the soundcard working
From: [email protected]

Hello, i have a big problem with my soundcard. It have a Realtek alc260 chip (intel-hda) and its build in an Acer c204tmi notebook. I can not get that card working with linux. I tried over 20 linux live cds and have installed now gentoo linux on it. The problem i have is: the sound card is been found by alsaconf and can be configured. Alsamixer also found the card and can configure it. I have unmuted every channel and set it up to max. I have always tired the headphone. I never could get sound of that notebook. In dmesg i found that -> ALSA /var/tmp/portage/alsa-driver-1.0.12_rc1-r1/work/alsa- driver-1.0.12rc1/pci/hda/..
/../alsa-kernel/pci/hda/hdaintel.c:525: hda_intel: azx_get_response timeout, switching to single_cmd mode...
i do not know is that the reason why i have no sound. I have testet the sound with xmms,KsCD,Noatun, and other. xmms and noatun do not start playing and KsCD start playing, but i can not hear anything.
I also cant ask someone who got alsa running, because i am the only person who use that notebook under linux.
I do not know what i could do. Can you help me?

Interesting. For what it's worth, I also see the azx_get_response timeout message every so often on my ALC260-equipped laptop, but its presence doesn't appear to prevent the sound system from working. The last kernel I definitely saw the message was one of the 2.6.16-rt kernels. I recently put 2.6.17-rt8 on there but haven't checked for the message lately.

One thing which would be interesting to know is whether the original poster sees this timeout message on every boot or not. Given that the message doesn't appear to stop alsa from functioning in my case, it may be worth trying the model settings from my previous post anyway.

Regards
jonathan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#4 lore raw

At Wed, 9 Aug 2006 09:05:33 +0930 (CST),

Quoted 35 lines · Jonathan Woithe

Hi Takashi

Quoted 3 lines
Quoted 3 lines

"Lubomir" posted via the bugtracker:

Quoted 2 lines

I own an Acer c204 and am the only one person who use linux on it. I can not get sound out of my headphone or the normal speaker. ...

:

Quoted 27 lines
Quoted 2 lines

It sounds like this particular Acer laptop needs more than the basic ALC260 model. ...

It seems that his laptop has a problem with with communication to HD-audio codec, too, according to his recent post to alsa-devel ML:

Quoted 21 lines

To: [email protected]
Subject: [Alsa-devel] No chance to get the soundcard working
From: [email protected]

Hello, i have a big problem with my soundcard. It have a Realtek alc260 chip (intel-hda) and its build in an Acer c204tmi notebook. I can not get that card working with linux. I tried over 20 linux live cds and have installed now gentoo linux on it. The problem i have is: the sound card is been found by alsaconf and can be configured. Alsamixer also found the card and can configure it. I have unmuted every channel and set it up to max. I have always tired the headphone. I never could get sound of that notebook. In dmesg i found that -> ALSA /var/tmp/portage/alsa-driver-1.0.12_rc1-r1/work/alsa- driver-1.0.12rc1/pci/hda/..
/../alsa-kernel/pci/hda/hdaintel.c:525: hda_intel: azx_get_response timeout, switching to single_cmd mode...
i do not know is that the reason why i have no sound. I have testet the sound with xmms,KsCD,Noatun, and other. xmms and noatun do not start playing and KsCD start playing, but i can not hear anything.
I also cant ask someone who got alsa running, because i am the only person who use that notebook under linux.
I do not know what i could do. Can you help me?

Quoted 5 lines

Interesting. For what it's worth, I also see the azx_get_response timeout message every so often on my ALC260-equipped laptop, but its presence doesn't appear to prevent the sound system from working. The last kernel I definitely saw the message was one of the 2.6.16-rt kernels. I recently put 2.6.17-rt8 on there but haven't checked for the message lately.

This should be independent from the kernel version.
It's an error that the controller couldn't get a response for the requested verb from the codec chip. Usually something wrong in the interrupt, and RIRB counter wasn't checked.

Well, now another idea came to my mind. We can implement a polling mode for such a case. I'll create a test patch later.

Quoted 4 lines

One thing which would be interesting to know is whether the original poster sees this timeout message on every boot or not. Given that the message doesn't appear to stop alsa from functioning in my case, it may be worth trying the model settings from my previous post anyway.

Yes.

Takashi

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#5 lore raw

At Wed, 09 Aug 2006 11:57:06 +0200,

Quoted 44 lines · I wrote:

At Wed, 9 Aug 2006 09:05:33 +0930 (CST),

Quoted 35 lines · Jonathan Woithe

Hi Takashi

Quoted 3 lines
Quoted 3 lines

"Lubomir" posted via the bugtracker:

Quoted 2 lines

I own an Acer c204 and am the only one person who use linux on it. I can not get sound out of my headphone or the normal speaker. ...

:

Quoted 27 lines
Quoted 2 lines

It sounds like this particular Acer laptop needs more than the basic ALC260 model. ...

It seems that his laptop has a problem with with communication to HD-audio codec, too, according to his recent post to alsa-devel ML:

Quoted 21 lines

To: [email protected]
Subject: [Alsa-devel] No chance to get the soundcard working
From: [email protected]

Hello, i have a big problem with my soundcard. It have a Realtek alc260 chip (intel-hda) and its build in an Acer c204tmi notebook. I can not get that card working with linux. I tried over 20 linux live cds and have installed now gentoo linux on it. The problem i have is: the sound card is been found by alsaconf and can be configured. Alsamixer also found the card and can configure it. I have unmuted every channel and set it up to max. I have always tired the headphone. I never could get sound of that notebook. In dmesg i found that -> ALSA /var/tmp/portage/alsa-driver-1.0.12_rc1-r1/work/alsa- driver-1.0.12rc1/pci/hda/..
/../alsa-kernel/pci/hda/hdaintel.c:525: hda_intel: azx_get_response timeout, switching to single_cmd mode...
i do not know is that the reason why i have no sound. I have testet the sound with xmms,KsCD,Noatun, and other. xmms and noatun do not start playing and KsCD start playing, but i can not hear anything.
I also cant ask someone who got alsa running, because i am the only person who use that notebook under linux.
I do not know what i could do. Can you help me?

Quoted 5 lines

Interesting. For what it's worth, I also see the azx_get_response timeout message every so often on my ALC260-equipped laptop, but its presence doesn't appear to prevent the sound system from working. The last kernel I definitely saw the message was one of the 2.6.16-rt kernels. I recently put 2.6.17-rt8 on there but haven't checked for the message lately.

Quoted 7 lines

This should be independent from the kernel version.
It's an error that the controller couldn't get a response for the requested verb from the codec chip. Usually something wrong in the interrupt, and RIRB counter wasn't checked.

Well, now another idea came to my mind. We can implement a polling mode for such a case. I'll create a test patch later.

OK the patch is below.

Any testers who have the azx_get_response timeout problem?

Takashi

pci/hda/hda_intel.c +17 -1
diff -r 5b67bba2d36f pci/hda/hda_intel.c
@@ -332,6 +332,7 @@ struct azx {
 	int position_fix;
 	unsigned int initialized: 1;
 	unsigned int single_cmd: 1;
+	unsigned int polling_mode: 1;
 };
 
 /* driver types */
@@ -518,8 +519,23 @@ static unsigned int azx_rirb_get_respons
 	struct azx *chip = codec->bus->private_data;
 	int timeout = 50;
 
-	while (chip->rirb.cmds) {
+	for (;;) {
+		if (chip->polling_mode) {
+			spin_lock_irq(&chip->reg_lock);
+			azx_update_rirb(chip);
+			spin_unlock_irq(&chip->reg_lock);
+		}
+		if (! chip->rirb.cmds)
+			break;
 		if (! --timeout) {
+			if (! chip->polling_mode) {
+				snd_printk(KERN_WARNING "hda_intel: "
+					   "azx_get_response timeout, "
+					   "switching to polling mode...\n");
+				chip->polling_mode = 1;
+				timeout = 50;
+				continue;
+			}
 			snd_printk(KERN_ERR
 				   "hda_intel: azx_get_response timeout, "
 				   "switching to single_cmd mode...\n");

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642