]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: add snd_soc_component_read32
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 6 Nov 2017 01:48:19 +0000 (01:48 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 21:19:36 +0000 (21:19 +0000)
commitc01eaaa22dd4f15ce2f489a54ef88c85d21adb7d
treeb8bb133a375e144777e805338fe697c77dcc53cd
parent3183e70671e76eb0c11357f1436fcc501aba0651
ASoC: add snd_soc_component_read32

Current codec drivers are using snd_soc_read(). It will be replaced
into snd_soc_component_read(), but these 2 are using different style.
For example, it will be

- val = snd_soc_read(xxx, reg);
+ ret = snd_soc_component_read(xxx, reg, &val);
+ if (ret < 0) {
+ ...
+ }

To more smooth replace, let's add snd_soc_component_read32
which is copied from snd_soc_read()

- val = snd_soc_read(xxx, reg);
+ val = snd_soc_component_read32(xxx, reg);

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-io.c