Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
EeePC in-kernel ALSA difficulties [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
boomslang
n00b
n00b


Joined: 03 Jun 2007
Posts: 48

PostPosted: Fri Feb 22, 2008 8:05 am    Post subject: EeePC in-kernel ALSA difficulties [solved] Reply with quote

Hello, I'm not much of a stranger to Gentoo systems, but I can't figure out why ALSA doesn't want to play nice on my EeePC. Some relevant info:
Code:
gamma rmullen # lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04)

Code:
gamma linux # grep SND .config | grep -v not 
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=y
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_DEBUG=y
CONFIG_SND_AC97_CODEC=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_INTEL8X0=y


Usually I don't have so much stuff switched on, but I was trying everything I could for support. The omitted lines match "not" and are not set.

alsa-utils and alsa-lib were freshly emerged after this kernel was booted. I have not yet tried userland alsa-drivers. Would this be a recommendable option, or should I keep trying to figure out why I can't get the in-kernel jank to work?
Code:
Linux gamma 2.6.23-eee-r3 #10 Fri Feb 22 02:32:26 EST 2008 i686 Intel(R) Celeron(R) M processor 900MHz GenuineIntel GNU/Linux


Errors:
Code:
gamma linux # alsamixer

alsamixer: function snd_mixer_load failed: Invalid argument

Code:
gamma linux # /etc/init.d/alsasound restart
 * Service alsasound stopping
 * WARNING:  you are stopping a boot service.
alsactl: get_control:209: Cannot read control info '2,0,0,Front Playback Volume,0': Invalid argument
 Error saving levels.                                                                                            [ !! ]
 * Service alsasound stopped
 * Service alsasound starting
 No mixer config in /var/lib/alsa/asound.state, you have to unmute your card!
 * Service alsasound started


Two matching lines are generated in dmesg whenever I try starting the alsasound initscript:
Code:
hda_codec: num_steps = 0 for NID=0xc
hda_codec: num_steps = 0 for NID=0xc


Last edited by boomslang on Fri Feb 22, 2008 8:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46151
Location: 56N 3W

PostPosted: Fri Feb 22, 2008 2:28 pm    Post subject: Reply with quote

boomslang,

The Intel HDA is poorly specified and in many cases poorly implemented.
You may well need to provide a module parameter when you load snd-intel-hda to make it work with your own specific hardware implementation.

Read the part of /usr/src/linux/Documentation/sound/alsa/ALSA-Configuration.txt that deals with snd-intel-hda
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
boomslang
n00b
n00b


Joined: 03 Jun 2007
Posts: 48

PostPosted: Fri Feb 22, 2008 8:31 pm    Post subject: Reply with quote

Thanks for the suggestion, Neddy. Here is the fix:

Compile support for ALSA into your kernel as discussed in the official Gentoo ALSA guide, and in the PCI Devices section, choose Intel HDA to be compiled as a module.
Code:
gamma ~ # grep SND /usr/src/linux/.config | grep -v not
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_RTCTIMER=y
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
CONFIG_SND_HDA_INTEL=m


Next, run "alsaconf" and it should see your soundcard.

Next,
Code:
echo "options snd-hda-intel model=3stack-dig" >> /etc/modprobe.conf
to append a necessary line.

Upon reboot, udev should load the snd-hda-intel module automatically, and you should now be able to run alsamixer and other programs with sound output.
Back to top
View user's profile Send private message
ocbMaurice
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2003
Posts: 84
Location: Switzerland

PostPosted: Sun May 18, 2008 7:48 pm    Post subject: Reply with quote

Thank you very much. This solved the woes with the audio on my eeepc too.
Back to top
View user's profile Send private message
jazzi
n00b
n00b


Joined: 21 Aug 2007
Posts: 73

PostPosted: Sun Jul 20, 2008 1:52 pm    Post subject: Reply with quote

I meet the same problem too. and still got no way.

I'll try it and hopefully it will works.

Tired :D
Back to top
View user's profile Send private message
flacvest
Apprentice
Apprentice


Joined: 04 Jun 2008
Posts: 152
Location: San Jose, CA USA

PostPosted: Tue Dec 02, 2008 7:24 pm    Post subject: HI, I'm having snd-hda-intel problems now too... Reply with quote

I've used the in-kernel drivers, on kernel-2.6.27-gentoo-r4, with all the suggestions in this post, to no avail. the bedamned pc-speaker is the only soundcard that shouws up on the system... PLEASE HELP if possible. I'm clueless as to what to do next...
_________________
.:{flacvest}:.
Back to top
View user's profile Send private message
epretorious
Apprentice
Apprentice


Joined: 04 Jul 2003
Posts: 191
Location: Truckee, CA

PostPosted: Sat Jul 25, 2009 8:18 am    Post subject: Realtek ALC662 @ Intel 82801GB ICH7 [SOLVED] Reply with quote

boomslang wrote:
Next,
Code:
echo "options snd-hda-intel model=3stack-dig" >> /etc/modprobe.conf
to append a necessary line.

Upon reboot, udev should load the snd-hda-intel module automatically, and you should now be able to run alsamixer and other programs with sound output.

Works for me on Mandriva 2009.0! 8O

Thanks, boomslang!
_________________
Eric P.
Sunnyvale, CA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum