diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-06-13 08:33:53 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-21 11:31:01 -0400 |
commit | 2a6358250081c24cc1e564cb82ecbfd19d8c7238 (patch) | |
tree | 199c57b81de92a8cfb41b782086e56163052bde1 /sound/soc/intel | |
parent | 9daa5bd34f84e43f23ce996d43da5f39348ae8fd (diff) |
ASoc: Intel: mfld-pcm: report pcm delay
Now the DSP is capable of reporting the delay, report it to upper layers
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/sst-mfld-platform-pcm.c | 1 | ||||
-rw-r--r-- | sound/soc/intel/sst-mfld-platform.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-mfld-platform-pcm.c b/sound/soc/intel/sst-mfld-platform-pcm.c index 4528946f5e9e..80879e5fcb49 100644 --- a/sound/soc/intel/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/sst-mfld-platform-pcm.c | |||
@@ -409,6 +409,7 @@ static snd_pcm_uframes_t sst_platform_pcm_pointer | |||
409 | pr_err("sst: error code = %d\n", ret_val); | 409 | pr_err("sst: error code = %d\n", ret_val); |
410 | return ret_val; | 410 | return ret_val; |
411 | } | 411 | } |
412 | substream->runtime->delay = str_info->pcm_delay; | ||
412 | return str_info->buffer_ptr; | 413 | return str_info->buffer_ptr; |
413 | } | 414 | } |
414 | 415 | ||
diff --git a/sound/soc/intel/sst-mfld-platform.h b/sound/soc/intel/sst-mfld-platform.h index 6d929c7d7bbb..33a0a2776238 100644 --- a/sound/soc/intel/sst-mfld-platform.h +++ b/sound/soc/intel/sst-mfld-platform.h | |||
@@ -42,6 +42,7 @@ struct pcm_stream_info { | |||
42 | void *arg; | 42 | void *arg; |
43 | void (*period_elapsed) (void *arg); | 43 | void (*period_elapsed) (void *arg); |
44 | unsigned long long buffer_ptr; | 44 | unsigned long long buffer_ptr; |
45 | unsigned long long pcm_delay; | ||
45 | int sfreq; | 46 | int sfreq; |
46 | }; | 47 | }; |
47 | 48 | ||