[alsa-devel] [PATCH 4/8] ASoC: AD1836: use local control_type field

Mike Frysinger vapier at gentoo.org
Tue Jun 14 23:34:24 CEST 2011


We set up a local control_type field, so use it rather than hardcoding the
type inside of the register call.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 sound/soc/codecs/ad1836.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c
index 56b90aa..d60c53d 100644
--- a/sound/soc/codecs/ad1836.c
+++ b/sound/soc/codecs/ad1836.c
@@ -223,7 +223,7 @@ static int ad1836_probe(struct snd_soc_codec *codec)
 	int ret = 0;
 
 	codec->control_data = ad1836->control_data;
-	ret = snd_soc_codec_set_cache_io(codec, 4, 12, SND_SOC_SPI);
+	ret = snd_soc_codec_set_cache_io(codec, 4, 12, ad1836->control_type);
 	if (ret < 0) {
 		dev_err(codec->dev, "failed to set cache I/O: %d\n",
 				ret);
-- 
1.7.5.3



More information about the Alsa-devel mailing list