[PATCH] ASoC: intel: sof_rt5682: update platform device name for Maxim amplifier

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Mon Sep 27 16:47:09 CEST 2021



On 9/27/21 9:32 AM, Brent Lu wrote:
> To follow 20-character length limitation of platform device name, we
> have only 7 character space for amplifier. Therefore, the last
> character of mx98357a and mx98360a is removed to save space.
> 
> Signed-off-by: Brent Lu <brent.lu at intel.com>

This patch fixes an issue reported in our Sparse checks:

sound/soc/intel/boards/sof_rt5682.c:1070:25: error: too long
initializer-string for array of char(no space for nul char)

Fixes: e224ef76fa8a ('ASoC: intel: sof_rt5682: support
jsl_rt5682s_mx98360a board')

Acked-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>

FWIW here's what we use in our checks:

export ARCH=x86_64 CF="-Wsparse-error -Wsparse-all -Wno-bitwise-pointer
-Wno-pointer-arith -Wno-typesign -Wnoshadow"
make allmodconfig
make -k sound/soc/sof/ C=2
make -k sound/soc/intel/common/ C=2
make -k sound/soc/intel/boards/ C=2
make -k sound/soc/amd/ C=2
make -k drivers/soundwire/ C=2



More information about the Alsa-devel mailing list