Cannot get MPD to share sound and now to work at all

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

 



Hello

I've reached a point of frustration unlike any other sound problem I've had. m having problems getting MPD to work properly with respect to sharing sound and now, to even play at all.

Here is my .asoundrc:

# 6 channel dmix:
pcm.dmix6 {
     type dmix
        ipc_key 1024
        ipc_key_add_uid false
        ipc_perm 0660
        slave {
                pcm "hw:0,0"
                rate 48000
                format "S32_LE"
channels 6
                period_time 0
                period_size 1024
                buffer_time 0
                buffer_size 8192
        }
     }

# upmixing:
pcm.ch51dup {
        type route
        slave.pcm dmix6
        slave.channels 6
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 0.6
        ttable.1.3 0.6
        ttable.0.4 0.5
        ttable.1.4 0.5
        ttable.0.5 0.5
        ttable.1.5 0.5
   }

pcm.duplex {
     type asym
     playback.pcm "ch51dup" # upmix first
     capture.pcm "hw:0"
}

# change default device:
pcm.!default {
     type plug
     slave {
pcm "duplex"
}
}

# for aoss
pcm.dsp "duplex"

pcm.dsp1 "duplex"

pcm.10to20 {
type route
slave.pcm default
slave.channels 2
ttable.0.0 1
ttable.0.1 1
}

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}


#------------------------end of working file


My /etc/mpd.conf changes are only the path of music library (works) and output device is "default" using alsa.

The basic problem is MPD only plays when nothing else is using sound and vice versa, whereas all other apps that use sound on my system are fully able to play simultaneously. I have tried removing the ~/.asoundrc and just copying it over to /etc/asound.conf and letting MPD read from there, but this hasn't worked. And now MPD will not start playing as it is giving this error everytime I try to play a song, this is from /var/log/mpd/mpd.error:

ALSA lib pcm_dmix.c:963:(snd_pcm_dmix_open) unable to create IPC semaphore
Sep 01 16:04 : Error opening alsa device "default": Permission denied
Sep 01 16:04 : problems opening audio device while playing "Albums/Jimi Hendrix Discography/Jimi Hendrix - 1967 - Axis- Bold As Love/06.Little Wing.mp3"

Through some forums the furthest I got was that it might be a shared mem issue, and was told to run "ipcs -a" but the individual was unable to diagnose and I'm certainly not knowledgeable enough to, hehe. Here is the current output of ipcs -a on my machine (of course it changes depending on apps running, but this is with mpd daemon running):

~ # ipcs -a

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status     
0x50494f4e 0          nobody    666        2016       1                     
0x00000000 32769      root      777        139264     1                     
0x00000000 262146     bobby     600        393216     2          dest       
0x00000000 294915     bobby     600        393216     2          dest       
0x00000000 491524     bobby     600        393216     2          dest       
0x00000000 524293     bobby     600        393216     2          dest       
0x00000000 557062     bobby     600        393216     2          dest       
0x00000000 819207     bobby     600        393216     2          dest       
0x00000000 851976     bobby     600        393216     2          dest       
0xcbc384f8 884745     bobby     600        64528      1                     
0x000004d2 917514     bobby     660        488        1                     
0x000004d3 950283     bobby     660        196608     1                     

------ Semaphore Arrays --------
key        semid      owner      perms      nsems   
0xcbc384f8 163840     bobby     600        1       
0x000004d2 196609     bobby     660        1       

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages   

I'm sure it's an issue with this and the ipc_key value in my .asoundrc for dmix6, but I haven't a clue what to do from here. I've solved every sound issue I've ever had before, so I just can't give up on this ;) I use an M-audio 7.1 revolution card on Arch linux and Alsa v1.0.16. Any help is greatly appreciated Smiley

Thanks
Bobby
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux