Skip to contentSkip to conversation

Support for ALC662 on FUJITSU SIEMENS AMILO Li3710

PATCH Mads Kiilerich 2 participants 8 messages Jul 25, 2009 – Aug 20, 2009 Sound

lore
Share & tools
lore
#0 lore raw

On a friends FUJITSU SIEMENS AMILO Li3710 10601011427 sound didn't work with kernel-PAE-2.6.29.6-213.fc11.i686

Out of the box we get no sound and
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 HDA Intel 0000:00:1b.0: setting latency timer to 64
hda_codec: Unknown model for ALC662, trying auto-probe from BIOS... ALSA sound/pci/hda/hda_codec.c:3507: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0)
ALSA sound/pci/hda/hda_codec.c:3511: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3515: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3516: mono: mono_out=0x0
ALSA sound/pci/hda/hda_codec.c:3524: inputs: mic=0x18, fmic=0x19, line=0x1a, fline=0x0, cd=0x0, aux=0x0

But with /etc/modprobe.d/local.conf (from
http://ubuntuforums.org/archive/index.php/t-940689.html)
options snd-hda-intel model=3stack-dig
options snd-hda-intel single_cmd=1
options snd-hda-intel enable_msi=1

we get sound and
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 HDA Intel 0000:00:1b.0: irq 32 for MSI/MSI-X
HDA Intel 0000:00:1b.0: setting latency timer to 64
ALSA sound/pci/hda/hda_codec.c:2698: hda_codec: model '3stack-dig' is selected

I would like to have this fixed so Linux sound works on my friends machine without manual configuration.

After having read some documentation I assume that single_cmd and enable_msi perhaps shouldn't be needed. I will test that next time I get access to that machine.

HAL reports the sound card as /org/freedesktop/Hal/devices/pci_8086_293e, so should this patch be sufficient?

sound/pci/hda/patch_realtek.c +2 -0
index e1563f4..0385353 100644
@@ -16699,6 +16699,8 @@ static struct snd_pci_quirk alc662_cfg_tbl[] = {
                                         ALC662_3ST_6ch_DIG),
         SND_PCI_QUIRK_MASK(0x1854, 0xf000, 0x2000, "ASUS H13-200x",
                            ALC663_ASUS_H13),
+       SND_PCI_QUIRK(0x8086, 0x293e, "FUJITSU SIEMENS AMILO Li3710",
+                      ALC662_3ST_2ch_DIG),
         {}
  };
 

Untested and hard to test because I don't have direct access to the machine.

This issue was also reported on
https://bugzilla.redhat.com/show_bug.cgi?id=487889

Please CC me.

/Mads

#1 lore raw

At Sun, 26 Jul 2009 00:54:24 +0200,

Quoted 3 lines · Mads Kiilerich

On a friends FUJITSU SIEMENS AMILO Li3710 10601011427 sound didn't work with kernel-PAE-2.6.29.6-213.fc11.i686

How about with the latest alsa-driver snapshot?
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Also, please give alsa-info.sh output. Run with --no-upload and attach the generated file.

thanks,

Takashi

Quoted 64 lines

Out of the box we get no sound and
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 HDA Intel 0000:00:1b.0: setting latency timer to 64
hda_codec: Unknown model for ALC662, trying auto-probe from BIOS... ALSA sound/pci/hda/hda_codec.c:3507: autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0)
ALSA sound/pci/hda/hda_codec.c:3511: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3515: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0) ALSA sound/pci/hda/hda_codec.c:3516: mono: mono_out=0x0
ALSA sound/pci/hda/hda_codec.c:3524: inputs: mic=0x18, fmic=0x19, line=0x1a, fline=0x0, cd=0x0, aux=0x0

But with /etc/modprobe.d/local.conf (from
http://ubuntuforums.org/archive/index.php/t-940689.html)
options snd-hda-intel model=3stack-dig
options snd-hda-intel single_cmd=1
options snd-hda-intel enable_msi=1

we get sound and
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 HDA Intel 0000:00:1b.0: irq 32 for MSI/MSI-X
HDA Intel 0000:00:1b.0: setting latency timer to 64
ALSA sound/pci/hda/hda_codec.c:2698: hda_codec: model '3stack-dig' is selected

I would like to have this fixed so Linux sound works on my friends machine without manual configuration.

After having read some documentation I assume that single_cmd and enable_msi perhaps shouldn't be needed. I will test that next time I get access to that machine.

HAL reports the sound card as /org/freedesktop/Hal/devices/pci_8086_293e, so should this patch be sufficient?

sound/pci/hda/patch_realtek.c +2 -0
index e1563f4..0385353 100644
@@ -16699,6 +16699,8 @@ static struct snd_pci_quirk alc662_cfg_tbl[] = {
                                         ALC662_3ST_6ch_DIG),
         SND_PCI_QUIRK_MASK(0x1854, 0xf000, 0x2000, "ASUS H13-200x",
                            ALC663_ASUS_H13),
+       SND_PCI_QUIRK(0x8086, 0x293e, "FUJITSU SIEMENS AMILO Li3710",
+                      ALC662_3ST_2ch_DIG),
         {}
  };
 

Untested and hard to test because I don't have direct access to the machine.

This issue was also reported on
https://bugzilla.redhat.com/show_bug.cgi?id=487889

Please CC me.

/Mads
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#2 lore raw

Takashi Iwai wrote, On 07/26/2009 10:50 AM:

Quoted 9 lines

At Sun, 26 Jul 2009 00:54:24 +0200,

Quoted 3 lines · Mads Kiilerich

On a friends FUJITSU SIEMENS AMILO Li3710 10601011427 sound didn't work with kernel-PAE-2.6.29.6-213.fc11.i686

How about with the latest alsa-driver snapshot?
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Thanks.

I looked at your sound-2.6.git tree and found no quirk for this card (AFAICS) and assumed that it hadn't been reported and fixed yet. I assume that that tree is pretty close to alsa-driver-snapshot?

I am a developer, but for alsa I am a user, no expert, and honestly I don't plan to become one. Can you give a pointer to a description of how can I test the snapshot? On Fedora 11?

(http://www.alsa-project.org/main/index.php/Main_Page has a "How do I install the ALSA driver from source" link, but it just points to the download page without any explanation.)

Quoted 3 lines

Also, please give alsa-info.sh output. Run with --no-upload and attach the generated file.

I became aware of that command after having visited my friend. I have output of dmesg and lshal and lspci - is that sufficient?

/Mads

#3 lore raw

At Sun, 26 Jul 2009 19:39:28 +0200,

Quoted 8 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/26/2009 10:50 AM:

Quoted 6 lines

At Sun, 26 Jul 2009 00:54:24 +0200,

Quoted 3 lines · Mads Kiilerich

On a friends FUJITSU SIEMENS AMILO Li3710 10601011427 sound didn't work with kernel-PAE-2.6.29.6-213.fc11.i686

Quoted 8 lines
Quoted 3 lines

How about with the latest alsa-driver snapshot?
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Thanks.

I looked at your sound-2.6.git tree and found no quirk for this card (AFAICS) and assumed that it hadn't been reported and fixed yet.

When no quirk is set, the automatic mode is used as default. And, it's possible that the automatic mode has been fixed in the upstream. That's why I asked to test with the latest one. We should avoid any device-specific quirk as much as possible, but rather fix the automatic parser.

Quoted 2 lines

I
assume that that tree is pretty close to alsa-driver-snapshot?

Yes. The alsa-driver-snapshot tarball is created from GIT tree.

Quoted 7 lines

I am a developer, but for alsa I am a user, no expert, and honestly I don't plan to become one. Can you give a pointer to a description of how can I test the snapshot? On Fedora 11?

(http://www.alsa-project.org/main/index.php/Main_Page has a "How do I install the ALSA driver from source" link, but it just points to the download page without any explanation.)

Did you take a look at INSTALL file in alsa-driver?
You can try sound git tree instead of that tarball, too, if you are building your kernel from a GIT tree by yourself.

Quoted 6 lines
Quoted 3 lines

Also, please give alsa-info.sh output. Run with --no-upload and attach the generated file.

I became aware of that command after having visited my friend. I have output of dmesg and lshal and lspci - is that sufficient?

No.

thanks,

Takashi

#4 lore raw

Takashi Iwai wrote, On 07/27/2009 08:14 AM:

Quoted 19 lines

At Sun, 26 Jul 2009 19:39:28 +0200,

Quoted 16 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/26/2009 10:50 AM:

Quoted 4 lines

At Sun, 26 Jul 2009 00:54:24 +0200,
Mads Kiilerich wrote:

Quoted 8 lines
Quoted 4 lines

On a friends FUJITSU SIEMENS AMILO Li3710 10601011427 sound didn't work with kernel-PAE-2.6.29.6-213.fc11.i686

How about with the latest alsa-driver snapshot?
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Thanks.

Quoted 9 lines
Quoted 3 lines

I looked at your sound-2.6.git tree and found no quirk for this card (AFAICS) and assumed that it hadn't been reported and fixed yet.

When no quirk is set, the automatic mode is used as default. And, it's possible that the automatic mode has been fixed in the upstream. That's why I asked to test with the latest one. We should avoid any device-specific quirk as much as possible, but rather fix the automatic parser.

Ok, if you think that would be possible. I assumed that it was broken beond repair.

Quoted 10 lines
Quoted 8 lines

I am a developer, but for alsa I am a user, no expert, and honestly I don't plan to become one. Can you give a pointer to a description of how can I test the snapshot? On Fedora 11?

(http://www.alsa-project.org/main/index.php/Main_Page has a "How do I install the ALSA driver from source" link, but it just points to the download page without any explanation.)

Did you take a look at INSTALL file in alsa-driver?

alsa-driver-snapshot.tar.gz README says "integrated to 2.6+ kernels", so I assumed that this somehow only applied to 2.4 - which obviously would be very strange.

I missed the big overview. It seems like it would have been helpful to me (and the next guy) if something like the following blurb could be found somewhere - in README or INSTALL or from the "How do I install the ALSA driver from source" link or on
http://www.alsa-project.org/main/index.php/Driver_Compilation :

"ALSA project develops both Linux kernel drivers as well as support libraries and tools for user-space. The kernel drivers are also included in vanilla Linux kernels, and usually the stock drivers are fine and should be used. It is however also possible to build the alsa-driver kernel modules for an existing compiled kernel and replace its drivers, for example from alsa-driver-snapshot.tar.gz to get the latest ALSA development and fixes. Note that the modules will have to be rebuild when a new kernel is installed."

INSTALL is very demotivating for use with distribution kernels. It would be helpful if you could add something like:

"On Fedora 11 (with PAE kernels) it works fine, but you need the package kernel-PAE-devel of the same version as the running kernel-PAE."

http://www.linlap.com/wiki/configuring+the+audio+and+updating+alsa+for+fedora+10
might also be helpful.

I assume something similar applies to Suse.

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

Also, please give alsa-info.sh output. Run with --no-upload and attach the generated file.

I became aware of that command after having visited my friend. I have output of dmesg and lshal and lspci - is that sufficient?

No

Ok, thanks for the hints to help me understand.

I will try alsa-drivers-snapshot and alsa-info.sh next time I get access to that computer - that will probably take more than a month.

/Mads

#5 lore raw

At Mon, 27 Jul 2009 12:04:22 +0200,

Quoted 42 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/27/2009 08:14 AM:

Quoted 19 lines

At Sun, 26 Jul 2009 19:39:28 +0200,

Quoted 16 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/26/2009 10:50 AM:

Quoted 4 lines

At Sun, 26 Jul 2009 00:54:24 +0200,
Mads Kiilerich wrote:

Quoted 8 lines
Quoted 4 lines

On a friends FUJITSU SIEMENS AMILO Li3710 10601011427 sound didn't work with kernel-PAE-2.6.29.6-213.fc11.i686

How about with the latest alsa-driver snapshot?
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Thanks.

Quoted 9 lines
Quoted 3 lines

I looked at your sound-2.6.git tree and found no quirk for this card (AFAICS) and assumed that it hadn't been reported and fixed yet.

When no quirk is set, the automatic mode is used as default. And, it's possible that the automatic mode has been fixed in the upstream. That's why I asked to test with the latest one. We should avoid any device-specific quirk as much as possible, but rather fix the automatic parser.

Ok, if you think that would be possible. I assumed that it was broken beond repair.

Quoted 8 lines
Quoted 8 lines

I am a developer, but for alsa I am a user, no expert, and honestly I don't plan to become one. Can you give a pointer to a description of how can I test the snapshot? On Fedora 11?

(http://www.alsa-project.org/main/index.php/Main_Page has a "How do I install the ALSA driver from source" link, but it just points to the download page without any explanation.)

Quoted 6 lines
Quoted 2 lines

Did you take a look at INSTALL file in alsa-driver?

alsa-driver-snapshot.tar.gz README says "integrated to 2.6+ kernels", so I assumed that this somehow only applied to 2.4 - which obviously would be very strange.

A word "integration" doesn't mean to exclude the update possibility at all. Also, when the driver is built as a module, it can be replaced even dynamically.

Quoted 19 lines

I missed the big overview. It seems like it would have been helpful to me (and the next guy) if something like the following blurb could be found somewhere - in README or INSTALL or from the "How do I install the ALSA driver from source" link or on
http://www.alsa-project.org/main/index.php/Driver_Compilation :

"ALSA project develops both Linux kernel drivers as well as support libraries and tools for user-space. The kernel drivers are also included in vanilla Linux kernels, and usually the stock drivers are fine and should be used. It is however also possible to build the alsa-driver kernel modules for an existing compiled kernel and replace its drivers, for example from alsa-driver-snapshot.tar.gz to get the latest ALSA development and fixes. Note that the modules will have to be rebuild when a new kernel is installed."

INSTALL is very demotivating for use with distribution kernels. It would be helpful if you could add something like:

Quoted 7 lines

"On Fedora 11 (with PAE kernels) it works fine, but you need the package kernel-PAE-devel of the same version as the running kernel-PAE."

http://www.linlap.com/wiki/configuring+the+audio+and+updating+alsa+for+fedora+10
might also be helpful.

I assume something similar applies to Suse.

Patches are welcome :)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines

Also, please give alsa-info.sh output. Run with --no-upload and attach the generated file.

I became aware of that command after having visited my friend. I have output of dmesg and lshal and lspci - is that sufficient?

Quoted 6 lines
Quoted 1 line

No

Ok, thanks for the hints to help me understand.

I will try alsa-drivers-snapshot and alsa-info.sh next time I get access to that computer - that will probably take more than a month.

OK, let me know any results.

thanks,

Takashi

#6 lore raw

Takashi Iwai wrote, On 07/27/2009 12:10 PM:

Quoted 43 lines

At Mon, 27 Jul 2009 12:04:22 +0200,

Quoted 40 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/27/2009 08:14 AM:

Quoted 28 lines

At Sun, 26 Jul 2009 19:39:28 +0200,

Quoted 18 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/26/2009 10:50 AM:

Quoted 5 lines

At Sun, 26 Jul 2009 00:54:24 +0200,
Mads Kiilerich wrote:

Quoted 10 lines
Quoted 5 lines

On a friends FUJITSU SIEMENS AMILO Li3710 10601011427 sound didn't work with kernel-PAE-2.6.29.6-213.fc11.i686

How about with the latest alsa-driver snapshot?
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Quoted 6 lines

Thanks.

I looked at your sound-2.6.git tree and found no quirk for this card (AFAICS) and assumed that it hadn't been reported and fixed yet.

Quoted 7 lines

When no quirk is set, the automatic mode is used as default. And, it's possible that the automatic mode has been fixed in the upstream. That's why I asked to test with the latest one. We should avoid any device-specific quirk as much as possible, but rather fix the automatic parser.

Ok, if you think that would be possible. I assumed that it was broken beond repair.

...

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 5 lines

Also, please give alsa-info.sh output. Run with --no-upload and attach the generated file.

I became aware of that command after having visited my friend. I have output of dmesg and lshal and lspci - is that sufficient?

Quoted 9 lines
Quoted 7 lines
Quoted 2 lines

No

Ok, thanks for the hints to help me understand.

I will try alsa-drivers-snapshot and alsa-info.sh next time I get access to that computer - that will probably take more than a month.

OK, let me know any results.

Ok, I got access to the machine and tested successfully. The ALC662 on this machine works with the latest snapshot, so I assume that it eventually will start working with vanilla upstream kernels - somewhere between 2.6.30 and 2.6.32.

http://www.alsa-project.org/db/?f=c72a5f49d7f21b99173358a421ea9e0f18898810

Thanks!

/Mads

#7 lore raw

At Thu, 20 Aug 2009 00:45:39 +0200,

Quoted 62 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/27/2009 12:10 PM:

Quoted 43 lines

At Mon, 27 Jul 2009 12:04:22 +0200,

Quoted 40 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/27/2009 08:14 AM:

Quoted 28 lines

At Sun, 26 Jul 2009 19:39:28 +0200,

Quoted 18 lines · Mads Kiilerich

Takashi Iwai wrote, On 07/26/2009 10:50 AM:

Quoted 5 lines

At Sun, 26 Jul 2009 00:54:24 +0200,
Mads Kiilerich wrote:

Quoted 10 lines
Quoted 5 lines

On a friends FUJITSU SIEMENS AMILO Li3710 10601011427 sound didn't work with kernel-PAE-2.6.29.6-213.fc11.i686

How about with the latest alsa-driver snapshot?
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Quoted 6 lines

Thanks.

I looked at your sound-2.6.git tree and found no quirk for this card (AFAICS) and assumed that it hadn't been reported and fixed yet.

Quoted 7 lines

When no quirk is set, the automatic mode is used as default. And, it's possible that the automatic mode has been fixed in the upstream. That's why I asked to test with the latest one. We should avoid any device-specific quirk as much as possible, but rather fix the automatic parser.

Ok, if you think that would be possible. I assumed that it was broken beond repair.

...

Quoted 16 lines
Quoted 16 lines
Quoted 11 lines
Quoted 9 lines
Quoted 5 lines

Also, please give alsa-info.sh output. Run with --no-upload and attach the generated file.

I became aware of that command after having visited my friend. I have output of dmesg and lshal and lspci - is that sufficient?

No

Ok, thanks for the hints to help me understand.

I will try alsa-drivers-snapshot and alsa-info.sh next time I get access to that computer - that will probably take more than a month.

Quoted 7 lines
Quoted 2 lines

OK, let me know any results.

Ok, I got access to the machine and tested successfully. The ALC662 on this machine works with the latest snapshot, so I assume that it eventually will start working with vanilla upstream kernels - somewhere between 2.6.30 and 2.6.32.

OK, good to hear!

thanks,

Takashi