[alsa-devel] [SAMPLE-PATCH x/x] ASoC: remove snd_soc_read/write

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Wed Oct 19 07:51:52 CEST 2016


struct snd_soc_codec related function/feature will be merged into
struct snd_soc_component. This patch remove snd_soc_read/write

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
 include/sound/soc.h |  5 -----
 sound/soc/soc-io.c  | 20 --------------------
 2 files changed, 25 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 4f1c784..9f0094d 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1425,11 +1425,6 @@ static inline struct snd_soc_codec *snd_soc_dapm_kcontrol_codec(
 	return snd_soc_dapm_to_codec(snd_soc_dapm_kcontrol_dapm(kcontrol));
 }
 
-/* codec IO */
-unsigned int snd_soc_read(struct snd_soc_codec *codec, unsigned int reg);
-int snd_soc_write(struct snd_soc_codec *codec, unsigned int reg,
-	unsigned int val);
-
 /**
  * snd_soc_cache_sync() - Sync the register cache with the hardware
  * @codec: CODEC to sync
diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c
index 9b39390..dbd3caa 100644
--- a/sound/soc/soc-io.c
+++ b/sound/soc/soc-io.c
@@ -193,26 +193,6 @@ int snd_soc_component_test_bits(struct snd_soc_component *component,
 }
 EXPORT_SYMBOL_GPL(snd_soc_component_test_bits);
 
-unsigned int snd_soc_read(struct snd_soc_codec *codec, unsigned int reg)
-{
-	unsigned int val;
-	int ret;
-
-	ret = snd_soc_component_read(&codec->component, reg, &val);
-	if (ret < 0)
-		return -1;
-
-	return val;
-}
-EXPORT_SYMBOL_GPL(snd_soc_read);
-
-int snd_soc_write(struct snd_soc_codec *codec, unsigned int reg,
-	unsigned int val)
-{
-	return snd_soc_component_write(&codec->component, reg, val);
-}
-EXPORT_SYMBOL_GPL(snd_soc_write);
-
 /**
  * snd_soc_update_bits - update codec register bits
  * @codec: audio codec
-- 
1.9.1



More information about the Alsa-devel mailing list