Bug 206145 - AC3/dts-Passthrough doesn't work with non-playing phonon apps running.
Summary: AC3/dts-Passthrough doesn't work with non-playing phonon apps running.
Status: RESOLVED NOT A BUG
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.3.0 (KDE 4.2.0)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-03 18:10 UTC by blibberblubb
Modified: 2013-04-13 06:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description blibberblubb 2009-09-03 18:10:18 UTC
Version:            (using Devel)
Compiler:          x86_64-pc-linux-gnu-4.4.1 
OS:                Linux
Installed from:    Compiled sources

I'm using phonon-xine with alsa through my optical out. My ~/.asoundrc is set up properly for dmixed stereo output and phonon is configured to use that device as default output.
So, notifications, mplayer, amarok, kaffeine work just fine at the same time.
Having mplayer set to do ac3-passthrough, so my AMP decodes the surround-data of a DVD/Blu-Ray doesn't work when I still got amarok or kaffeine running (paused or stopped), since passthrough requires full access to the device. I always need to close amarok and kaffeine to enjoy my movies. 
The interesting thing is, that knotify4 doesn't need to be killed, it appears it properly destroys the AudioOutput everytime it is done playing. 

In lsof /dev/snd/* knotify4 shows up like this: 

knotify4 28718 friedrich   13u   CHR 116,10      0t0 21888 /dev/snd/controlC0

while stopped amarok/kaffeine sessions look like this:

kaffeine  4370 friedrich  mem    CHR  116,4          21780 /dev/snd/pcmC0D2p        
kaffeine  4370 friedrich   14u   CHR 116,10      0t0 21888 /dev/snd/controlC0
kaffeine  4370 friedrich   30r   CHR  116,2      0t0  2112 /dev/snd/timer
kaffeine  4370 friedrich   31u   CHR  116,4      0t0 21780 /dev/snd/pcmC0D2p
amarok   14787 friedrich  mem    CHR  116,4          21780 /dev/snd/pcmC0D2p
amarok   14787 friedrich   15u   CHR 116,10      0t0 21888 /dev/snd/controlC0
amarok   14787 friedrich   75r   CHR  116,2      0t0  2112 /dev/snd/timer
amarok   14787 friedrich   76u   CHR  116,4      0t0 21780 /dev/snd/pcmC0D2p

I'm not sure where the bug is actually located, but I'd be very glad to see this one fixed so I can keep my favorite players running.
Comment 1 Martin Sandsmark 2010-01-16 15:30:51 UTC
The easiest is probably to get the players to destroy the AudioOutput objects when not in use, but it should be solvable in AudioOutput itself too, catching the event when the stream is stopped, and releasing the sound device, and re-acquiring it when playback starts again.
I'll have to test a bit.
Comment 2 Myriam Schweingruber 2011-01-28 11:48:17 UTC
Is this still valid with Phonon 4.4.3 or 4.4.4?
Comment 3 Myriam Schweingruber 2013-04-13 06:21:43 UTC
Closing for lack of feedback. Please feel free to reopen if you can reproduce this with KDE 4.10.2 or later.