summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorKeyon Jie <yang.jie@linux.intel.com>2019-05-01 02:09:26 +0300
committerMark Brown <broonie@kernel.org>2019-05-03 08:59:43 +0300
commit8242d53975a95c8c35c5fd0d2c1689b53be07db8 (patch)
tree646631502787459027dd2e1d2dc5b250ed09c121 /sound
parente2803e610aecb36ea4fec5a04861547664580d0c (diff)
downloadlinux-8242d53975a95c8c35c5fd0d2c1689b53be07db8.tar.xz
ASoC: SOF: Intel: use snd_sof_pcm_period_elapsed
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/sof/intel/hda-stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c
index 6290b2df5e62..47eff161c60e 100644
--- a/sound/soc/sof/intel/hda-stream.c
+++ b/sound/soc/sof/intel/hda-stream.c
@@ -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);
}
}