mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 04:17:47 +00:00
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:
parent
9daa5bd34f
commit
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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user