Skip to contentSkip to conversation

alsa-driver-1.0.14rc3 won't compile with kernel 2.6.20.3 when Processor family is Core2

DISCUSSION Chris Pemberton 2 participants 6 messages May 10, 2007

lore
Share & tools
lore
#0 lore raw

Laptop has Pentium Dual Core and Intel HD Audio
Kernel is 2.6.20.3 compiled for Processor family Core2. In-kernel alsa drivers are 1.0.14rc3 (cat /proc/asound/version) and compile ok.
In-kernel drivers do not work for this sound card.

Downloaded 1.0.14rc3 and applied patch_realtek.c
./configure --prefix=/usr --with-cards=hda-intel
"make" gives the following error:

make[1]: Entering directory `/usr/src/linux-2.6.20.3'

Quoted 2 lines

/usr/src/linux-2.6.20.3/Makefile:491:
/usr/src/linux-2.6.20.3/arch//Makefile: No such file or directory

If the kernel is compiled with Processor family = Pentium M, the external alsa drivers compile clean and the soundcard works.

So, Processor family = Core2 cannot be selected when using external alsa-driver-1.0.14rc3.

Chris Pemberton

#1 lore raw

At Wed, 09 May 2007 23:28:16 -0500,

Quoted 16 lines · Chris Pemberton

Laptop has Pentium Dual Core and Intel HD Audio
Kernel is 2.6.20.3 compiled for Processor family Core2. In-kernel alsa drivers are 1.0.14rc3 (cat /proc/asound/version) and compile ok.
In-kernel drivers do not work for this sound card.

Downloaded 1.0.14rc3 and applied patch_realtek.c
./configure --prefix=/usr --with-cards=hda-intel
"make" gives the following error:

make[1]: Entering directory `/usr/src/linux-2.6.20.3'

Quoted 2 lines

/usr/src/linux-2.6.20.3/Makefile:491:
/usr/src/linux-2.6.20.3/arch//Makefile: No such file or directory

Quoted 5 lines

If the kernel is compiled with Processor family = Pentium M, the external alsa drivers compile clean and the soundcard works.

So, Processor family = Core2 cannot be selected when using external alsa-driver-1.0.14rc3.

This should have been fixed on 1.0.14rc4. Give it a try.

Takashi

#2 lore raw
Quoted 21 lines · Takashi Iwai

At Wed, 09 May 2007 23:28:16 -0500,

Quoted 18 lines · Chris Pemberton

Laptop has Pentium Dual Core and Intel HD Audio
Kernel is 2.6.20.3 compiled for Processor family Core2. In-kernel alsa drivers are 1.0.14rc3 (cat /proc/asound/version) and compile ok.
In-kernel drivers do not work for this sound card.

Downloaded 1.0.14rc3 and applied patch_realtek.c
./configure --prefix=/usr --with-cards=hda-intel
"make" gives the following error:

make[1]: Entering directory `/usr/src/linux-2.6.20.3'

Quoted 3 lines

/usr/src/linux-2.6.20.3/Makefile:491:
/usr/src/linux-2.6.20.3/arch//Makefile: No such file or directory

If the kernel is compiled with Processor family = Pentium M, the external alsa drivers compile clean and the soundcard works.

Quoted 10 lines
Quoted 3 lines

So, Processor family = Core2 cannot be selected when using external alsa-driver-1.0.14rc3.

This should have been fixed on 1.0.14rc4. Give it a try.

Takashi

Does 1.0.14rc4 contain the patch_realtek.c? Or will I have to apply the patch there too?

#3 lore raw

At Thu, 10 May 2007 11:17:22 -0500,

Quoted 27 lines · Chris Pemberton
Quoted 25 lines · Takashi Iwai

At Wed, 09 May 2007 23:28:16 -0500,

Quoted 21 lines · Chris Pemberton

Laptop has Pentium Dual Core and Intel HD Audio
Kernel is 2.6.20.3 compiled for Processor family Core2. In-kernel alsa drivers are 1.0.14rc3 (cat /proc/asound/version) and compile ok.
In-kernel drivers do not work for this sound card.

Downloaded 1.0.14rc3 and applied patch_realtek.c
./configure --prefix=/usr --with-cards=hda-intel
"make" gives the following error:

make[1]: Entering directory `/usr/src/linux-2.6.20.3'

Quoted 3 lines

/usr/src/linux-2.6.20.3/Makefile:491:
/usr/src/linux-2.6.20.3/arch//Makefile: No such file or directory

If the kernel is compiled with Processor family = Pentium M, the external alsa drivers compile clean and the soundcard works.

So, Processor family = Core2 cannot be selected when using external alsa-driver-1.0.14rc3.

Quoted 8 lines
Quoted 6 lines

This should have been fixed on 1.0.14rc4. Give it a try.

Takashi

Does 1.0.14rc4 contain the patch_realtek.c? Or will I have to apply the patch there too?

It has since a few years ago. I don't know which patch you're referring, but most of patches have been already merged in 1.0.14rc4.

Takashi

#4 lore raw
Quoted 44 lines · Takashi Iwai

At Thu, 10 May 2007 11:17:22 -0500,

Quoted 33 lines · Chris Pemberton
Quoted 31 lines · Takashi Iwai

At Wed, 09 May 2007 23:28:16 -0500,

Quoted 17 lines · Chris Pemberton

Laptop has Pentium Dual Core and Intel HD Audio
Kernel is 2.6.20.3 compiled for Processor family Core2. In-kernel alsa drivers are 1.0.14rc3 (cat /proc/asound/version) and compile ok.
In-kernel drivers do not work for this sound card.

Downloaded 1.0.14rc3 and applied patch_realtek.c
./configure --prefix=/usr --with-cards=hda-intel
"make" gives the following error:

make[1]: Entering directory `/usr/src/linux-2.6.20.3'

Quoted 4 lines

/usr/src/linux-2.6.20.3/Makefile:491:
/usr/src/linux-2.6.20.3/arch//Makefile: No such file or directory

Quoted 7 lines

If the kernel is compiled with Processor family = Pentium M, the external alsa drivers compile clean and the soundcard works.

So, Processor family = Core2 cannot be selected when using external alsa-driver-1.0.14rc3.

This should have been fixed on 1.0.14rc4. Give it a try.

Quoted 7 lines
Quoted 4 lines

Takashi

Does 1.0.14rc4 contain the patch_realtek.c? Or will I have to apply the patch there too?

Quoted 7 lines

It has since a few years ago. I don't know which patch you're referring, but most of patches have been already merged in 1.0.14rc4.

Takashi

I was referring to this patch (version6)
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2725

I am recompiling kernel for core2 and will let you know if 1.0.14rc4 works

Chris

#5 lore raw
In reply to Takashi Iwai
Quoted 44 lines · Takashi Iwai

At Thu, 10 May 2007 11:17:22 -0500,

Quoted 33 lines · Chris Pemberton
Quoted 31 lines · Takashi Iwai

At Wed, 09 May 2007 23:28:16 -0500,

Quoted 17 lines · Chris Pemberton

Laptop has Pentium Dual Core and Intel HD Audio
Kernel is 2.6.20.3 compiled for Processor family Core2. In-kernel alsa drivers are 1.0.14rc3 (cat /proc/asound/version) and compile ok.
In-kernel drivers do not work for this sound card.

Downloaded 1.0.14rc3 and applied patch_realtek.c
./configure --prefix=/usr --with-cards=hda-intel
"make" gives the following error:

make[1]: Entering directory `/usr/src/linux-2.6.20.3'

Quoted 4 lines

/usr/src/linux-2.6.20.3/Makefile:491:
/usr/src/linux-2.6.20.3/arch//Makefile: No such file or directory

Quoted 7 lines

If the kernel is compiled with Processor family = Pentium M, the external alsa drivers compile clean and the soundcard works.

So, Processor family = Core2 cannot be selected when using external alsa-driver-1.0.14rc3.

This should have been fixed on 1.0.14rc4. Give it a try.

Quoted 7 lines
Quoted 4 lines

Takashi

Does 1.0.14rc4 contain the patch_realtek.c? Or will I have to apply the patch there too?

Quoted 7 lines

It has since a few years ago. I don't know which patch you're referring, but most of patches have been already merged in 1.0.14rc4.

Takashi

I recompiled my 2.6.20.3 kernel for core2, and tried alsa 1.0.14rc4 as you suggested:

make[1]: Entering directory `/usr/src/linux-2.6.20.3'
CC [M] /usr/src/alsa-driver-1.0.14rc4/acore/memalloc.o
In file included from /usr/src/alsa-driver-1.0.14rc4/acore/memalloc.inc:13,

                 from /usr/src/alsa-driver-1.0.14rc4/acore/memalloc.c:1:

/usr/src/alsa-driver-1.0.14rc4/include/adriver.h: In function 'snd_pci_orig_save_state':
/usr/src/alsa-driver-1.0.14rc4/include/adriver.h:1168: error: too many arguments to function 'pci_save_state' /usr/src/alsa-driver-1.0.14rc4/include/adriver.h: In function 'snd_pci_orig_restore_state':
/usr/src/alsa-driver-1.0.14rc4/include/adriver.h:1172: error: too many arguments to function 'pci_restore_state'
make[4]: *** [/usr/src/alsa-driver-1.0.14rc4/acore/memalloc.o] Error 1 make[3]: *** [/usr/src/alsa-driver-1.0.14rc4/acore] Error 2 make[2]: *** [_module_/usr/src/alsa-driver-1.0.14rc4] Error 2 make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20.3'
make: *** [compile] Error 2

Then I tried again it with the patch_realtek.c patch copied in 1.0.14rc4 and got the exact same error.

I've tried when newer kernels as well: no good with core2 in kernel.

Chris