[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: alsa not working on Intel 865 (Asus P4P800)



I finally did get this working. I had several people contact me with
similar problems, so I thought I'd share what I know.

Here's my /etc/modules.conf

### update-modules: start processing /etc/modutils/alsa-base
# snd module options
options snd device_mode=0660
# autoloader aliases
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3
alias sound-slot-4 snd-card-4
alias sound-slot-5 snd-card-5
alias sound-slot-6 snd-card-6
alias sound-slot-7 snd-card-7
# Load optional modules above their base modules
above snd-pcm snd-pcm-oss
above snd-mixer snd-mixer-oss
above snd-seq snd-seq-oss snd-seq-midi
# Cause a script to be run after snd-emu8000-synth module initialization
post-install snd-emu8000-synth /lib/alsa/modprobe-post-install snd-emu8000-synth
# Cause a script to be run after card driver module initialization
post-install snd-ad1816a /lib/alsa/modprobe-post-install snd-ad1816a
post-install snd-ad1848 /lib/alsa/modprobe-post-install snd-ad1848
post-install snd-ali5451 /lib/alsa/modprobe-post-install snd-ali5451
post-install snd-als100 /lib/alsa/modprobe-post-install snd-als100
post-install snd-als4000 /lib/alsa/modprobe-post-install snd-als4000
post-install snd-asihpi /lib/alsa/modprobe-post-install snd-asihpi
post-install snd-atiixp /lib/alsa/modprobe-post-install snd-atiixp
post-install snd-au8810 /lib/alsa/modprobe-post-install snd-au8810
post-install snd-au8820 /lib/alsa/modprobe-post-install snd-au8820
post-install snd-au8830 /lib/alsa/modprobe-post-install snd-au8830
post-install snd-azt2320 /lib/alsa/modprobe-post-install snd-azt2320
post-install snd-azt3328 /lib/alsa/modprobe-post-install snd-azt3328
post-install snd-azx /lib/alsa/modprobe-post-install snd-azx
post-install snd-ca0106 /lib/alsa/modprobe-post-install snd-ca0106
post-install snd-cmi8330 /lib/alsa/modprobe-post-install snd-cmi8330
post-install snd-cmipci /lib/alsa/modprobe-post-install snd-cmipci
post-install snd-cs4231 /lib/alsa/modprobe-post-install snd-cs4231
post-install snd-cs4232 /lib/alsa/modprobe-post-install snd-cs4232
post-install snd-cs4236 /lib/alsa/modprobe-post-install snd-cs4236
post-install snd-cs4281 /lib/alsa/modprobe-post-install snd-cs4281
post-install snd-cs46xx /lib/alsa/modprobe-post-install snd-cs46xx
post-install snd-darla20 /lib/alsa/modprobe-post-install snd-darla20
post-install snd-darla24 /lib/alsa/modprobe-post-install snd-darla24
post-install snd-dt019x /lib/alsa/modprobe-post-install snd-dt019x
post-install snd-emu10k1 /lib/alsa/modprobe-post-install snd-emu10k1
post-install snd-emu10k1x /lib/alsa/modprobe-post-install snd-emu10k1x
post-install snd-ens1370 /lib/alsa/modprobe-post-install snd-ens1370
post-install snd-ens1371 /lib/alsa/modprobe-post-install snd-ens1371
post-install snd-es1688 /lib/alsa/modprobe-post-install snd-es1688
post-install snd-es18xx /lib/alsa/modprobe-post-install snd-es18xx
post-install snd-es1938 /lib/alsa/modprobe-post-install snd-es1938
post-install snd-es1968 /lib/alsa/modprobe-post-install snd-es1968
post-install snd-es968 /lib/alsa/modprobe-post-install snd-es968
post-install snd-fm801 /lib/alsa/modprobe-post-install snd-fm801
post-install snd-gina20 /lib/alsa/modprobe-post-install snd-gina20
post-install snd-gina24 /lib/alsa/modprobe-post-install snd-gina24
post-install snd-gina3g /lib/alsa/modprobe-post-install snd-gina3g
post-install snd-gusclassic /lib/alsa/modprobe-post-install snd-gusclassic
post-install snd-gusextreme /lib/alsa/modprobe-post-install snd-gusextreme
post-install snd-gusmax /lib/alsa/modprobe-post-install snd-gusmax
post-install snd-harmony /lib/alsa/modprobe-post-install snd-harmony
post-install snd-hdsp /lib/alsa/modprobe-post-install snd-hdsp
post-install snd-hdspm /lib/alsa/modprobe-post-install snd-hdspm
post-install snd-ice1712 /lib/alsa/modprobe-post-install snd-ice1712
post-install snd-ice1724 /lib/alsa/modprobe-post-install snd-ice1724
post-install snd-indigo /lib/alsa/modprobe-post-install snd-indigo
post-install snd-indigodj /lib/alsa/modprobe-post-install snd-indigodj
post-install snd-indigoio /lib/alsa/modprobe-post-install snd-indigoio
post-install snd-intel8x0 /lib/alsa/modprobe-post-install snd-intel8x0
post-install snd-interwave /lib/alsa/modprobe-post-install snd-interwave
post-install snd-interwave-stb /lib/alsa/modprobe-post-install snd-interwave-stb
post-install snd-korg1212 /lib/alsa/modprobe-post-install snd-korg1212
post-install snd-layla20 /lib/alsa/modprobe-post-install snd-layla20
post-install snd-layla24 /lib/alsa/modprobe-post-install snd-layla24
post-install snd-layla3g /lib/alsa/modprobe-post-install snd-layla3g
post-install snd-maestro3 /lib/alsa/modprobe-post-install snd-maestro3
post-install snd-mia /lib/alsa/modprobe-post-install snd-mia
post-install snd-mixart /lib/alsa/modprobe-post-install snd-mixart
post-install snd-mona /lib/alsa/modprobe-post-install snd-mona
post-install snd-mpu401 /lib/alsa/modprobe-post-install snd-mpu401
post-install snd-msnd-pinnacle /lib/alsa/modprobe-post-install snd-msnd-pinnacle
post-install snd-mtpav /lib/alsa/modprobe-post-install snd-mtpav
post-install snd-nm256 /lib/alsa/modprobe-post-install snd-nm256
post-install snd-opl3sa2 /lib/alsa/modprobe-post-install snd-opl3sa2
post-install snd-opti92x-ad1848 /lib/alsa/modprobe-post-install
snd-opti92x-ad1848
post-install snd-opti92x-cs4231 /lib/alsa/modprobe-post-install
snd-opti92x-cs4231
post-install snd-opti93x /lib/alsa/modprobe-post-install snd-opti93x
post-install snd-pc98-cs4232 /lib/alsa/modprobe-post-install snd-pc98-cs4232
post-install snd-pcxhr /lib/alsa/modprobe-post-install snd-pcxhr
post-install snd-pdaudiocf /lib/alsa/modprobe-post-install snd-pdaudiocf
post-install snd-pdplus /lib/alsa/modprobe-post-install snd-pdplus
post-install snd-portman2x4 /lib/alsa/modprobe-post-install snd-portman2x4
post-install snd-powermac /lib/alsa/modprobe-post-install snd-powermac
post-install snd-rme32 /lib/alsa/modprobe-post-install snd-rme32
post-install snd-rme96 /lib/alsa/modprobe-post-install snd-rme96
post-install snd-rme9652 /lib/alsa/modprobe-post-install snd-rme9652
post-install snd-sa11xx-uda1341 /lib/alsa/modprobe-post-install
snd-sa11xx-uda1341
post-install snd-sb16 /lib/alsa/modprobe-post-install snd-sb16
post-install snd-sb8 /lib/alsa/modprobe-post-install snd-sb8
post-install snd-sbawe /lib/alsa/modprobe-post-install snd-sbawe
post-install snd-serialmidi /lib/alsa/modprobe-post-install snd-serialmidi
post-install snd-serial-u16550 /lib/alsa/modprobe-post-install snd-serial-u16550
post-install snd-sgalaxy /lib/alsa/modprobe-post-install snd-sgalaxy
post-install snd-sonicvibes /lib/alsa/modprobe-post-install snd-sonicvibes
post-install snd-sscape /lib/alsa/modprobe-post-install snd-sscape
post-install snd-sun-amd7930 /lib/alsa/modprobe-post-install snd-sun-amd7930
post-install snd-sun-cs4231 /lib/alsa/modprobe-post-install snd-sun-cs4231
post-install snd-sun-dbri /lib/alsa/modprobe-post-install snd-sun-dbri
post-install snd-trident /lib/alsa/modprobe-post-install snd-trident
post-install snd-usb-audio /lib/alsa/modprobe-post-install snd-usb-audio
post-install snd-usb-usx2y /lib/alsa/modprobe-post-install snd-usb-usx2y
post-install snd-via82xx /lib/alsa/modprobe-post-install snd-via82xx
post-install snd-vx222 /lib/alsa/modprobe-post-install snd-vx222
post-install snd-vxp440 /lib/alsa/modprobe-post-install snd-vxp440
post-install snd-vxpocket /lib/alsa/modprobe-post-install snd-vxpocket
post-install snd-wavefront /lib/alsa/modprobe-post-install snd-wavefront
post-install snd-ymfpci /lib/alsa/modprobe-post-install snd-ymfpci
# Prevent abnormal drivers from grabbing index 0
options snd-atiixp-modem index=-2
options snd-bt87x index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2

Here are the alsa packages I have installed at the moment.

alsa-base
alsa-headers
alsamixergui
alsa-oss
alsaplayer
alsaplayer-common
alsaplayer-gtk
alsaplayer-esd
alsaplayer-oss
alsa-utils
gnome-alsamixer
libalsaplayer0
libalsaplayer-dev
libclalsadrv
libesd-alsa0
libpt-plugins-alsa
libsdl1.2debian-alsa
libwine-alsa
snd-gtk-alsa

Plus a few plugins.

Someone kindly pointed out "that beside you unmute PCM, you have to
mute the IEC958 Capture Monitor, else there won't be any sound." So I
did that.

And I have these modules loaded:
Kernel ----------------------------------------------------
Linux syed 2.6.8 #1 SMP Sun Sep 26 22:25:42 PDT 2004 i686 GNU/Linux

Loaded Modules --------------------------------------------
snd_intel8x0           31532  1
snd_ac97_codec         65668  1 snd_intel8x0
snd_pcm_oss            48680  0
snd_mixer_oss          17408  1 snd_pcm_oss
snd_pcm                86816  2 snd_intel8x0,snd_pcm_oss
snd_timer              22404  1 snd_pcm
snd_page_alloc          9224  2 snd_intel8x0,snd_pcm
snd_mpu401_uart         6656  1 snd_intel8x0
snd_rawmidi            20800  1 snd_mpu401_uart
snd_seq_device          6792  1 snd_rawmidi
snd                    48484  11
snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device

Second, I realized that I had plugged my headphones into the damn blue
Line-In jack, not the green Line-Out jack as they should be.

Third, I set my mixer settings (using alsamixergui) thusly: master and
PCM unmuted. Everything else set to mute. And by everything, I mean
everything. Someone helpfully pointed me to this page:
http://alsa-project.org/alsa-doc/doc-php/template.php?company=Intel&card=i820&chip=i820&module=intel8x0?

which notes that you must mute the IEC958 Capture Monitor in order to get sound.

Fourth, here's my ~/.asoundrc and /etc/alsa/alsa-source.conf
       pcm.intel8x0%3F {
          type hw
          card 0
       }

       ctl.intel8x0%3F {
          type hw
          card 0
       }

I think I probably cut and pasted this file's contents from the wiki.

/etc/alsa/alsa-source.conf
#  ALSA source config file used by Debian GNU/Linux

# Define as y if you want to build ALSA driver modules without ISA PnP.
ifndef ALSA_NOPNP
ALSA_NOPNP="y"
endif

# Define as y if you want to build ALSA driver modules with debugging code.
ifndef ALSA_DEBUG
ALSA_DEBUG=""
endif

# Define cards to be built, separated by commas. For example, if you want to
# build Sound Blaster 16 and Yamaha YMF series drivers, then the setting
# would be:
#
#  ALSA_CARDS="sb16, ymfpci"
#
ifndef ALSA_CARDS
ALSA_CARDS="intel8x0"
endif

With the first set of changes, I was no longer getting error messages
when I ran programs which accessed the sound. With the second and
third things, I was able to get sound out of my headphones. The fourth
change fixed someone else's problem. The list of programs I have
installed was crucial for yet another person to get his sound working.

It seems like there's probably a little bit more setup the alsa
packages could do in these cases. Such as: have more dependencies so
that the proper packages get installed, automatically create and
populate the conf files, and set the default mute options sensibly.

Sincerely,
Jonathan

On Sun, 26 Sep 2004 10:59:39 +0200, Andrea Vettorello
<andrea.vettorello@gmail.com> wrote:
> On Sat, 25 Sep 2004 16:55:02 -0700, Jonathan Pearce
> <dwindlehop@gmail.com> wrote:
> > I get this slightly more helpful error message from tuxracer:
> >
> > ALSA lib pcm_hw.c:1155:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p
> > failed: Device or resource busy
> > %%% tuxracer warning: Warning: Couldn't set 22050 Hz 16-bit audio
> >   Reason: No available audio device
> >
> 
> [...]
> 
> > >
> > > Hardware --------------------------------------------------
> > > 0000:00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM
> > > Controller/Host-Hub Interface (rev 02)
> > > 0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER
> > > (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
> > >
> > > Libao Conf --------------------------------------------------
> > > default_driver=alsa09
> > >
> 
> Have you tried to look here:
> http://alsa-project.org/alsa-doc/doc-php/template.php?company=Intel&card=i820&chip=i820&module=intel8x0?
> 
> Don't know if can helps, but at the end of the page, there's a tip
> that says "... that beside you unmute PCM, you have to mute the IEC958
> Capture Monitor, else there won't be any sound."
> 
> 
> Andrea
> 


-- 
Jonathan David Pearce jonathan@pearce.name
3EAAFB2A   http://www.jonathan.pearce.name/



Reply to: