<div><br></div><div>> OK, so your custom client application is deliberately changing the<br>> default sink? Note that just changing the default sink will not move<br>> existing sink input streams. You will need to do that yourself, for<br>> example with the pa_context_move_sink_input_by_index function.<br></div><div><br></div><div>Hi Sean,</div><div><br></div><div>In fact, the sink-input has been moved correctly. If the speaker port is closed, this problem will not occur.<br></div><div><br></div><div><span class="HwtZe" lang="en"><span class="jCAhz ChMk0b"><span class="ryNqvb">I think this is a kernel problem. At that time, the speaker was always on and switching between sound cards <br></span></span></span></div><div><span class="HwtZe" lang="en"><span class="jCAhz ChMk0b"><span class="ryNqvb">was performed when the headphone was plugged and unplugged.<br></span></span></span></div><div><br></div><div>logs:</div><div>-----------<br></div><div>11月 20 13:40:10.689190 uos60-PC pulseaudio[8944]: I: [pulseaudio] core.c: configured_default_sink: alsa_output.pci-0000_00_1f.3.analog-stereo -> alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo<br>11月 20 13:40:10.689190 uos60-PC pulseaudio[8944]: I: [pulseaudio] core.c: default_sink: alsa_output.pci-0000_00_1f.3.analog-stereo -> alsa_output.usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00.analog-stereo<br>11月 20 13:40:10.689623 uos60-PC pulseaudio[8944]: D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_1f.3.analog-stereo becomes idle, timeout in 2 seconds.<br>11月 20 13:40:10.689623 uos60-PC pulseaudio[8944]: D: [pulseaudio] sink-input.c: Starting to move sink input 0 from 'alsa_output.pci-0000_00_1f.3.analog-stereo'</div><div><br></div><div>BR,</div><div><br></div><div>Chengyi<br></div><div><br></div><div><br></div>