[pulseaudio-discuss] Switching output ports across sound cards will cause the Headphone to be silent.

赵成义 zhaochengyi at uniontech.com
Fri Nov 17 08:59:44 UTC 2023


Hi Guys,


In the following scenario, switching output ports across sound cards will cause the Headphone to be silent.
(Tips: USB speakers or Bluetooth earphones use independent sound cards, and the device uses an onboard sound card.)


1. headphone is unplugged, automatically change port: headphone -> speaker-> usb speaker (or Bluetooth earphone)
2. headphone is plugged, automatically change port: usb speaker(or Bluetooth earphone) -> headphone


Step 1. When the headphone is unplugged, the port is automatically switched from the headphone to the speaker. 
The following configuration items in the analog-output-speaker.conf file will be applied, and then the port is 
switched to the USB speaker.
Close Headphone volume
[Element Headphone]
switch=off
volume=off


Step 2, when the headphone is plugged in, the port is automatically switched from the USB speaker to the headphone, 
and the following configuration items in the analog-output-headphone.conf file will be applied.
[Element Headphone]
required-any = any
switch = mute
volume=merge
override-map.1 = all
override-map.2 = all-left,all-right


As you can see through alsamixer, the volume of the Headphone has been restored, but the Headphone is silent.



Could you please help slove this issue, thanks!


Best Regards,
Chengyi



 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20231117/df85d881/attachment.htm>


More information about the pulseaudio-discuss mailing list