ucm2: codecs: tas2783: use the real speaker switch names
A message that is not in the archive (sent off-list or not yet received): alsa-project/alsa-ucm-conf/pr/[email protected]
alsa-project/alsa-ucm-conf pull request #886 was opened from gjouret:
The tas2783-sdw driver registers its per-amp speaker switches as 'Left Spk Switch', 'Right Spk Switch', 'Left Spk2 Switch' and 'Right Spk2 Switch' (amixer shows them as the simple controls 'Left Spk' ... with the 'Switch' suffix stripped). The BootSequence uses the simple names, which match no control element, so the csets fail and the amps keep whatever state they had:
$ amixer -c sofsoundwire cget name='Left Spk'
amixer: Cannot find the given element from control sysdefault:0
$ amixer -c sofsoundwire cget name='Left Spk Switch'
numid=18,iface=MIXER,name='Left Spk Switch'
...
: values=on (output trimmed)Tested on an HP OmniBook Ultra 14 (board 8EB4, four TAS2783 on two SoundWire links), kernel 7.2.5: with the full names all four speakers are switched on at card init.
Request URL : https://github.com/alsa-project/alsa-ucm-conf/pull/886
Patch URL : https://github.com/alsa-project/alsa-ucm-conf/pull/886.patch
Repository URL: https://github.com/alsa-project/alsa-ucm-conf