PulseAudio: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
Created page with "Be sure to configure ALSA first. {{Box File|/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf| Change any occurance of a52:%f to a52: <pre> [Mapping iec958-ac3-surr..."
 
Tgurr (talk | contribs)
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
Be sure to configure [[ALSA]] first.
Be sure to configure [[ALSA]] first.


{{Box File|/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf|
== PulseAudio configuration ==
 
{{File|/etc/pulse/default.pa|
Depending on your external AV-Reciever this prevents crackling sounds and outputs a continous a52 signal through S/PDIF
<pre>
### Automatically suspend sinks/sources that become idle for too long
#load-moduleload-module module-suspend-on-idle
</pre>
}}
 
{{File|/etc/pulse/daemon.conf|
Set correct sample-rate and channels
<pre>
default-sample-rate = 48000
default-sample-channels = 6
</pre>
}}
 
== Fix the default PulseAudio/ALSA a52 5.1 profile detection ==
 
{{File|/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf|
Change any occurance of a52:%f to a52:
Change any occurance of a52:%f to a52:
<pre>
<pre>
[Mapping iec958-ac3-surround-40]
device-strings = a52
channel-map = front-left,front-right,rear-left,rear-right
priority = 2
direction = output
[Mapping iec958-ac3-surround-51]
[Mapping iec958-ac3-surround-51]
device-strings = a52
device-strings = a52
Line 9: Line 35:
priority = 3
priority = 3
direction = output
direction = output
</pre>
}}
== Setting the default device (to avoid default output pointing to analog headphones) ==
First you need to find out the device names by running:


[Mapping hdmi-stereo]
{{Root|<nowiki>pacmd list-sinks | grep "name:"</nowiki>}}
device-strings = hdmi:%f
 
channel-map = left,right
{{Root|<nowiki>pacmd list-sources | grep "name:"</nowiki>}}
priority = 4
 
direction = output
And then add them to the default.pa configuration:
{{File|/etc/pulse/default.pa|
<pre>
### Make some devices default
set-default-sink alsa_output.pci-0000_01_00.1.iec958-ac3-surround-51
set-default-source alsa_output.pci-0000_01_00.1.iec958-ac3-surround-51.monitor
</pre>
</pre>
}}
}}

Latest revision as of 22:44, 16 July 2012

Be sure to configure ALSA first.

PulseAudio configuration

File: /etc/pulse/default.pa

Depending on your external AV-Reciever this prevents crackling sounds and outputs a continous a52 signal through S/PDIF

### Automatically suspend sinks/sources that become idle for too long
#load-moduleload-module module-suspend-on-idle
File: /etc/pulse/daemon.conf

Set correct sample-rate and channels

default-sample-rate = 48000
default-sample-channels = 6

Fix the default PulseAudio/ALSA a52 5.1 profile detection

File: /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf

Change any occurance of a52:%f to a52:

[Mapping iec958-ac3-surround-40]
device-strings = a52
channel-map = front-left,front-right,rear-left,rear-right
priority = 2
direction = output

[Mapping iec958-ac3-surround-51]
device-strings = a52
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
priority = 3
direction = output

Setting the default device (to avoid default output pointing to analog headphones)

First you need to find out the device names by running:

# pacmd list-sinks | grep "name:"
# pacmd list-sources | grep "name:"

And then add them to the default.pa configuration:

File: /etc/pulse/default.pa
### Make some devices default
set-default-sink alsa_output.pci-0000_01_00.1.iec958-ac3-surround-51
set-default-source alsa_output.pci-0000_01_00.1.iec958-ac3-surround-51.monitor