Support passthrough via pulseaudio #506

Merged
merged 4 commits into from Dec 12, 2011

Conversation

Projects
None yet
2 participants
Member

elupus commented Oct 22, 2011

Should be backward compatible and not enable on systems with older pulseaudio.

If your pavucontrol mixer doesn't allow you to set supported output types, you may need to use something like:

pactl set-sink-formats 0 "pcm; ac3-iec61937; dts-iec61937"

To signal that your audio sink support ac3.

It should after that show up as available devices in the passthrough audio selection box.

elupus added a commit that referenced this pull request Dec 12, 2011

Merge pull request #506 from elupus/pulsepass
Support passthrough via pulseaudio

Should be backward compatible and not enable on systems with older pulseaudio.

If your pavucontrol mixer doesn't allow you to set supported output types, you may need to use something like:

pactl set-sink-formats 0 "pcm; ac3-iec61937; dts-iec61937"
To signal that your audio sink support ac3.

It should after that show up as available devices in the passthrough audio selection box.

@elupus elupus merged commit 0525638 into xbmc:master Dec 12, 2011

s7mx1 commented Aug 12, 2012

When xbmc do a pass-through device probe it should go through the available profile first and do a switch to a best matched profile according to the speakers setup.

Here is the "pactl list cards" command output
    Profiles:
        output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority. 6000)
        output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority. 5500)
        off: Off (sinks: 0, sources: 0, priority. 0)
    Active Profile: output:iec958-stereo
    Ports:
        analog-output-speaker: Speakers (priority: 10000)
            Part of profile(s): output:analog-stereo
        iec958-stereo-output: Digital Output (S/PDIF) (priority: 0)
            Part of profile(s): output:iec958-stereo

If output:iec958-stereo is not set as the default profile xbmc will have trouble finding the pass-through device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment