Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16797 - Alsa emerge correctly but amixer gives : Mixer attach default error: Sound protocol is not compatible
Summary: Alsa emerge correctly but amixer gives : Mixer attach default error: Sound pr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 03:09 UTC by Guillaume APOSTOLY
Modified: 2003-09-17 05:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume APOSTOLY 2003-03-04 03:09:13 UTC
Hi, I've already posted the below bug to the alsa-project sourceforge bug system.
I'm posting this here in case it's distro specific (or you have any idea !).
The bug maybe A LITTLE similar to http://bugs.gentoo.org/show_bug.cgi?id=12851
Thanks by advance for your help.

Regards,

Guillaume 

THE PROBLEM (!)

Hi,

I've got the same problem with an integrated i810 audio card.
One thing that is VERY strange is that, even if the mixer doesn't work (and xmms
also not), KDE produces sound.
The config in KDE control center is "auto-detect". If I specify to use ALSA to
KDE, then no more sound. Basically I don't know what kde uses to make sound ??
I'm sure there's no OSS module loaded (or included into the kernel), and so here
are the problems I get : 


Reproducible: Always
Steps to Reproduce:
if i try to stop/start the alsa daemon:
/usr/sbin/alsactl: get_controls:486: snd_ctl_open error: Sound protocol is not
compatible

if i try to launch the amixer
gentoop4 root # amixer
amixer: Mixer attach default error: Sound protocol is not compatible

or xmms
gentoop4 root # xmms

** WARNING **: snd_mixer_attach: Sound protocol is not compatible
gentoop4 root #



Here'are my alsa packages versions : 
*  media-libs/alsa-lib
      Latest version available: 0.9.0_rc6
      Latest version installed: 0.9.0_rc6

*  media-libs/alsa-oss
      Latest version available: 0.9.0_rc1
      Latest version installed: 0.9.0_rc1

*  media-plugins/alsa-xmms
      Latest version available: 0.9.5
      Latest version installed: 0.9.5

*  media-sound/alsa-driver
      Latest version available: 0.9.0_rc6
      Latest version installed: 0.9.0_rc6

*  media-sound/alsa-tools
      Latest version available: 0.9.0_rc6
      Latest version installed: 0.9.0_rc6

*  media-sound/alsa-utils
      Latest version available: 0.9.0_rc6
      Latest version installed: 0.9.0_rc6

Here's the output of lsmod : 
Module                  Size  Used by    Tainted: P
snd-seq                43664   0  (autoclean)
snd-seq-device          4104   0  (autoclean) [snd-seq]
snd-pcm-oss            20088   1  (autoclean)
snd-pcm-plugin         15120   0  (autoclean) [snd-pcm-oss]
snd-mixer-oss           5340   1  (autoclean) [snd-pcm-oss]
snd-card-intel8x0      10408   2
snd-pcm                34784   0  [snd-pcm-oss snd-pcm-plugin snd-card-intel8x0]
snd-timer              10452   0  [snd-seq snd-pcm]
snd-ac97-codec         29288   0  [snd-card-intel8x0]
snd-mixer              25956   0  [snd-mixer-oss snd-ac97-codec]
snd                    33856   1  [snd-seq snd-seq-device snd-pcm-oss
snd-pcm-plugin snd-mixer-oss snd-card-intel8x0 snd-pcm snd-timer snd-ac97-codec
snd-mixer]
rtc                     6944   0  (autoclean)
lirc_serial             7264   0
lm75                    3424   0
i2c-i801                4592   0  (unused)
i2c-proc                6384   0  [lm75]
i2c-dev                 3972   0  (unused)
i2c-algo-bit            6568   0  (unused)
i2c-core               11396   0  [lm75 i2c-i801 i2c-proc i2c-dev i2c-algo-bit]
usb-storage            22000   0  (unused)
sd_mod                 10256   0  (unused)
visor                   8776   0  (unused)
usbserial              16124   0  [visor]
NVdriver             1067360  10
unicorn_pci           520840   0  (unused)
unicorn_atm            13472   2  [unicorn_pci]

and finally : 
gentoop4 root # cat /etc/modules.d/alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header:
/home/cvsroot/gentoo-x86/media-sound/alsa-driver/files/alsa-modules.conf-rc,v
1.1 2002/12/21 06:31:52 agenkin Exp $
# ALSA portion
        alias char-major-116 snd
        alias snd-card-0 snd-card-intel8x0
#        alias snd-card-0 snd-intel8x0
        # module options should go here

        # OSS/Free portion
        alias char-major-14 soundcore
        alias sound-slot-0 snd-card-0

        # card #1
        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

#       options snd-cmipci snd_id="first" snd_enable_midi="1"

# Set this to the correct number of cards.
# options snd cards_limit=1

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss


Thanks by advance for your help, i'm ready for any testing and i'm still
investigating on my side.
Comment 1 Guillaume APOSTOLY 2003-03-07 01:43:37 UTC
The problem is solved with thoose versions that i forced (i'm arch=x86 not dev): 
[ebuild    UD] media-sound/alsa-driver-0.9.0_rc6 [0.9.0_rc8]
[ebuild    UD] media-libs/alsa-lib-0.9.0_rc6 [0.9.0_rc7]
[ebuild   R  ] media-sound/alsa-tools-0.9.0_rc6

in fact, before this, snd-intel8x0 was absent ( a pb in the e-build of alsa-driver-0.9.0_rc6 i guess) and i had to load the old snd-card-intel8x0 which happened to actually be very old !
So with thoose version and snd-intel8x0 in /etc/modules.d/alsa all is working perfectly.
In case somebody looks for it, i'm joining my config file.
I think you may close the bug.

Regards,

Guillaume.

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-driver/files/alsa-modules.conf-rc,v 1.1 2002/12/21 06:31:52 agenkin Exp $
# ALSA portion
        alias char-major-116 snd
        alias snd-card-0 snd-intel8x0
#        alias snd-card-0 snd-intel8x0
        # module options should go here

        # OSS/Free portion
        alias char-major-14 soundcore
        alias sound-slot-0 snd-card-0

        # card #1
        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

#       options snd-cmipci snd_id="first" snd_enable_midi="1"

# Set this to the correct number of cards.
options snd cards_limit=1

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-09-16 10:53:11 UTC
is this still a problem ?
Comment 3 Guillaume APOSTOLY 2003-09-17 05:00:43 UTC
No, as I wrote in the <a href="http://bugs.gentoo.org/show_bug.cgi?id=16797#c1">comment #1</a>, newer version of alsa packages solved the problem.
By memory this was before the 1.4 gentoo, so for new installs, problem should never happen.

Hope this helps.

Guillaume.