From 8c2c98be33175c21d3c8be90943d1fa2207666f5 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Sat, 13 Aug 2011 11:50:48 +0900 Subject: [PATCH] --- yaml --- r: 270505 b: refs/heads/master c: 4835ff9aca639107ca0233c10aa854d460c8797d h: refs/heads/master i: 270503: 7a1610a5b6b9c926aed802de94ef3b1728bff189 v: v3 --- [refs] | 2 +- trunk/sound/soc/soc-io.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 7ac1636c0290..a6ace944b7e5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: afe8db5f756ceb017dbcf2800f9a7302ee49a385 +refs/heads/master: 4835ff9aca639107ca0233c10aa854d460c8797d diff --git a/trunk/sound/soc/soc-io.c b/trunk/sound/soc/soc-io.c index 22b64317182b..66fcccd79efe 100644 --- a/trunk/sound/soc/soc-io.c +++ b/trunk/sound/soc/soc-io.c @@ -18,6 +18,7 @@ #include +#ifdef CONFIG_REGMAP static int hw_write(struct snd_soc_codec *codec, unsigned int reg, unsigned int value) { @@ -150,4 +151,12 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, return 0; } EXPORT_SYMBOL_GPL(snd_soc_codec_set_cache_io); - +#else +int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, + int addr_bits, int data_bits, + enum snd_soc_control_type control) +{ + return -ENOTSUPP; +} +EXPORT_SYMBOL_GPL(snd_soc_codec_set_cache_io); +#endif