soc.h (72ed73c3f0801e860ee27e53ab6aaf47941ba324) soc.h (5fb609d435f0679ed322ddeb1fdafe6142463fdf)
1/*
2 * linux/sound/soc.h -- ALSA SoC Layer
3 *
4 * Author: Liam Girdwood
5 * Created: Aug 11th 2005
6 * Copyright: Wolfson Microelectronics. PLC.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 529 unchanged lines hidden (view full) ---

538 u32 cache_sync; /* Cache needs to be synced to hardware */
539
540 /* codec IO */
541 void *control_data; /* codec control (i2c/3wire) data */
542 hw_write_t hw_write;
543 unsigned int (*hw_read)(struct snd_soc_codec *, unsigned int);
544 unsigned int (*read)(struct snd_soc_codec *, unsigned int);
545 int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);
1/*
2 * linux/sound/soc.h -- ALSA SoC Layer
3 *
4 * Author: Liam Girdwood
5 * Created: Aug 11th 2005
6 * Copyright: Wolfson Microelectronics. PLC.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 529 unchanged lines hidden (view full) ---

538 u32 cache_sync; /* Cache needs to be synced to hardware */
539
540 /* codec IO */
541 void *control_data; /* codec control (i2c/3wire) data */
542 hw_write_t hw_write;
543 unsigned int (*hw_read)(struct snd_soc_codec *, unsigned int);
544 unsigned int (*read)(struct snd_soc_codec *, unsigned int);
545 int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);
546 int (*bulk_write_raw)(struct snd_soc_codec *, unsigned int, const void *, size_t);
546 void *reg_cache;
547 const void *reg_def_copy;
548 const struct snd_soc_cache_ops *cache_ops;
549 struct mutex cache_rw_mutex;
550
551 /* dapm */
552 struct snd_soc_dapm_context dapm;
553

--- 255 unchanged lines hidden (view full) ---

809 const unsigned int *values;
810 void *dapm;
811};
812
813/* codec IO */
814unsigned int snd_soc_read(struct snd_soc_codec *codec, unsigned int reg);
815unsigned int snd_soc_write(struct snd_soc_codec *codec,
816 unsigned int reg, unsigned int val);
547 void *reg_cache;
548 const void *reg_def_copy;
549 const struct snd_soc_cache_ops *cache_ops;
550 struct mutex cache_rw_mutex;
551
552 /* dapm */
553 struct snd_soc_dapm_context dapm;
554

--- 255 unchanged lines hidden (view full) ---

810 const unsigned int *values;
811 void *dapm;
812};
813
814/* codec IO */
815unsigned int snd_soc_read(struct snd_soc_codec *codec, unsigned int reg);
816unsigned int snd_soc_write(struct snd_soc_codec *codec,
817 unsigned int reg, unsigned int val);
818unsigned int snd_soc_bulk_write_raw(struct snd_soc_codec *codec,
819 unsigned int reg, const void *data, size_t len);
817
818/* device driver data */
819
820static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card,
821 void *data)
822{
823 card->drvdata = data;
824}

--- 58 unchanged lines hidden ---
820
821/* device driver data */
822
823static inline void snd_soc_card_set_drvdata(struct snd_soc_card *card,
824 void *data)
825{
826 card->drvdata = data;
827}

--- 58 unchanged lines hidden ---