Bug 119311

Summary: digital playback is blocking sound device / dmix not working
Product: [Unmaintained] kscd Reporter: Thorsten Hirsch <t.hirsch>
Component: generalAssignee: Aaron J. Seigo <aseigo>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thorsten Hirsch 2005-12-31 16:10:13 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Unlisted Binary Package
OS:                Linux

When using kscd with digital playback my audio device is blocked during playback.
For example, this is the output of mplayer:

alsa-init: 1 soundcard found, using: default
ALSA lib pcm_dmix.c:819:(snd_pcm_dmix_open) unable to open slave
alsa-init: playback open error: Device or resource busy

You see, I'm using alsa/dmix, I've created /etc/asound.conf for software mixing, which is working in other applications. arts is disabled, I've also selected alsa in kscd and tried if it works when I specify /dev/sound/audio as playback device, but it doesn't.

This is my /etc/asound.conf:
# Die Soundkarte wird festgelegt.
pcm.snd_card {
    type hw
    card 0
    device 0
}

# Das dmix-Plugin wird definiert.
pcm.dmixer {
    type dmix
    ipc_key 1024
    ipc_perm 0666       # andere Benutzer können dmix gleichzeitig nutzen
    slave.pcm "snd_card"
    slave {
        # buffer_size kann bei Problemen der jeweiligen Karte angepasst werden.
        period_time 0
        period_size 512
        buffer_size 32768
    }
    bindings {
        0 0
        1 1
    }
}

# Dies definiert unser dmix-Plugin als Standard für alle ALSA-Programme.
pcm.!default {
    type plug
    slave.pcm "dmixer"
}

########
# AOSS #
########

# DSP wird simuliert und benutzt das dmix-Plugin.
pcm.dsp "dmixer"
pcm.dsp1 "dmixer"

# OSS-Steuerung für dsp0 (falls es benötigt wird...)
ctl.dsp {
    type plug
    slave.pcm "snd_card"
}

# OSS-Steuerung für dsp0 (falls es benötigt wird...)
ctl.mixer {
    type plug
    slave.pcm "snd_card"
}
Comment 1 Richard Lärkäng 2006-01-11 22:31:14 UTC
SVN commit 497076 by larkang:

Don't change the autoplay setting just because --start is
in the command line args

CCBUG: 119311


 M  +2 -2      kscd.cpp  


--- branches/KDE/3.5/kdemultimedia/kscd/kscd.cpp #497075:497076
@@ -1004,7 +1004,8 @@
     //totaltimelabel->clear();
     totaltimelabel->lower();
 
-    if (Prefs::autoplay() && !m_cd->isPlaying())
+    if ((Prefs::autoplay() || KCmdLineArgs::parsedArgs()->isSet("start"))
+        && !m_cd->isPlaying())
     {
         playClicked();
     }
@@ -1675,7 +1676,6 @@
     }
 
     if (args->count()>0) Prefs::self()->setCdDevice(args->arg(0));
-    if (args->isSet("start")) Prefs::self()->setAutoplay(true);
 
     return a.exec();
 }
Comment 2 Richard Lärkäng 2006-01-11 22:33:31 UTC
Sorry, typed in the wrong bugnumber. The commit has nothing to do with this bug.
Comment 3 Andrew Crouthamel 2018-11-02 04:14:59 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-16 02:35:14 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 5 Justin Zobel 2022-12-03 09:01:25 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 6 Bug Janitor Service 2022-12-18 05:13:58 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2023-01-02 05:27:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!