]> git.baikalelectronics.ru Git - kernel.git/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)
commit2a543d1fa143a3499478c23c7174a964b75ee18d
treeedcff054b09dda79f68a5b19de360e92eb037d2b
parentb0adbc5a750502b421f2c4ec454002caaa541a20
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