diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc-dai.h | 6 | ||||
| -rw-r--r-- | include/sound/soc.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 20de0bcaa137..6cf76a41501e 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
| @@ -182,6 +182,12 @@ struct snd_soc_dai_ops { | |||
| 182 | struct snd_soc_dai *); | 182 | struct snd_soc_dai *); |
| 183 | int (*trigger)(struct snd_pcm_substream *, int, | 183 | int (*trigger)(struct snd_pcm_substream *, int, |
| 184 | struct snd_soc_dai *); | 184 | struct snd_soc_dai *); |
| 185 | /* | ||
| 186 | * For hardware based FIFO caused delay reporting. | ||
| 187 | * Optional. | ||
| 188 | */ | ||
| 189 | snd_pcm_sframes_t (*delay)(struct snd_pcm_substream *, | ||
| 190 | struct snd_soc_dai *); | ||
| 185 | }; | 191 | }; |
| 186 | 192 | ||
| 187 | /* | 193 | /* |
diff --git a/include/sound/soc.h b/include/sound/soc.h index f792c1881b0a..dbfec16015de 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -470,6 +470,13 @@ struct snd_soc_platform { | |||
| 470 | struct snd_pcm *); | 470 | struct snd_pcm *); |
| 471 | void (*pcm_free)(struct snd_pcm *); | 471 | void (*pcm_free)(struct snd_pcm *); |
| 472 | 472 | ||
| 473 | /* | ||
| 474 | * For platform caused delay reporting. | ||
| 475 | * Optional. | ||
| 476 | */ | ||
| 477 | snd_pcm_sframes_t (*delay)(struct snd_pcm_substream *, | ||
| 478 | struct snd_soc_dai *); | ||
| 479 | |||
| 473 | /* platform stream ops */ | 480 | /* platform stream ops */ |
| 474 | struct snd_pcm_ops *pcm_ops; | 481 | struct snd_pcm_ops *pcm_ops; |
| 475 | }; | 482 | }; |
