From: Keyon Jie <yang.jie@linux.intel.com>
To: alsa-devel@alsa-project.org
Cc: marcin.rajwa@intel.com, Keyon Jie <yang.jie@linux.intel.com>,
ranjani.sridharan@linux.intel.com,
Marcin Rajwa <marcin.rajwa@linux.intel.com>,
pierre-louis.bossart@linux.intel.com
Subject: [PATCH 2/2] ASoC: SOF: Intel: fix reset of host_period_bytes
Date: Tue, 2 Jul 2019 20:11:44 +0800 [thread overview]
Message-ID: <20190702121144.7809-2-yang.jie@linux.intel.com> (raw)
In-Reply-To: <20190702121144.7809-1-yang.jie@linux.intel.com>
From: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This patch prevents the reset of host period bytes.
The parameter has been used to keep information about
completion of period copy. Right now we keep this
information in period_irq.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
---
sound/soc/sof/intel/hda-pcm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sof/intel/hda-pcm.c b/sound/soc/sof/intel/hda-pcm.c
index 9b730f183529..c7022346aba0 100644
--- a/sound/soc/sof/intel/hda-pcm.c
+++ b/sound/soc/sof/intel/hda-pcm.c
@@ -116,9 +116,9 @@ int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
/* disable SPIB, to enable buffer wrap for stream */
hda_dsp_stream_spib_config(sdev, stream, HDA_DSP_SPIB_DISABLE, 0);
- /* set host_period_bytes to 0 if no IPC position */
+ /* update no_period_irq flag for ipc params */
if (hda && hda->no_ipc_position)
- ipc_params->host_period_bytes = 0;
+ ipc_params->no_period_irq = 1;
ipc_params->stream_tag = hstream->stream_tag;
--
2.20.1
next prev parent reply other threads:[~2019-07-02 12:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 12:11 [PATCH 1/2] ASoC: SOF: ipc: update sof_ipc_stream_params Keyon Jie
2019-07-02 12:11 ` Keyon Jie [this message]
2019-07-02 23:29 ` Ranjani Sridharan
2019-07-03 1:52 ` Keyon Jie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190702121144.7809-2-yang.jie@linux.intel.com \
--to=yang.jie@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=marcin.rajwa@intel.com \
--cc=marcin.rajwa@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox