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>
This commit is contained in:
Родитель
9daa5bd34f
Коммит
2a63582500
|
@ -409,6 +409,7 @@ static snd_pcm_uframes_t sst_platform_pcm_pointer
|
|||
pr_err("sst: error code = %d\n", ret_val);
|
||||
return ret_val;
|
||||
}
|
||||
substream->runtime->delay = str_info->pcm_delay;
|
||||
return str_info->buffer_ptr;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ struct pcm_stream_info {
|
|||
void *arg;
|
||||
void (*period_elapsed) (void *arg);
|
||||
unsigned long long buffer_ptr;
|
||||
unsigned long long pcm_delay;
|
||||
int sfreq;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче