All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keyon Jie <yang.jie@linux.intel.com>
To: alsa-devel@alsa-project.org
Cc: 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 v2 2/2] ASoC: SOF: Intel: fix reset of host_period_bytes
Date: Wed,  3 Jul 2019 23:10:23 +0800	[thread overview]
Message-ID: <20190703151023.30313-2-yang.jie@linux.intel.com> (raw)
In-Reply-To: <20190703151023.30313-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

  reply	other threads:[~2019-07-03 15:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-03 15:10 [PATCH v2 1/2] ASoC: SOF: add flag for position update ipc Keyon Jie
2019-07-03 15:10 ` Keyon Jie [this message]
2019-07-03 19:07   ` [PATCH v2 2/2] ASoC: SOF: Intel: fix reset of host_period_bytes Ranjani Sridharan
2019-07-04 10:05   ` Kai Vehmanen
2019-07-04 10:03 ` [PATCH v2 1/2] ASoC: SOF: add flag for position update ipc Kai Vehmanen
2019-07-04 10:29   ` Keyon Jie
2019-07-04 11:00     ` Kai Vehmanen
2019-07-17 15:48 ` Pierre-Louis Bossart
2019-07-18  2:47   ` 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=20190703151023.30313-2-yang.jie@linux.intel.com \
    --to=yang.jie@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.