mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ASoC: Use snprintf() when generating stream names
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
633154d3a7
commit
40ca114265
1 changed files with 2 additions and 2 deletions
|
@ -1276,8 +1276,8 @@ static int soc_new_pcm(struct snd_soc_device *socdev,
|
||||||
codec_dai->codec = card->codec;
|
codec_dai->codec = card->codec;
|
||||||
|
|
||||||
/* check client and interface hw capabilities */
|
/* check client and interface hw capabilities */
|
||||||
sprintf(new_name, "%s %s-%d", dai_link->stream_name, codec_dai->name,
|
snprintf(new_name, sizeof(new_name), "%s %s-%d",
|
||||||
num);
|
dai_link->stream_name, codec_dai->name, num);
|
||||||
|
|
||||||
if (codec_dai->playback.channels_min)
|
if (codec_dai->playback.channels_min)
|
||||||
playback = 1;
|
playback = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue