aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index b4c8c3800503..a14a0507bbd0 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -117,7 +117,7 @@ static ssize_t soc_codec_reg_show(struct snd_soc_codec *codec, char *buf)
117 * the register being volatile and the device being 117 * the register being volatile and the device being
118 * powered off. 118 * powered off.
119 */ 119 */
120 ret = codec->driver->read(codec, i); 120 ret = snd_soc_read(codec, i);
121 if (ret >= 0) 121 if (ret >= 0)
122 count += snprintf(buf + count, 122 count += snprintf(buf + count,
123 PAGE_SIZE - count, 123 PAGE_SIZE - count,
@@ -228,7 +228,7 @@ static ssize_t codec_reg_write_file(struct file *file,
228 start++; 228 start++;
229 if (strict_strtoul(start, 16, &value)) 229 if (strict_strtoul(start, 16, &value))
230 return -EINVAL; 230 return -EINVAL;
231 codec->driver->write(codec, reg, value); 231 snd_soc_write(codec, reg, value);
232 return buf_size; 232 return buf_size;
233} 233}
234 234