]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: clarify the driver name initialization
authorJaroslav Kysela <perex@perex.cz>
Thu, 29 Sep 2022 14:37:54 +0000 (16:37 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 29 Sep 2022 16:22:41 +0000 (17:22 +0100)
commit5bda0859d2b3e3a612bcfdfa9c41edeac0c2dcf1
treed1b5005fdee52becdfea1511fddfb7d8c3f7237b
parent813df77c0f190f6947792f46a76741030eef2614
ASoC: core: clarify the driver name initialization

The driver field in the struct snd_ctl_card_info is a valid
user space identifier. Actually, many ASoC drivers do not care
and let to initialize this field using a standard wrapping method.
Unfortunately, in this way, this field becomes unusable and
unreadable for the drivers with longer card names. Also,
there is a possibility to have clashes (driver field has
only limit of 15 characters).

This change will print an error when the wrapping is used.
The developers of the affected drivers should fix the problem.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c