linux-stable/sound/soc/sh
Kuninori Morimoto c0ea089dba
ASoC: rsnd: rsnd_mod_name() handles both name and ID
Current rsnd driver is using "%s[%d]" for mod name and ID,
but, this ID portion might confusable.
For example currently, CTU ID is 0 to 7, but using 00 to 13
(= 00, 01, 02, 03, 10, 11, 12, 13) is very best matching to datasheet.

In the future, we will support BUSIFn, but it will be more complicated
numbering. To avoid future confusable code, this patch modify
rsnd_mod_name() to return understandable name.

To avoid using pointless memory, it uses static char and snprintf,
thus, rsnd_mod_name() user should use it immediately, and shouldn't keep
its pointer.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-11-05 11:28:00 +00:00
..
rcar ASoC: rsnd: rsnd_mod_name() handles both name and ID 2018-11-05 11:28:00 +00:00
dma-sh7760.c ASoC: dma-sh7760: convert to SPDX identifiers 2018-06-18 12:16:57 +01:00
fsi.c ASoC: fsi: convert to SPDX identifiers 2018-06-18 12:16:25 +01:00
hac.c ASoC: sh: use devm_snd_soc_register_component() 2018-09-10 15:14:38 +01:00
Kconfig ASoC: sh: Kconfig: convert to SPDX identifiers 2018-07-30 12:02:29 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
migor.c ASoC: migor: convert to SPDX identifiers 2018-06-18 12:16:50 +01:00
sh7760-ac97.c ASoC: sh7760-ac97: convert to SPDX identifiers 2018-06-18 12:17:01 +01:00
siu.h ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
siu_dai.c ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
siu_pcm.c ASoC: siu: convert to SPDX identifiers 2018-06-18 12:16:42 +01:00
ssi.c ASoC: ssi: convert to SPDX identifiers 2018-06-18 12:16:37 +01:00