]> git.itanic.dy.fi Git - linux-stable/commit
ASoC: mediatek: mt8192-mt6359: Set the driver name for the card
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Thu, 29 Sep 2022 20:54:53 +0000 (16:54 -0400)
committerMark Brown <broonie@kernel.org>
Fri, 30 Sep 2022 09:41:13 +0000 (10:41 +0100)
commit4674284aa74cfc6db0c54c16f9557ed8c3552409
treeedcff054b09dda79f68a5b19de360e92eb037d2b
parent4157155df7d34bd91879c06a787944529f0d9a0d
ASoC: mediatek: mt8192-mt6359: Set the driver name for the card

The ASoC core automatically populates the driver name field in the card
from the card name if left unset. However, since the driver name can be
at most 16 characters long, wrapping will happen if the card name is
longer, which is the case for the mt8192-mt6359 driver.

Explicitly set the driver name for the card in order to avoid said
wrapping and have a readable driver name exposed to userspace.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220929205453.1144142-1-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c