linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: Intel: Reset hw_ptr on resume trigger
@ 2017-07-28  8:42 Cheng-Yi Chiang
  2017-07-28 12:46 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Cheng-Yi Chiang @ 2017-07-28  8:42 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	U . Artie Eoff, alsa-devel, linux-kernel

From: "U. Artie Eoff" <ullysses.a.eoff@intel.com>

Reset the hw_ptr before queuing the restore_stream_context
work to eradicate a nasty white audio noise on resume.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
---
 sound/soc/intel/baytrail/sst-baytrail-pcm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sound/soc/intel/baytrail/sst-baytrail-pcm.c b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
index 4765ad474544..e0db7070cd42 100644
--- a/sound/soc/intel/baytrail/sst-baytrail-pcm.c
+++ b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
@@ -187,8 +187,10 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
 		sst_byt_stream_start(byt, pcm_data->stream, 0);
 		break;
 	case SNDRV_PCM_TRIGGER_RESUME:
-		if (pdata->restore_stream == true)
+		if (pdata->restore_stream == true) {
+			pcm_data->hw_ptr = 0;
 			schedule_work(&pcm_data->work);
+		}
 		else
 			sst_byt_stream_resume(byt, pcm_data->stream);
 		break;
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: Intel: Reset hw_ptr on resume trigger
  2017-07-28  8:42 [PATCH] ASoC: Intel: Reset hw_ptr on resume trigger Cheng-Yi Chiang
@ 2017-07-28 12:46 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2017-07-28 12:46 UTC (permalink / raw)
  To: Cheng-Yi Chiang, Vinod.Koul
  Cc: linux-arm-kernel, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	U . Artie Eoff, alsa-devel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

On Fri, Jul 28, 2017 at 04:42:06PM +0800, Cheng-Yi Chiang wrote:
> From: "U. Artie Eoff" <ullysses.a.eoff@intel.com>
> 
> Reset the hw_ptr before queuing the restore_stream_context
> work to eradicate a nasty white audio noise on resume.
> 
> Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>

I can't do anything with this, you've not provided a signoff for it.
Please see SubmittingPatches for what a signoff means and why it's
important.

Please also try to send your patches to relevant people - you've sent
this to the ARM kernel list but not to Vinod Koul who's the main
maintainer for the Intel drivers.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-28 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-28  8:42 [PATCH] ASoC: Intel: Reset hw_ptr on resume trigger Cheng-Yi Chiang
2017-07-28 12:46 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).