]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoc: Intel: mfld-pcm: report pcm delay
authorVinod Koul <vinod.koul@intel.com>
Fri, 13 Jun 2014 12:33:53 +0000 (18:03 +0530)
committerMark Brown <broonie@linaro.org>
Sat, 21 Jun 2014 15:31:01 +0000 (16:31 +0100)
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>
sound/soc/intel/sst-mfld-platform-pcm.c
sound/soc/intel/sst-mfld-platform.h

index 4528946f5e9ea27441a748adc2cc9c5d58d1cce0..80879e5fcb49b49e0d768745bc4bbcd5b4a46add 100644 (file)
@@ -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;
 }
 
index 6d929c7d7bbba6e4ecfaa56fbe65a595839b3358..33a0a27762389dd21636b2e7e1a2554ff05d203d 100644 (file)
@@ -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;
 };