aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-04-08 16:22:09 -0400
committerMark Brown <broonie@linaro.org>2014-04-08 16:22:09 -0400
commitf7cf71e3dfe90cff6ab426e78958758d4e2ebfeb (patch)
tree9140dfc89c458d0a268dcd66df3e7a95bb42164a /include
parent30b58f22ccb02d316030ece8e3f6cf369244fb25 (diff)
parent56fe48976db38ed3984e0e68b71e503e8179dd89 (diff)
Merge tag 'asoc-v3.15-2' into asoc-linus
ASoC: Updates for v3.15 This is mostly a few additional fixes from Lars-Peter, a new driver and cleaning up a git failure with merging the Intel branch (combined with an xargs failure to pay attention to error codes). The history lists a bunch of additional commits for the branch but the content of those commits is actually present already but not recorded in history due to git failing. Unfortunately xargs is used in the merge script and it doesn't do a good job of noticing errors from the commands it invokes. # gpg: Signature made Thu 13 Mar 2014 14:25:44 GMT using RSA key ID 7EA229BD # gpg: Good signature from "Mark Brown <broonie@sirena.org.uk>" # gpg: aka "Mark Brown <broonie@debian.org>" # gpg: aka "Mark Brown <broonie@kernel.org>" # gpg: aka "Mark Brown <broonie@tardis.ed.ac.uk>" # gpg: aka "Mark Brown <broonie@linaro.org>" # gpg: aka "Mark Brown <Mark.Brown@linaro.org>"
Diffstat (limited to 'include')
-rw-r--r--include/dt-bindings/sound/tlv320aic31xx-micbias.h8
-rw-r--r--include/sound/soc.h13
2 files changed, 11 insertions, 10 deletions
diff --git a/include/dt-bindings/sound/tlv320aic31xx-micbias.h b/include/dt-bindings/sound/tlv320aic31xx-micbias.h
new file mode 100644
index 000000000000..f5cb772ab9c8
--- /dev/null
+++ b/include/dt-bindings/sound/tlv320aic31xx-micbias.h
@@ -0,0 +1,8 @@
1#ifndef __DT_TLV320AIC31XX_MICBIAS_H
2#define __DT_TLV320AIC31XX_MICBIAS_H
3
4#define MICBIAS_2_0V 1
5#define MICBIAS_2_5V 2
6#define MICBIAS_AVDDV 3
7
8#endif /* __DT_TLV320AIC31XX_MICBIAS_H */
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 959f38949967..f7de629728bf 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -354,12 +354,6 @@ typedef int (*hw_write_t)(void *,const char* ,int);
354 354
355extern struct snd_ac97_bus_ops *soc_ac97_ops; 355extern struct snd_ac97_bus_ops *soc_ac97_ops;
356 356
357enum snd_soc_control_type {
358 SND_SOC_I2C = 1,
359 SND_SOC_SPI,
360 SND_SOC_REGMAP,
361};
362
363enum snd_soc_pcm_subclass { 357enum snd_soc_pcm_subclass {
364 SND_SOC_PCM_CLASS_PCM = 0, 358 SND_SOC_PCM_CLASS_PCM = 0,
365 SND_SOC_PCM_CLASS_BE = 1, 359 SND_SOC_PCM_CLASS_BE = 1,
@@ -406,8 +400,7 @@ int snd_soc_codec_readable_register(struct snd_soc_codec *codec,
406int snd_soc_codec_writable_register(struct snd_soc_codec *codec, 400int snd_soc_codec_writable_register(struct snd_soc_codec *codec,
407 unsigned int reg); 401 unsigned int reg);
408int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, 402int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
409 int addr_bits, int data_bits, 403 struct regmap *regmap);
410 enum snd_soc_control_type control);
411int snd_soc_cache_sync(struct snd_soc_codec *codec); 404int snd_soc_cache_sync(struct snd_soc_codec *codec);
412int snd_soc_cache_init(struct snd_soc_codec *codec); 405int snd_soc_cache_init(struct snd_soc_codec *codec);
413int snd_soc_cache_exit(struct snd_soc_codec *codec); 406int snd_soc_cache_exit(struct snd_soc_codec *codec);
@@ -614,7 +607,8 @@ struct snd_soc_jack_gpio {
614 struct snd_soc_jack *jack; 607 struct snd_soc_jack *jack;
615 struct delayed_work work; 608 struct delayed_work work;
616 609
617 int (*jack_status_check)(void); 610 void *data;
611 int (*jack_status_check)(void *data);
618}; 612};
619 613
620struct snd_soc_jack { 614struct snd_soc_jack {
@@ -717,7 +711,6 @@ struct snd_soc_codec {
717 /* codec IO */ 711 /* codec IO */
718 void *control_data; /* codec control (i2c/3wire) data */ 712 void *control_data; /* codec control (i2c/3wire) data */
719 hw_write_t hw_write; 713 hw_write_t hw_write;
720 unsigned int (*hw_read)(struct snd_soc_codec *, unsigned int);
721 unsigned int (*read)(struct snd_soc_codec *, unsigned int); 714 unsigned int (*read)(struct snd_soc_codec *, unsigned int);
722 int (*write)(struct snd_soc_codec *, unsigned int, unsigned int); 715 int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);
723 void *reg_cache; 716 void *reg_cache;