At Wed, 09 Aug 2006 11:57:06 +0200, I wrote: > > At Wed, 9 Aug 2006 09:05:33 +0930 (CST), > Jonathan Woithe wrote: > > > > Hi Takashi > > > > > > "Lubomir" posted via the bugtracker: > > > > > 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. ... > > : > > > > 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: > > > > > > > To: alsa-devel@xxxxxxxxxxxxxxxxxxxxx > > > > Subject: No chance to get the soundcard working > > > > From: 017623780966@xxxxxxxxxxx > > > > > > > > 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. > > 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 diff -r 5b67bba2d36f pci/hda/hda_intel.c --- a/pci/hda/hda_intel.c Tue Aug 08 21:13:42 2006 +0200 +++ b/pci/hda/hda_intel.c Wed Aug 09 12:07:44 2006 +0200 @@ -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 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel