[pulseaudio-discuss] Switching output ports across sound cards will cause the Headphone to be silent.
Sean Greenslade
sean at seangreenslade.com
Mon Nov 20 03:00:59 UTC 2023
On Fri, Nov 17, 2023 at 04:59:44PM +0800, 赵成义 wrote:
> 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!
Hi, Chengyi.
Your question is somewhat unclear. The behavior you're describing is not
how pulseaudio operates by default, but the config file snippets you
provide are not modified from the defaults. By default, unplugging the
headphones should switch to the speaker channel of the same ALSA card.
Have you made any modifications to the various pulseaudo alsa-mixer
paths conf files? If so, please show what you have changed.
--Sean
More information about the pulseaudio-discuss
mailing list