Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700615

RE: [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger

From "Eoff, Ullysses A" <ullysses.a.eoff@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger
Date 2017-08-01 06:40 +0200
Message-ID <u9x8m-72S-9@gated-at.bofh.it> (permalink)
References <u9gqS-5by-13@gated-at.bofh.it> <u9w2B-6pU-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch was originally submitted in the context of the ChromiumOS kernel 3.10 for BYT (https://groups.google.com/a/chromium.org/forum/#!topic/chromium-os-reviews/AsoBhfHzQg8).


> -----Original Message-----
> From: Koul, Vinod
> Sent: Monday, July 31, 2017 8:30 PM
> To: Cheng-Yi Chiang <cychiang@chromium.org>; Jie, Yang <yang.jie@intel.com>
> Cc: linux-kernel@vger.kernel.org; Liam Girdwood <lgirdwood@gmail.com>; Mark Brown <broonie@kernel.org>; Jaroslav Kysela
> <perex@perex.cz>; Takashi Iwai <tiwai@suse.com>; Eoff, Ullysses A <ullysses.a.eoff@intel.com>; alsa-devel@alsa-project.org
> Subject: Re: [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger
> 
> On Mon, Jul 31, 2017 at 06:47:34PM +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.
> 
> Liam, Jie? This on legacy BYT driver..
> 
> >
> > Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
> > Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
> > Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
> > ---
> >  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
> >
> 
> --
> ~Vinod

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger Vinod Koul <vinod.koul@intel.com> - 2017-08-01 05:30 +0200
  RE: [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger "Eoff, Ullysses A" <ullysses.a.eoff@intel.com> - 2017-08-01 06:40 +0200
  Re: [alsa-devel] [PATCH v2] ASoC: Intel: Reset hw_ptr on resume  trigger Keyon Jie <yang.jie@linux.intel.com> - 2017-08-01 07:00 +0200
    Re: [alsa-devel] [PATCH v2] ASoC: Intel: Reset hw_ptr on resume trigger Cheng-yi Chiang <cychiang@chromium.org> - 2017-08-03 15:50 +0200
      Re: [alsa-devel] [PATCH v2] ASoC: Intel: Reset hw_ptr on resume  trigger Keyon Jie <yang.jie@linux.intel.com> - 2017-08-07 08:40 +0200

csiph-web