Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a635825 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown
Browse files

ASoc: Intel: mfld-pcm: report pcm delay



Now the DSP is capable of reporting the delay, report it to upper layers

Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 9daa5bd3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}

+1 −0
Original line number Diff line number Diff line
@@ -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;
};