diff options
Diffstat (limited to 'include/sound/soc-dai.h')
| -rw-r--r-- | include/sound/soc-dai.h | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 13676472ddfc..352d7eee9b6d 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
| @@ -45,24 +45,6 @@ struct snd_pcm_substream; | |||
| 45 | #define SND_SOC_DAIFMT_GATED (1 << 4) /* clock is gated */ | 45 | #define SND_SOC_DAIFMT_GATED (1 << 4) /* clock is gated */ |
| 46 | 46 | ||
| 47 | /* | 47 | /* |
| 48 | * DAI Left/Right Clocks. | ||
| 49 | * | ||
| 50 | * Specifies whether the DAI can support different samples for similtanious | ||
| 51 | * playback and capture. This usually requires a seperate physical frame | ||
| 52 | * clock for playback and capture. | ||
| 53 | */ | ||
| 54 | #define SND_SOC_DAIFMT_SYNC (0 << 5) /* Tx FRM = Rx FRM */ | ||
| 55 | #define SND_SOC_DAIFMT_ASYNC (1 << 5) /* Tx FRM ~ Rx FRM */ | ||
| 56 | |||
| 57 | /* | ||
| 58 | * TDM | ||
| 59 | * | ||
| 60 | * Time Division Multiplexing. Allows PCM data to be multplexed with other | ||
| 61 | * data on the DAI. | ||
| 62 | */ | ||
| 63 | #define SND_SOC_DAIFMT_TDM (1 << 6) | ||
| 64 | |||
| 65 | /* | ||
| 66 | * DAI hardware signal inversions. | 48 | * DAI hardware signal inversions. |
| 67 | * | 49 | * |
| 68 | * Specifies whether the DAI can also support inverted clocks for the specified | 50 | * Specifies whether the DAI can also support inverted clocks for the specified |
| @@ -96,6 +78,10 @@ struct snd_pcm_substream; | |||
| 96 | #define SND_SOC_CLOCK_IN 0 | 78 | #define SND_SOC_CLOCK_IN 0 |
| 97 | #define SND_SOC_CLOCK_OUT 1 | 79 | #define SND_SOC_CLOCK_OUT 1 |
| 98 | 80 | ||
| 81 | #define SND_SOC_STD_AC97_FMTS (SNDRV_PCM_FMTBIT_S16_LE |\ | ||
| 82 | SNDRV_PCM_FMTBIT_S32_LE |\ | ||
| 83 | SNDRV_PCM_FMTBIT_S32_BE) | ||
| 84 | |||
| 99 | struct snd_soc_dai_ops; | 85 | struct snd_soc_dai_ops; |
| 100 | struct snd_soc_dai; | 86 | struct snd_soc_dai; |
| 101 | struct snd_ac97_bus_ops; | 87 | struct snd_ac97_bus_ops; |
| @@ -208,6 +194,7 @@ struct snd_soc_dai { | |||
| 208 | /* DAI capabilities */ | 194 | /* DAI capabilities */ |
| 209 | struct snd_soc_pcm_stream capture; | 195 | struct snd_soc_pcm_stream capture; |
| 210 | struct snd_soc_pcm_stream playback; | 196 | struct snd_soc_pcm_stream playback; |
| 197 | unsigned int symmetric_rates:1; | ||
| 211 | 198 | ||
| 212 | /* DAI runtime info */ | 199 | /* DAI runtime info */ |
| 213 | struct snd_pcm_runtime *runtime; | 200 | struct snd_pcm_runtime *runtime; |
| @@ -219,11 +206,8 @@ struct snd_soc_dai { | |||
| 219 | /* DAI private data */ | 206 | /* DAI private data */ |
| 220 | void *private_data; | 207 | void *private_data; |
| 221 | 208 | ||
| 222 | /* parent codec/platform */ | 209 | /* parent platform */ |
| 223 | union { | 210 | struct snd_soc_platform *platform; |
| 224 | struct snd_soc_codec *codec; | ||
| 225 | struct snd_soc_platform *platform; | ||
| 226 | }; | ||
| 227 | 211 | ||
| 228 | struct list_head list; | 212 | struct list_head list; |
| 229 | }; | 213 | }; |
