Bug 117048

Summary: no sound with via driver
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Olaf Hering <ohering>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 3   
Target Milestone: ---   
Hardware: PowerPC   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: aplay_trace.txt
VIA686 config

Description Olaf Hering 2005-09-14 17:34:42 UTC
ALSA lib pcm_dmix.c:789:(snd_pcm_dmix_open) unable to create IPC semaphore


alsaconf loads the correct drivers, but aplay shows this error. People reported
that sound worked ok in beta3 or 4 on pegasos2.
Comment 1 Takashi Iwai 2005-09-14 17:46:06 UTC
Which driver?  Show /proc/asound/cards.
Try to clean up unused semaphores via ipcrm?

Also strace would be helpful.
Comment 2 Olaf Hering 2005-09-14 17:58:54 UTC
f55:~ # lsmod
Module                  Size  Used by
snd_pcm_oss            73056  0 
snd_mixer_oss          23168  1 snd_pcm_oss
snd_seq                68568  0 
snd_via82xx            35076  0 
snd_ac97_codec        114016  1 snd_via82xx
snd_ac97_bus            2688  1 snd_ac97_codec
snd_pcm               112900  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              28644  2 snd_seq,snd_pcm
snd_page_alloc         11976  2 snd_via82xx,snd_pcm
snd_mpu401_uart         9536  1 snd_via82xx
snd_rawmidi            30560  1 snd_mpu401_uart
snd_seq_device         10380  2 snd_seq,snd_rawmidi
snd                    75584  10
snd_pcm_oss,snd_mixer_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              11108  1 snd
joydev                 11488  0 
sg                     33916  0 
st                     41984  0 
sd_mod                 21808  0 
sr_mod                 20388  0 
scsi_mod              161160  4 sg,st,sd_mod,sr_mod
lp                     13708  0 
parport_pc             52476  1 
radeon                 88836  1 
drm                    75576  2 radeon
agpgart                37276  1 drm
autofs4                22180  3 
ipv6                  284872  14 
via_rhine              26084  0 
mii                     6432  1 via_rhine
ehci_hcd               36072  0 
ohci1394               39668  0 
uhci_hcd               44016  0 
ieee1394              113712  1 ohci1394
parport                42992  2 lp,parport_pc
dm_mod                 63252  0 
ide_cd                 47556  0 
cdrom                  43292  2 sr_mod,ide_cd
psmouse                35876  0 
via82cxxx              15420  0 [permanent]


f55:~ # cat /proc/asound/cards 
0 [rev40          ]: VIA686A - VIA 82C686A/B rev40
                     VIA 82C686A/B rev40 with STAC9766,67 at 0x1100, irq 9
Comment 3 Olaf Hering 2005-09-14 18:00:15 UTC
Created attachment 49933 [details]
aplay_trace.txt
Comment 4 Takashi Iwai 2005-09-14 18:26:07 UTC
Hmm, the relevant part hasn't been changed since beta4.  Possibly the compiler
was changed...

Can you try the package on bari-tiwai-12?
Comment 5 Olaf Hering 2005-09-14 18:32:12 UTC
f55:~ # aplay /usr/share/sounds/alsa/test.wav 
ALSA lib pcm_direct.c:806:(snd_pcm_direct_initialize_slave) requested or
auto-format is not available
ALSA lib pcm_dmix.c:830:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:540: audio open error: Invalid argument

Comment 6 Takashi Iwai 2005-09-14 18:46:54 UTC
Try to copy the following to /usr/share/alsa/cards.
Comment 7 Takashi Iwai 2005-09-14 18:47:40 UTC
Created attachment 49938 [details]
VIA686 config
Comment 8 Olaf Hering 2005-09-15 10:11:49 UTC
doesnt help.
Comment 9 Takashi Iwai 2005-09-15 13:49:27 UTC
How about the one on bari-tiwai-13?  (Don't use the file in commment #7.)
Comment 10 Olaf Hering 2005-09-15 14:08:08 UTC
I can bring it in your office if you want, its a very small box.
sound works ok with 2.6.11 debian kernel, only with the plug on the backside,
not on the frontpanel.
Comment 11 Takashi Iwai 2005-09-15 14:11:07 UTC
It's no driver bug just a problem regarding dmix plugin with ppc.
Writing the following to ~/.asoundrc would fix, but you lose the soft mixing, too:

   pcm.!default "plughw"

And, no, please don't bring it to me.  I have no time at all.
Comment 12 Olaf Hering 2005-09-15 14:27:48 UTC
yes, that works.  
Comment 13 Takashi Iwai 2005-09-15 19:31:06 UTC
Also let me know whether bari-tiwai-13 works.  If not, please attach the errors
again.
Comment 14 Olaf Hering 2005-09-19 11:58:54 UTC
just using the new alsa.rpm fixes it.
Comment 15 Takashi Iwai 2005-09-19 13:20:23 UTC
The package was submitted to STABLE.