soc.h (dd7b10b30c40dddb9750926d78cfe89c0cd8434d) soc.h (01d7584cd2e5a93a2b959c9dddaa0d93ec205404)
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

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

282struct snd_soc_codec;
283struct snd_soc_codec_driver;
284struct soc_enum;
285struct snd_soc_jack;
286struct snd_soc_jack_zone;
287struct snd_soc_jack_pin;
288struct snd_soc_cache_ops;
289#include <sound/soc-dapm.h>
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

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

282struct snd_soc_codec;
283struct snd_soc_codec_driver;
284struct soc_enum;
285struct snd_soc_jack;
286struct snd_soc_jack_zone;
287struct snd_soc_jack_pin;
288struct snd_soc_cache_ops;
289#include <sound/soc-dapm.h>
290#include <sound/soc-dpcm.h>
290
291#ifdef CONFIG_GPIOLIB
292struct snd_soc_jack_gpio;
293#endif
294
295typedef int (*hw_write_t)(void *,const char* ,int);
296
297extern struct snd_ac97_bus_ops soc_ac97_ops;

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

777 const char *stream_name; /* Stream name */
778 const char *codec_name; /* for multi-codec */
779 const struct device_node *codec_of_node;
780 const char *platform_name; /* for multi-platform */
781 const struct device_node *platform_of_node;
782 const char *cpu_dai_name;
783 const struct device_node *cpu_dai_of_node;
784 const char *codec_dai_name;
291
292#ifdef CONFIG_GPIOLIB
293struct snd_soc_jack_gpio;
294#endif
295
296typedef int (*hw_write_t)(void *,const char* ,int);
297
298extern struct snd_ac97_bus_ops soc_ac97_ops;

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

778 const char *stream_name; /* Stream name */
779 const char *codec_name; /* for multi-codec */
780 const struct device_node *codec_of_node;
781 const char *platform_name; /* for multi-platform */
782 const struct device_node *platform_of_node;
783 const char *cpu_dai_name;
784 const struct device_node *cpu_dai_of_node;
785 const char *codec_dai_name;
786 int be_id; /* optional ID for machine driver BE identification */
785
786 const struct snd_soc_pcm_stream *params;
787
788 unsigned int dai_fmt; /* format to set on init */
789
787
788 const struct snd_soc_pcm_stream *params;
789
790 unsigned int dai_fmt; /* format to set on init */
791
792 enum snd_soc_dpcm_trigger trigger[2]; /* trigger type for DPCM */
793
790 /* Keep DAI active over suspend */
791 unsigned int ignore_suspend:1;
792
793 /* Symmetry requirements */
794 unsigned int symmetric_rates:1;
795
794 /* Keep DAI active over suspend */
795 unsigned int ignore_suspend:1;
796
797 /* Symmetry requirements */
798 unsigned int symmetric_rates:1;
799
800 /* Do not create a PCM for this DAI link (Backend link) */
801 unsigned int no_pcm:1;
802
803 /* This DAI link can route to other DAI links at runtime (Frontend)*/
804 unsigned int dynamic:1;
805
796 /* pmdown_time is ignored at stop */
797 unsigned int ignore_pmdown_time:1;
798
799 /* codec/machine specific init - e.g. add machine controls */
800 int (*init)(struct snd_soc_pcm_runtime *rtd);
801
806 /* pmdown_time is ignored at stop */
807 unsigned int ignore_pmdown_time:1;
808
809 /* codec/machine specific init - e.g. add machine controls */
810 int (*init)(struct snd_soc_pcm_runtime *rtd);
811
812 /* optional hw_params re-writing for BE and FE sync */
813 int (*be_hw_params_fixup)(struct snd_soc_pcm_runtime *rtd,
814 struct snd_pcm_hw_params *params);
815
802 /* machine stream operations */
803 struct snd_soc_ops *ops;
804};
805
806struct snd_soc_codec_conf {
807 const char *dev_name;
808
809 /*

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

925 struct snd_soc_card *card;
926 struct snd_soc_dai_link *dai_link;
927 struct mutex pcm_mutex;
928 enum snd_soc_pcm_subclass pcm_subclass;
929 struct snd_pcm_ops ops;
930
931 unsigned int dev_registered:1;
932
816 /* machine stream operations */
817 struct snd_soc_ops *ops;
818};
819
820struct snd_soc_codec_conf {
821 const char *dev_name;
822
823 /*

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

939 struct snd_soc_card *card;
940 struct snd_soc_dai_link *dai_link;
941 struct mutex pcm_mutex;
942 enum snd_soc_pcm_subclass pcm_subclass;
943 struct snd_pcm_ops ops;
944
945 unsigned int dev_registered:1;
946
947 /* Dynamic PCM BE runtime data */
948 struct snd_soc_dpcm_runtime dpcm[2];
949
933 long pmdown_time;
934
935 /* runtime devices */
936 struct snd_pcm *pcm;
937 struct snd_soc_codec *codec;
938 struct snd_soc_platform *platform;
939 struct snd_soc_dai *codec_dai;
940 struct snd_soc_dai *cpu_dai;

--- 127 unchanged lines hidden ---
950 long pmdown_time;
951
952 /* runtime devices */
953 struct snd_pcm *pcm;
954 struct snd_soc_codec *codec;
955 struct snd_soc_platform *platform;
956 struct snd_soc_dai *codec_dai;
957 struct snd_soc_dai *cpu_dai;

--- 127 unchanged lines hidden ---