View previous topic :: View next topic |
Author |
Message |
avinash_rk n00b
Joined: 02 May 2005 Posts: 11 Location: Bombay
|
Posted: Thu Mar 22, 2007 8:54 pm Post subject: [Solved] Emerge for alsa-driver failing + high pitch sound |
|
|
When I first compiled the kernel, I used the in-kernel alsa. After some monkeying around, I changed alsa support to module. Now when I emerge alsa-driver, I get this error:
Code: |
>>> Emerging (1 of 1) media-sound/alsa-driver-1.0.14_rc1 to /
* alsa-driver-1.0.14rc1.tar.bz2 MD5 ;-) ... [ ok ]
* alsa-driver-1.0.14rc1.tar.bz2 RMD160 ;-) ... [ ok ]
* alsa-driver-1.0.14rc1.tar.bz2 SHA1 ;-) ... [ ok ]
* alsa-driver-1.0.14rc1.tar.bz2 SHA256 ;-) ... [ ok ]
* alsa-driver-1.0.14rc1.tar.bz2 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking alsa-driver-1.0.14rc1.tar.bz2 ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.19-gentoo-r5/build
* Found sources for kernel version:
* 2.6.19-gentoo-r5
* Checking for suitable kernel configuration options...
* ALSA is already compiled into the kernel.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Once you have satisfied these options, please try merging
* this package again.
!!! ERROR: media-sound/alsa-driver-1.0.14_rc1 failed.
Call stack:
ebuild.sh, line 1630: Called dyn_setup
ebuild.sh, line 702: Called qa_call 'pkg_setup'
ebuild.sh, line 38: Called pkg_setup
alsa-driver-1.0.14_rc1.ebuild, line 91: Called linux-mod_pkg_setup
linux-mod.eclass, line 459: Called linux-info_pkg_setup
linux-info.eclass, line 572: Called check_extra_config
linux-info.eclass, line 471: Called die
!!! Incorrect kernel configuration options
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
I have a Asus M2N-MX mobo and lspci gives the following for Audio:
Code: | 00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2) |
I used snd-hda-intel driver for the same. Sound works but I get a high-pitch sound if I play any file. Haven't compiled KDE yet and I am using mpg123 for playback.
After reading https://forums.gentoo.org/viewtopic-t-512733.html#3704439 and http://www.planetamd64.com/lofiversion/index.php/t23938.html, I tried putting Code: | "options snd-hda-intel position_fix=1 model=3stack" | to /etc/modprobe.d/alsa but it doesn't help.
Kernel:
Code: |
Linux localhost 2.6.19-gentoo-r5 #1 SMP PREEMPT Fri Mar 23 00:54:14 IST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
|
So finally, my two problems are:
1. emerge alsa-driver failing
2. high pitch sound
Last edited by avinash_rk on Fri Mar 23, 2007 7:57 pm; edited 1 time in total |
|
Back to top |
|
|
ikshaar Veteran
Joined: 23 Jul 2002 Posts: 1339 Location: Baltimore, MD
|
Posted: Thu Mar 22, 2007 9:24 pm Post subject: |
|
|
http://www.gentoo.org/doc/en/alsa-guide.xml
As the error message says you cannot have both ALSA in kernel and the package. You might want to double check the symlink on your /usr/src/linux and recheck that you don't have ALSA in kernel - or some old modules still around. Plus usual suspect, did you reboot new kernel ? boot was mounted when you copied kernel in /boot ? _________________ "May God stands between you and harm in all the empty places where you must walk" - Babylon 5 |
|
Back to top |
|
|
avinash_rk n00b
Joined: 02 May 2005 Posts: 11 Location: Bombay
|
Posted: Thu Mar 22, 2007 9:35 pm Post subject: |
|
|
Quote: | you cannot have both ALSA in kernel and the package |
Code: |
localhost src # ls -l
total 1
-rw-r--r-- 1 root root 0 Mar 19 20:59 .keep
lrwxrwxrwx 1 root root 22 Mar 21 13:02 linux -> linux-2.6.19-gentoo-r5
drwxr-xr-x 20 root root 1328 Mar 23 00:55 linux-2.6.19-gentoo-r5
|
The symlink seems to be fine.
Here are the .config file's SND options:
Code: |
localhost linux # grep SND .config
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_RTCTIMER is not set
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_VERBOSE_PROCFS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
<snipped>
# CONFIG_SND_FM801 is not set
CONFIG_SND_HDA_INTEL=m
# CONFIG_SND_HDSP is not set
<snipped>
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
|
/boot is mounted and the boot entry points to the correct kernel. I am booting into this kernel.
I also did a make clean before compiling the kernel. |
|
Back to top |
|
|
ikshaar Veteran
Joined: 23 Jul 2002 Posts: 1339 Location: Baltimore, MD
|
Posted: Fri Mar 23, 2007 6:09 pm Post subject: |
|
|
Please read the guide I linked.
Code: | CONFIG_SND is not set. (In-built ALSA support disabled) |
You still have ALSA in kernel. _________________ "May God stands between you and harm in all the empty places where you must walk" - Babylon 5 |
|
Back to top |
|
|
avinash_rk n00b
Joined: 02 May 2005 Posts: 11 Location: Bombay
|
Posted: Fri Mar 23, 2007 7:56 pm Post subject: |
|
|
Thanks! That explains the error message.
I did a make clean. After recompiling and rebooting into the new kernel and adding the options line to modules.d/alsa, the sound works fine. |
|
Back to top |
|
|
|