]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: wm_adsp: Convert '/' to '-' when normalizing firmware filenames
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 10 Mar 2026 14:18:14 +0000 (14:18 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 10 Mar 2026 14:52:54 +0000 (14:52 +0000)
commit66170cc7ed59fb7e1e192e53f1d690bd04e8c720
treef3eb479d1de255402c494b9e6964314f571367a4
parentf8f0c68c75214e326c0d4cbcab8ecab882201f48
ASoC: wm_adsp: Convert '/' to '-' when normalizing firmware filenames

Don't preserve '/' in firmware filename fields - convert it to '-' like
other punctuation characters.

The code originally normalized the entire string, including the
directory prefix. To prevent breaking the directory it had to preserve
'/' characters in the name, but this meant that the system name and ALSA
prefix must not contain those characters.

It's trivial to skip the directory name prefix and start the
normalization after it, and that means the normalization does not need
to make a special case for '/'.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260310141817.1871794-8-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c