diff options
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dai.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 08b8f7025c64..f51cb55902f7 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
@@ -156,6 +156,23 @@ struct snd_soc_dai_ops { | |||
156 | * Called by soc-core to minimise any pops. | 156 | * Called by soc-core to minimise any pops. |
157 | */ | 157 | */ |
158 | int (*digital_mute)(struct snd_soc_dai *dai, int mute); | 158 | int (*digital_mute)(struct snd_soc_dai *dai, int mute); |
159 | |||
160 | /* | ||
161 | * ALSA PCM audio operations - all optional. | ||
162 | * Called by soc-core during audio PCM operations. | ||
163 | */ | ||
164 | int (*startup)(struct snd_pcm_substream *, | ||
165 | struct snd_soc_dai *); | ||
166 | void (*shutdown)(struct snd_pcm_substream *, | ||
167 | struct snd_soc_dai *); | ||
168 | int (*hw_params)(struct snd_pcm_substream *, | ||
169 | struct snd_pcm_hw_params *, struct snd_soc_dai *); | ||
170 | int (*hw_free)(struct snd_pcm_substream *, | ||
171 | struct snd_soc_dai *); | ||
172 | int (*prepare)(struct snd_pcm_substream *, | ||
173 | struct snd_soc_dai *); | ||
174 | int (*trigger)(struct snd_pcm_substream *, int, | ||
175 | struct snd_soc_dai *); | ||
159 | }; | 176 | }; |
160 | 177 | ||
161 | /* | 178 | /* |
@@ -180,8 +197,7 @@ struct snd_soc_dai { | |||
180 | struct snd_soc_dai *dai); | 197 | struct snd_soc_dai *dai); |
181 | 198 | ||
182 | /* ops */ | 199 | /* ops */ |
183 | struct snd_soc_ops ops; | 200 | struct snd_soc_dai_ops ops; |
184 | struct snd_soc_dai_ops dai_ops; | ||
185 | 201 | ||
186 | /* DAI capabilities */ | 202 | /* DAI capabilities */ |
187 | struct snd_soc_pcm_stream capture; | 203 | struct snd_soc_pcm_stream capture; |