summaryrefslogtreecommitdiff
path: root/include/sound/pcm.h
diff options
context:
space:
mode:
authorKenneth Westfield <kwestfie@codeaurora.org>2015-05-19 12:03:55 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:11:06 -0700
commit579b5a94176cabd6a7b8f65f04426070f0513d15 (patch)
treeb6980e6e75cbdd174301ff3109bf0b6037642f51 /include/sound/pcm.h
parent27c55476251a73d77631e5bb1892b9e24c7c04b5 (diff)
ASoC: pcm: Add delay_blk feature
Add delay_blk() to pcm, platform and DAI ops. The pcm delay_blk() op collects the audio DSP path delays from the low-level drivers and sets the runtime->delay field to their aggregate. Change-Id: Ib7e10f44ab8ccb46dc2f5825081d0afef662d827 Signed-off-by: Kenneth Westfield <kwestfie@codeaurora.org>
Diffstat (limited to 'include/sound/pcm.h')
-rw-r--r--include/sound/pcm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 6e98f4f08541..e1f4920053ed 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -80,10 +80,13 @@ struct snd_pcm_ops {
struct timespec *system_ts, struct timespec *audio_ts,
struct snd_pcm_audio_tstamp_config *audio_tstamp_config,
struct snd_pcm_audio_tstamp_report *audio_tstamp_report);
+ int (*delay_blk)(struct snd_pcm_substream *substream);
+ int (*wall_clock)(struct snd_pcm_substream *substream,
+ struct timespec *audio_ts);
int (*copy)(struct snd_pcm_substream *substream, int channel,
snd_pcm_uframes_t pos,
void __user *buf, snd_pcm_uframes_t count);
- int (*silence)(struct snd_pcm_substream *substream, int channel,
+ int (*silence)(struct snd_pcm_substream *substream, int channel,
snd_pcm_uframes_t pos, snd_pcm_uframes_t count);
struct page *(*page)(struct snd_pcm_substream *substream,
unsigned long offset);