linux/sound/soc/amd
Vijendar Mukunda d57616f8be
ASoC: amd: acp: fix card name length warning in SOF SoundWire machine driver
The ALSA snd_card driver[] field is 16 bytes (including the NUL
terminator), leaving 15 usable characters. The SOF framework
prepends a "sof-" prefix when registering the card, so
card->name = "amd-soundwire" becomes driver name "sof-amd-soundwire"
which is 17 characters and overflows the driver[16] buffer, triggering
a kernel warning.

Fix by shortening the card name to "amd-sdw"; the resulting driver
name "sof-amd-sdw" fits within the 15-character limit.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/20260910161728.1452808-5-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-09-16 20:08:19 +01:00
..
acp ASoC: amd: acp: fix card name length warning in SOF SoundWire machine driver 2026-09-16 20:08:19 +01:00
acp7x ASoC: amd: acp7x: add system and runtime PM ops 2026-05-22 00:15:04 +01:00
include ASoC: Add SPDX ids to many soc files 2026-02-22 23:52:20 +00:00
ps ASoC: amd: ps: replace bitwise OR with logical OR in IRQ return check 2026-07-07 23:47:18 +01:00
raven ASoC: amd: use .auto_selectable_formats 2026-07-09 18:00:09 +01:00
renoir ASoC: amd: renoir: fix disable_pdm_interrupts() to clear mask bits 2026-09-01 14:34:50 +01:00
vangogh ASoC: amd: use .auto_selectable_formats 2026-07-09 18:00:09 +01:00
yc ASoC: amd: yc: add quirk for Acer Nitro AN17-41 internal mic 2026-09-07 22:00:25 +01:00
acp-config.c ASoC: amd: acp-config: change quirks to cover all ASUS FA401EA variants 2026-08-27 00:15:37 +01:00
acp-da7219-max98357a.c ASoC: amd: acp-da7219-max98357a: don't bind on Raven/Picasso boards 2026-09-08 15:59:06 +01:00
acp-es8336.c ASoC: amd: acp-es8336: Drop unused include 2026-03-16 01:11:18 +00:00
acp-pcm-dma.c ASoC: amd: acp: pass audio_drv_data to dma_irq_handler 2026-08-13 15:50:22 +01:00
acp-rt5645.c ASoC: amd: Move to GPIO descriptors 2026-03-16 01:11:23 +00:00
acp.h ASoC: amd: add I2S MICSP instance support 2022-07-05 13:00:44 +01:00
acp3x-rt5682-max9836.c ASoC: amd: acp3x-rt5682-max9836: Drop unused include 2026-03-16 01:11:21 +00:00
Kconfig ASoC: amd: enable acp7.x drivers build 2026-05-22 00:15:03 +01:00
mach-config.h ASoC: amd: acp: add ACPI machine table for ACP7.B/7.F SOF driver 2026-07-03 17:30:46 +01:00
Makefile ASoC: amd: enable acp7.x drivers build 2026-05-22 00:15:03 +01:00