Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa problem: intel sound driver not working
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
nekromancer
Apprentice
Apprentice


Joined: 23 Feb 2004
Posts: 158
Location: Niagara, Canada

PostPosted: Mon Feb 27, 2006 7:25 pm    Post subject: alsa problem: intel sound driver not working Reply with quote

I am getting a real headache trying to get sound working on my pc.
I have an Intel D945PSN motherboard with the built in sound chipset.
I have compiled the gentoo-sources 2.6.15-r1 kernel with ALSA support
but I made everything to compile as modules. I select all the Intel
related modules as well.

I emerged alsa-driver, alsa-headers, alsa-utils, and alsa-tools, all
have version 1.0.11_rc2. I used alsaconf and it saw my sound chip,
except it ended with "unknown device". I let it go, I saw the
/etc/modules.d/alsa file.. it looked right. Modules got loaded cleanly

I used alsamixer but I saw only 2 volume controls, one for headphone
and the other was all black and it apeared to be 3 in 1 or something.
Line and mix.

Then I played something in mplayer using "-ao alsa" and got this

Code:

Checking audio filter chain for 44100Hz/2ch/s16le->
44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
alsa-init: 1 soundcard found, using: default
ALSA lib pcm_direct.c:783:(snd_pcm_direct_initialize_slave)
snd_pcm_hw_params_any failed
ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to initialize slave
alsa-init: playback open error: Invalid argument
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...


then I tried "mplayer -ao oss" and got all this,
Code:

[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...
[AO OSS] Can't set audio device /dev/dsp to s16le output, trying s16le...


I even tried #cat /dev/urandom > /dev/sound/dsp but I get this error
"cat: write error: Invalid argument"

Everything says that the snd-hda-intel driver is what I should use, yet
it doesn't seem to work.

This is my lspci output:
Code:

0000:00:00.0 Host bridge: Intel Corp.: Unknown device 2770
0000:00:01.0 PCI bridge: Intel Corp.: Unknown device 2771
0000:00:1b.0 Class 0403: Intel Corp.: Unknown device 27d8 (rev 01)
0000:00:1c.0 PCI bridge: Intel Corp.: Unknown device 27d0 (rev 01)
0000:00:1c.2 PCI bridge: Intel Corp.: Unknown device 27d4 (rev 01)
0000:00:1c.3 PCI bridge: Intel Corp.: Unknown device 27d6 (rev 01)
0000:00:1d.0 USB Controller: Intel Corp.: Unknown device 27c8 (rev 01)
0000:00:1d.1 USB Controller: Intel Corp.: Unknown device 27c9 (rev 01)
0000:00:1d.2 USB Controller: Intel Corp.: Unknown device 27ca (rev 01)
0000:00:1d.3 USB Controller: Intel Corp.: Unknown device 27cb (rev 01)
0000:00:1d.7 USB Controller: Intel Corp.: Unknown device 27cc (rev 01)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev e1)
0000:00:1f.0 ISA bridge: Intel Corp.: Unknown device 27b8 (rev 01)
0000:00:1f.1 IDE interface: Intel Corp.: Unknown device 27df (rev 01)
0000:00:1f.2 IDE interface: Intel Corp.: Unknown device 27c0 (rev 01)
0000:00:1f.3 SMBus: Intel Corp.: Unknown device 27da (rev 01)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV41.1 (rev a2)
0000:02:00.0 Ethernet controller: Intel Corp.: Unknown device 108b (rev 03)
0000:05:01.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 02)
0000:05:01.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 02)
0000:05:02.0 Communication controller: Rockwell International HSF 56k Data/Fax/Voice Modem (rev 01)
0000:05:05.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)


the output of #cat /proc/asound/cards is
Code:

0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0x52300000 irq 20


If anyone has any idea what is wrong with my setup or anything, I'd apreaciate the help a lot!
Thanks.
Back to top
View user's profile Send private message
ikujam
n00b
n00b


Joined: 03 Aug 2005
Posts: 37
Location: Toulouse, France

PostPosted: Mon Feb 27, 2006 7:58 pm    Post subject: Reply with quote

I remember having some trouble with that same sound card as well - trying to get a "monolithic" kernel I compiled them in though.

To make sure all the alsa modules are loaded, type :

# lsmod

You should see several snd_somestuff entries there, otherwise maybe a

# depmod -ae
# modprobe -v snd-hda-intel

can help. If that's the case, the missing bit is within the '/etc/modules.autoload.d/kernel-2.6' file which specifies the modules to load upon boot.

A hint about modules missing maybe :

# cd /usr/src/linux
# grep SND_ .config | grep -v not\ set
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_HDA_INTEL=y


Good luck ;)
Back to top
View user's profile Send private message
nekromancer
Apprentice
Apprentice


Joined: 23 Feb 2004
Posts: 158
Location: Niagara, Canada

PostPosted: Mon Feb 27, 2006 8:34 pm    Post subject: Reply with quote

I recompiled my kernel this time with everything compiled in. I only selected the snd-hda-intel driver.

And .. man .. it worked! lol. I am almost laughing because I have no clue why having snd-hda-intel loaded as a module didn't work but compiled in does?!

Either way, mplayer -ao alsa gives sound but it skips, mplayer -ao oss gives smooth quality. Who knows why.

anyways thanks man.
Back to top
View user's profile Send private message
ikujam
n00b
n00b


Joined: 03 Aug 2005
Posts: 37
Location: Toulouse, France

PostPosted: Tue Feb 28, 2006 2:08 pm    Post subject: Reply with quote

Welcome, glad to hear it's working (better...) now :)

The point is, unless I'm mistaken, the intel_hda driver is quite new and has its little quirks...

I went a little step further here. First the OSS driver is an emulation and for an outdated software that is. Then I assisted to some Linux Audio conference and i finished up

* emerging "jack-audio-connection-kit" and setting the USE-flag "jack"
(with qjackctl being a simple GUI app)

* and getting a "Low Latency" kernel with

Processor Type and Features
-> Preemption Model (Preemptible Kernel (Low Latency Desktop))


Even though there are still some rare sound problems, and I didn't get xine to work with, I like my soundsetup this way. Mixing works fine, KDE/arts integration is smooth, and tools like jamin let you play around at leisure.

Oh and as far as the module itches go - monolithic kernels are supposed to be more secure, better optimized. Reason enough to skip figuring out how those module options are supposed to work ;)
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