module-switch-on-port-available does not consider profile=off
Summary
Using set-card-profile 0 off
in default.pa
works, but set-card-profile alsa_card.pci-0000_1d_00.1 off
doesn't. Both works when using pactl
. Symbolic names used elsewhere in default.pa
works just fine.
environment
$ uname -a
Linux crapPC 5.1.3-zen1-1-zen #1 ZEN SMP PREEMPT Thu May 16 20:59:56 UTC 2019 x86_64 GNU/Linux
$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 32
Server Protocol Version: 32
Is Local: yes
Client Index: 11
Tile Size: 65472
User Name: tleydxdy
Host Name: crapPC
Server Name: pulseaudio
Server Version: 12.2
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_1f_00.3.analog-stereo
Default Source: mic_music.monitor
Cookie: ed55:c316
pactl list
: paste
Steps to reproduce
Change some card's profile to off (using it's name), reboot, and the profile is still it's default. Change it's profile using it's index (0), reboot, and the profile is set correctly. My laptop which only have one sound card doesn't have this issue.
What is the current bug behavior?
The card's profile is not set by set-card-profile
in default.pa
when using symbolic name
What is the expected correct behavior?
symbolic name should work like index
Edited by Russell Treleaven