]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: SOF: Intel: use snd_sof_pcm_period_elapsed
authorKeyon Jie <yang.jie@linux.intel.com>
Tue, 30 Apr 2019 23:09:26 +0000 (18:09 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2019 05:59:43 +0000 (14:59 +0900)
Switch to a wrapper function which schedules the actual call of
snd_pcm_period_elapsed after the current IPC is completed.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-stream.c

index 6290b2df5e621dcb3ac9225591f8e80d59fc3916..47eff161c60e3d8f8e11bd7adb6f1d01e077b8f0 100644 (file)
@@ -465,8 +465,8 @@ irqreturn_t hda_dsp_stream_threaded_handler(int irq, void *context)
 {
        struct hdac_bus *bus = context;
        struct sof_intel_hda_dev *sof_hda = bus_to_sof_hda(bus);
-       struct hdac_stream *s;
        u32 status = snd_hdac_chip_readl(bus, INTSTS);
+       struct hdac_stream *s;
        u32 sd_status;
 
        /* check streams */
@@ -486,7 +486,7 @@ irqreturn_t hda_dsp_stream_threaded_handler(int irq, void *context)
 
                        /* Inform ALSA only in case not do that with IPC */
                        if (sof_hda->no_ipc_position)
-                               snd_pcm_period_elapsed(s->substream);
+                               snd_sof_pcm_period_elapsed(s->substream);
 
                }
        }