linux_dsm_epyc7002/sound/soc/sh/rcar
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
..
adg.c ASoC: rsnd: move .get_status under rsnd_mod_ops 2018-11-05 11:27:29 +00:00
cmd.c ASoC: rsnd: move .get_status under rsnd_mod_ops 2018-11-05 11:27:29 +00:00
core.c ASoC: rsnd: rsnd_mod_name() handles both name and ID 2018-11-05 11:28:00 +00:00
ctu.c ASoC: rsnd: add .get_id/.get_id_sub 2018-11-05 11:27:45 +00:00
dma.c ASoC: rsnd: rsnd_mod_name() handles both name and ID 2018-11-05 11:28:00 +00:00
dvc.c ASoC: rsnd: move .get_status under rsnd_mod_ops 2018-11-05 11:27:29 +00:00
gen.c ASoC: rsnd: rsnd_mod_name() handles both name and ID 2018-11-05 11:28:00 +00:00
Makefile ASoC: rsnd: convert to SPDX identifiers 2018-06-18 12:16:46 +01:00
mix.c ASoC: rsnd: move .get_status under rsnd_mod_ops 2018-11-05 11:27:29 +00:00
rsnd.h ASoC: rsnd: rsnd_mod_name() handles both name and ID 2018-11-05 11:28:00 +00:00
src.c ASoC: rsnd: rsnd_mod_name() handles both name and ID 2018-11-05 11:28:00 +00:00
ssi.c ASoC: rsnd: rsnd_mod_name() handles both name and ID 2018-11-05 11:28:00 +00:00
ssiu.c ASoC: rsnd: move .get_status under rsnd_mod_ops 2018-11-05 11:27:29 +00:00