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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eoff, thank you for the patch and providing the context.
ChromiumOS now uses kernel 4.4 for BYT and I found that kernel 4.4 does not
have this patch.
We thought this should be useful in upstream.
Thanks!

On Tue, Aug 1, 2017 at 12:32 PM, Eoff, Ullysses A <ullysses.a.eoff@xxxxxxxxx
> wrote:

> 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@xxxxxxxxxxxx>; Jie, Yang <
> yang.jie@xxxxxxxxx>
> > Cc: linux-kernel@xxxxxxxxxxxxxxx; Liam Girdwood <lgirdwood@xxxxxxxxx>;
> Mark Brown <broonie@xxxxxxxxxx>; Jaroslav Kysela
> > <perex@xxxxxxxx>; Takashi Iwai <tiwai@xxxxxxxx>; Eoff, Ullysses A <
> ullysses.a.eoff@xxxxxxxxx>; alsa-devel@xxxxxxxxxxxxxxxx
> > 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@xxxxxxxxx>
> > >
> > > 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@xxxxxxxxxxxx>
> > > Signed-off-by: U. Artie Eoff <ullysses.a.eoff@xxxxxxxxx>
> > > Signed-off-by: Cheng-Yi Chiang <cychiang@xxxxxxxxxxxx>
> > > ---
> > >  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
>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux