Amarok2 and Phonon locks sound card

Kernel kernelonline at gmail.com
Sun Nov 30 14:40:07 UTC 2008


Hi everyone!

I am amarok 1.x user.

Recently i have tried amarok2 and found some weird problem. Amarok (or Phonon 
backend) exclusively locks my alsa sound card. Amarok doesn't unlock card 
after stopping playing (pressing stop button). Card unlocks only after 
closing Amarok. 

My other software (configured with alsa output) won't able to output anything 
('device is busy' error occurs).

And i have question: it is possible to compile amarok2 without Phonon backend 
(like disabling aRts in KDE 3.x programs at building time)? Or it is Phonon 
problem?

I have usb sound card (snd-usb-audio module) (primary audio output) and AC97 
onboard audio chip (disabled most of time) (snd_intel8x0 module). Both 
without hardware mixer.

PS: Without phonon all my alsa-compatible software (mostly players: xine-lib, 
mplayer and etc works just fine and simultaneously).

My /etc/asound.conf (for 4.0 output with usb card, dmix plugin used for 
software mixing):

pcm.dmix0 {
    type dmix
    ipc_key 673138
    slave {
        pcm "hw:0,0"
        rate 96000
        #format "S24"
        channels 4
        period_time 80000
        buffer_time 320000
        period_size 4096
        buffer_size 16384
    }
    bindings {
        0 0
        1 1
        2 2
        3 3
    }
}

pcm.ch40dup {
    type route
    slave.pcm dmix0
    slave.channels 4
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 1
    ttable.1.3 1
}

# 'dsp0' is espected by OSS emulation etc.
pcm.dsp0 {
    type plug
    slave.pcm "ch40dup"
}
ctl.dsp0 {
    type hw
    card 0
}
pcm.!default {
    type plug
    slave.pcm "ch40dup"
}
ctl.!default {
    type hw
    card 0
}

PSS: Sorry about my bad english.



More information about the Amarok mailing list