Skip to content

Commit

Permalink
ASoC: SOF: nocodec: fix card prefix
Browse files Browse the repository at this point in the history
The "sof-" prefix is added by the code, don't add it to the card name.
This helps make sure the card is named "sof-nocodec" instead of
"sof-sof-nocodec", e.g.

root@ubilinux4:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofnocodec [sof-nocodec], device 0: Port0 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart committed Nov 9, 2018
1 parent 0b79ceb commit 0face4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sof/nocodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "sof-priv.h"

static struct snd_soc_card sof_nocodec_card = {
.name = "sof-nocodec",
.name = "nocodec", /* the sof- prefix is added by the core */
};

int sof_nocodec_setup(struct device *dev,
Expand Down

0 comments on commit 0face4a

Please sign in to comment.