![]() $ pacmd list-sinks | grep -e 'name:' -e 'vice ' -e 'alsa.subdevice ' name: **** List of PLAYBACK Hardware Devices ****Ĭard 0: Intel, device 0: ALC889A Analog Ĭard 0: Intel, device 1: ALC889A Digital Ĭard 0: Intel, device 3: HDMI 0 Multiple applications are able to receive audio at the same time. In this example, some applications are configured to use HDMI while others are configured to use analog. PulseAudio allows for simultaneous output to multiple sources. Your sound card should now use only the defined profile and have both analog and digital outputs available. Now tell udev to reload sound subsystem udevadm trigger -ssound (as the root user) and restart pulseaudio. SUBSYSTEM!="sound", GOTO="pulseaudio_end" This can be done by defining an udev rule:įirst get relevant information about your sound card:ĭ = "8086" # This is a 'vendor' attribute for udev ruleĭ = "1c20" # This is a 'device' attribute for udev rule Now that you have your custom profile you need to tell pulseaudio to use it. ![]() Skip-probe=yes # since you know what your sound card has, there is no need for checking which sinks are available ![]() Paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic Paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2 usr/share/pulseaudio/alsa-mixer/profile-sets/nfĪuto-profiles = no # disable profile auto-generation Copy nf to nf, and edit it to suit your needs (this example is for stereo output/input): The best way to overcome this is by writing a custom configuration with disabled auto-profiles. This way a defined profile is added to the end of the list of available profiles.Īlthough this works, pulseaudio has a nasty habit of falling back to auto-generated profiles, so you may eventually need to set your card back to the combined profile. Output-mappings = analog-stereo iec958-stereo # Profile must be a '+' separated list of relevant mappings configured aboveĭescription = Analog and digital stereo output and analog stereo intput usr/share/pulseaudio/alsa-mixer/profile-sets/nf. The easiest way to make both outputs available is to add a combined profile to the end of default profile configuration file: Pulseaudio does not generate combined profiles by default, you can choose either digital or analog profiles. Sound cards may have both analog and digital (iec958) outputs. Reason: /usr/share/pulseaudio/alsa-mixer/paths has been replaced by /usr/share/alsa-card-profile/mixer/paths (Discuss in Talk:PulseAudio/Examples#Having both speakers and headphones plugged in and switching in software on-the-fly) Independent analog and digital outputs on the same card You can test your configuration by running pactl set-card-profile. ![]() Set-card-profile alsa_card.pci-0000_00_14.2 output:analog-stereo+output:iec958-stereo+input:analog-stereo In this case, default.pa should now be changed to this: $ pacmd list-cards | grep 'active profile' To find, set the desired profile manually, then run pacmd list-cards : In this case, I want to use the device with index number 2, so should be alsa_card.pci-0000_00_14.2. is dynamic, and changes when a new device is plugged in. If you have an all-in-one computer monitor, you can find the HDMI port on the side or back of the monitor.You could also use instead of, but using ensures referencing the correct device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |