[alsa-devel] [PATCH RESEND 3/3] ASoC: Intel: cht_bsw_rt5672: fix card name

Pierre-Louis Bossart pierre-louis.bossart at linux.intel.com
Wed Sep 20 02:34:53 CEST 2017


For now reason the current card name is a ridiculous
'cherrytrailcraudio'. This isn't very useful or self-explanatory,
change to driver name cht-bsw-rt5672.

[Additional comment from Takashi: One bonus by this change would be to
avoid inconsistent names by the driver's name string size.  Since it's
16 bytes including \0, the name is shortened as cherrytrailcrau or
such in some fields.  With the new name this shouldn't happen ]

Reviewed-by: Takashi Iwai <tiwai at suse.de>
Acked-by: Vinod Koul <vinod.koul at intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
---
 sound/soc/intel/boards/cht_bsw_rt5672.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/boards/cht_bsw_rt5672.c b/sound/soc/intel/boards/cht_bsw_rt5672.c
index 5b1e3ee965a7..f799b76fdedf 100644
--- a/sound/soc/intel/boards/cht_bsw_rt5672.c
+++ b/sound/soc/intel/boards/cht_bsw_rt5672.c
@@ -383,7 +383,7 @@ static int cht_resume_post(struct snd_soc_card *card)
 
 /* SoC card */
 static struct snd_soc_card snd_soc_card_cht = {
-	.name = "cherrytrailcraudio",
+	.name = "cht-bsw-rt5672",
 	.owner = THIS_MODULE,
 	.dai_link = cht_dailink,
 	.num_links = ARRAY_SIZE(cht_dailink),
-- 
2.11.0



More information about the Alsa-devel mailing list