ALSA: hda: add MODULE_FIRMWARE for cs35l41/cs35l56
PATCH 1/1 ALSA: hda: add MODULE_FIRMWARE for cs35l41/cs35l56
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs32l56 kernel module
--- sound/pci/hda/cs35l41_hda.c | 2 ++ sound/pci/hda/cs35l56_hda.c | 4 ++++ 2 files changed, 6 insertions(+)
sound/pci/hda/cs35l41_hda.c +2 -0
@@ -2085,3 +2085,5 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Lucas Tanure, Cirrus Logic Inc, <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_IMPORT_NS ("FW_CS_DSP" ); +MODULE_FIRMWARE("cirrus/cs35l41-*.wmfw") +MODULE_FIRMWARE ("cirrus/cs35l41-*.bin" )
sound/pci/hda/cs35l56_hda.c +4 -0
@@ -1122,3 +1122,7 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Richard Fitzgerald <[email protected]>" );MODULE_AUTHOR ("Simon Trimmer <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_FIRMWARE("cirrus/cs35l54-*.wmfw") +MODULE_FIRMWARE("cirrus/cs35l54-*.bin") +MODULE_FIRMWARE("cirrus/cs35l56-*.wmfw") +MODULE_FIRMWARE ("cirrus/cs35l56-*.bin" )
Signature · 1 line
2.50.0
kernel test robot
build botkernel test robot noticed the following build errors:
Hi GalaxySnail,
kernel test robot noticed the following build errors:
[auto build test ERROR on tiwai-sound/for-next]
[also build test ERROR on tiwai-sound/for-linus linus/master v6.16-rc3 next-20250623] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/GalaxySnail/ALSA-hda-add-MODULE_FIRMWARE-for-cs35l41-cs35l56/20250623-220657 base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next patch link: https://lore.kernel.org/r/20250623140030.1539477-2-me%40glxys.nl patch subject: [PATCH] ALSA: hda: add MODULE_FIRMWARE for cs35l41/cs35l56 config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20250624/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250624/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from include/linux/module.h:22,
from include/linux/device/driver.h:21,
from include/linux/device.h:32,
from include/linux/acpi.h:14,
from sound/pci/hda/cs35l41_hda.c:9:
>> include/linux/moduleparam.h:24:9: error: expected ',' or ';' before 'static'
24 | static const char __UNIQUE_ID(name)[] \
| ^~~~~~
include/linux/module.h:168:32: note: in expansion of macro '__MODULE_INFO'
168 | #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
| ^~~~~~~~~~~~~
include/linux/module.h:299:36: note: in expansion of macro 'MODULE_INFO'
299 | #define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware)
| ^~~~~~~~~~~
sound/pci/hda/cs35l41_hda.c:2116:1: note: in expansion of macro 'MODULE_FIRMWARE'
2116 | MODULE_FIRMWARE("cirrus/cs35l41-*.bin")
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/module.h:22,
from include/linux/device/driver.h:21,
from include/linux/device.h:32,
from include/linux/acpi.h:14,
from sound/pci/hda/cs35l56_hda.c:9:
>> include/linux/moduleparam.h:24:9: error: expected ',' or ';' before 'static'
24 | static const char __UNIQUE_ID(name)[] \
| ^~~~~~
include/linux/module.h:168:32: note: in expansion of macro '__MODULE_INFO'
168 | #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
| ^~~~~~~~~~~~~
include/linux/module.h:299:36: note: in expansion of macro 'MODULE_INFO'
299 | #define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware)
| ^~~~~~~~~~~
sound/pci/hda/cs35l56_hda.c:1126:1: note: in expansion of macro 'MODULE_FIRMWARE'
1126 | MODULE_FIRMWARE("cirrus/cs35l54-*.bin")
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/module.h:22,
from include/linux/device/driver.h:21,
from include/linux/device.h:32,
from include/linux/acpi.h:14,
from cs35l41_hda.c:9:
>> include/linux/moduleparam.h:24:9: error: expected ',' or ';' before 'static'
24 | static const char __UNIQUE_ID(name)[] \
| ^~~~~~
include/linux/module.h:168:32: note: in expansion of macro '__MODULE_INFO'
168 | #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
| ^~~~~~~~~~~~~
include/linux/module.h:299:36: note: in expansion of macro 'MODULE_INFO'
299 | #define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware)
| ^~~~~~~~~~~
cs35l41_hda.c:2116:1: note: in expansion of macro 'MODULE_FIRMWARE'
2116 | MODULE_FIRMWARE("cirrus/cs35l41-*.bin")
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/module.h:22,
from include/linux/device/driver.h:21,
from include/linux/device.h:32,
from include/linux/acpi.h:14,
from cs35l56_hda.c:9:
>> include/linux/moduleparam.h:24:9: error: expected ',' or ';' before 'static'
24 | static const char __UNIQUE_ID(name)[] \
| ^~~~~~
include/linux/module.h:168:32: note: in expansion of macro '__MODULE_INFO'
168 | #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
| ^~~~~~~~~~~~~
include/linux/module.h:299:36: note: in expansion of macro 'MODULE_INFO'
299 | #define MODULE_FIRMWARE(_firmware) MODULE_INFO(firmware, _firmware)
| ^~~~~~~~~~~
cs35l56_hda.c:1126:1: note: in expansion of macro 'MODULE_FIRMWARE'
1126 | MODULE_FIRMWARE("cirrus/cs35l54-*.bin")
| ^~~~~~~~~~~~~~~vim +24 include/linux/moduleparam.h
730b69d2252595 Rusty Russell 2008-10-22 22
^1da177e4c3f41 Linus Torvalds 2005-04-16 23 #define __MODULE_INFO(tag, name, info) \
34182eea36fc1d Rusty Russell 2012-11-22 @24 static const char __UNIQUE_ID(name)[] \
2aec389e19150e Johan Hovold 2020-11-23 25 __used __section(".modinfo") __aligned(1) \
898490c010b5d2 Alexey Gladkov 2019-04-29 26 = __MODULE_INFO_PREFIX __stringify(tag) "=" info898490c010b5d2 Alexey Gladkov 2019-04-29 27
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
PATCH v2 1/1 ALSA: hda: add MODULE_FIRMWARE for cs35l41/cs35l56
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs32l56 kernel module
---
v1 -> v2: fixed missing ';' in the previous patch
sound/pci/hda/cs35l41_hda.c | 2 ++ sound/pci/hda/cs35l56_hda.c | 4 ++++ 2 files changed, 6 insertions(+)
sound/pci/hda/cs35l41_hda.c +2 -0
@@ -2085,3 +2085,5 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Lucas Tanure, Cirrus Logic Inc, <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_IMPORT_NS ("FW_CS_DSP" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs36l41-*.bin" );
sound/pci/hda/cs35l56_hda.c +4 -0
@@ -1122,3 +1122,7 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Richard Fitzgerald <[email protected]>" );MODULE_AUTHOR ("Simon Trimmer <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.bin" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.bin" );
Signature · 1 line
2.50.0
Quoted 2 lines · GalaxySnail
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs32l56 kernel module
Typo in part number cs32l56 -> cs35l56
Quoted 14 lines
Signed-off-by GalaxySnail <[email protected]>---
v1 -> v2: fixed missing ';' in the previous patchsound/pci/hda/cs35l41_hda.c | 2 ++ sound/pci/hda/cs35l56_hda.c | 4 ++++ 2 files changed, 6 insertions(+)sound/pci/hda/cs35l41_hda.c +0
-0
sound/pci/hda/cs35l41_hda.c MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB"); · line 2089
Quoted 6 lines
sound/pci/hda/cs35l41_hda.c +2
-0@@ -2085,3 +2085,5 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB"); MODULE_AUTHOR("Lucas Tanure, Cirrus Logic Inc, <[email protected]>"); MODULE_LICENSE("GPL");MODULE_IMPORT_NS ("FW_CS_DSP" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs36l41-*.bin" );
Typo in part number cs36l41 -> cs35l41
Quoted 14 lines
sound/pci/hda/cs35l56_hda.c +4
-1@@ -1122,3 +1122,7 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Richard Fitzgerald <[email protected]>" );MODULE_AUTHOR ("Simon Trimmer <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.bin" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.bin" ); --2.50.0
PATCH v3 1/1 ALSA: hda: add MODULE_FIRMWARE for cs35l41/cs35l56
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs35l56 kernel module
---
Thanks for your review!
v2 -> v3: fixed typo
v1 -> v2: fixed missing ';' in the previous patch
sound/pci/hda/cs35l41_hda.c | 2 ++ sound/pci/hda/cs35l56_hda.c | 4 ++++ 2 files changed, 6 insertions(+)
sound/pci/hda/cs35l41_hda.c +2 -0
@@ -2085,3 +2085,5 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Lucas Tanure, Cirrus Logic Inc, <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_IMPORT_NS ("FW_CS_DSP" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.bin" );
sound/pci/hda/cs35l56_hda.c +4 -0
@@ -1122,3 +1122,7 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Richard Fitzgerald <[email protected]>" );MODULE_AUTHOR ("Simon Trimmer <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.bin" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.bin" );
Signature · 1 line
2.50.0
Quoted 5 lines · GalaxySnail
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs35l56 kernel module
Signed-off-by GalaxySnail <[email protected]>
Signed-off-by is a legal requirement, and it must be a known identity, no anonymity. Could you resubmit with a proper name?
thanks,
Takashi
Quoted 36 lines
---
Thanks for your review!v2 -> v3: fixed typo
v1 -> v2: fixed missing ';' in the previous patchsound/pci/hda/cs35l41_hda.c | 2 ++ sound/pci/hda/cs35l56_hda.c | 4 ++++ 2 files changed, 6 insertions(+)sound/pci/hda/cs35l41_hda.c +2
-0@@ -2085,3 +2085,5 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Lucas Tanure, Cirrus Logic Inc, <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_IMPORT_NS ("FW_CS_DSP" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.bin" );sound/pci/hda/cs35l56_hda.c +4
-0@@ -1122,3 +1122,7 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Richard Fitzgerald <[email protected]>" );MODULE_AUTHOR ("Simon Trimmer <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.bin" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.bin" );Signature · 1 line
2.50.0
Quoted 10 lines · Takashi Iwai
Quoted 5 lines · GalaxySnail
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs35l56 kernel module
Signed-off-by GalaxySnail <[email protected]>Signed-off-by is a legal requirement, and it must be a known identity, no anonymity. Could you resubmit with a proper name?
GalaxySnail is not an anonymous identity, it's the consistent name I use for all my open-source contributions.
Here's my GitHub account: https://github.com/GalaxySnail
and here's my AUR account: https://aur.archlinux.org/account/GalaxySnail
Quoted 3 lines
thanks,
Takashi
Quoted 10 lines · GalaxySnail
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs35l56 kernel module
Signed-off-by GalaxySnail <[email protected]>---
Thanks for your review!v2 -> v3: fixed typo
v1 -> v2: fixed missing ';' in the previous patch
Cirrus people, can you review this before I merge?
thanks,
Takashi
Quoted 30 lines
sound/pci/hda/cs35l41_hda.c | 2 ++ sound/pci/hda/cs35l56_hda.c | 4 ++++ 2 files changed, 6 insertions(+)sound/pci/hda/cs35l41_hda.c +2
-0@@ -2085,3 +2085,5 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Lucas Tanure, Cirrus Logic Inc, <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_IMPORT_NS ("FW_CS_DSP" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.bin" );sound/pci/hda/cs35l56_hda.c +4
-0@@ -1122,3 +1122,7 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Richard Fitzgerald <[email protected]>" );MODULE_AUTHOR ("Simon Trimmer <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.bin" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.bin" );Signature · 1 line
2.50.0
Quoted 29 lines · GalaxySnail
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs35l56 kernel module
Signed-off-by GalaxySnail <[email protected]>---
Thanks for your review!v2 -> v3: fixed typo
v1 -> v2: fixed missing ';' in the previous patchsound/pci/hda/cs35l41_hda.c | 2 ++ sound/pci/hda/cs35l56_hda.c | 4 ++++ 2 files changed, 6 insertions(+)sound/pci/hda/cs35l41_hda.c +2
-0@@ -2085,3 +2085,5 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Lucas Tanure, Cirrus Logic Inc, <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_IMPORT_NS ("FW_CS_DSP" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l41-*.bin" );sound/pci/hda/cs35l56_hda.c +0
-0
sound/pci/hda/cs35l56_hda.c MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB"); · line 1128
Quoted 7 lines
sound/pci/hda/cs35l56_hda.c +4
-0@@ -1122,3 +1122,7 @@ MODULE_IMPORT_NS("SND_SOC_CS_AMP_LIB");MODULE_AUTHOR ("Richard Fitzgerald <[email protected]>" );MODULE_AUTHOR ("Simon Trimmer <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l54-*.bin" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.wmfw" ); +MODULE_FIRMWARE ("cirrus/cs35l56-*.bin" );
Quoted 10 lines · GalaxySnail
add firmware information in the .modinfo section, so that userspace tools can find out firmware required by cs35l41/cs35l56 kernel module
Signed-off-by GalaxySnail <[email protected]>---
Thanks for your review!v2 -> v3: fixed typo
v1 -> v2: fixed missing ';' in the previous patch
Applied now to for-next branch. Thanks.
Takashi