On Thu, Dec 07, 2023 at 02:56:17PM +0100, Jaroslav Kysela wrote: > On 07. 12. 23 10:55, Charles Keepax wrote: > >On Wed, Dec 06, 2023 at 06:26:17PM +0100, Jaroslav Kysela wrote: > >>On 06. 12. 23 17:46, Charles Keepax wrote: > >Oh, I was not aware we could do that. I would yes much rather > >handle the switches and volumes in this way. I will see if I can > >figure it out, but if you had any good examples that already > >exist that would really be handy? > > You may look for "LibraryConfig.remap.Config" and > "Include.ctl-remap.File" strings in .conf files. Apologies still struggling to get this working. I think there must some important boiler plate or limitation I am missing. Would really appreciate if you could have a look at this and let me know if it looks sane. I am starting out with just the simplest thing I can think of, just trying to rename a control: LibraryConfig.remap.Config { ctl.default.remap { "name='cs42l43 PDM2 Switch'" "name='cs42l43 Decimator 3 Switch'" } } SectionDevice."Mic" { Comment "Microphones" EnableSequence [ cset "name='cs42l43 PDM2 Switch' 1" ] DisableSequence [ cset "name='cs42l43 PDM2 Switch' 0" ] Value { CapturePriority 100 CapturePCM "hw:${CardId},4" } } Everything works as expected if I use "cs42l43 Decimator 3 Switch" directly in the use-case, however if I use "cs42l43 PDM2 Switch" I get the error: ALSA lib main.c:826:(execute_sequence) unable to execute cset 'name='cs42l43 PDM2 Switch' 0' ALSA lib main.c:2573:(set_verb_user) error: failed to initialize new use case: HiFi The LibraryConfig bit doesn't seem to cause any errors in its own right, but the error messae suggests to me it didn't add the alias for the control. I have tried a lot of variations on the code, but I can't seem to locate what I am doing wrong. Also if there are any docs I should read happy to go there first? Thanks, Charles