aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sound/soc.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 2af3213df90c..cf6111d72b17 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -214,10 +214,6 @@ void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
214 struct snd_soc_jack_gpio *gpios); 214 struct snd_soc_jack_gpio *gpios);
215#endif 215#endif
216 216
217/* codec IO */
218#define snd_soc_read(codec, reg) codec->read(codec, reg)
219#define snd_soc_write(codec, reg, value) codec->write(codec, reg, value)
220
221/* codec register bit access */ 217/* codec register bit access */
222int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg, 218int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg,
223 unsigned short mask, unsigned short value); 219 unsigned short mask, unsigned short value);
@@ -507,6 +503,19 @@ struct soc_enum {
507 void *dapm; 503 void *dapm;
508}; 504};
509 505
506/* codec IO */
507static inline unsigned int snd_soc_read(struct snd_soc_codec *codec,
508 unsigned int reg)
509{
510 return codec->read(codec, reg);
511}
512
513static inline unsigned int snd_soc_write(struct snd_soc_codec *codec,
514 unsigned int reg, unsigned int val)
515{
516 return codec->write(codec, reg, val);
517}
518
510#include <sound/soc-dai.h> 519#include <sound/soc-dai.h>
511 520
512#endif 521#endif