Re: [PATCH V2] ASoC: soc-pcm: BE dai needs prepare when pause release after resume

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

 



Hi Mark,

>-----Original Message-----
>From: Mark Brown [mailto:broonie@xxxxxxxxxx]
>Sent: Sunday, May 12, 2019 4:08 PM
>To: Yang, Libin <libin.yang@xxxxxxxxx>
>Cc: Takashi Iwai <tiwai@xxxxxxx>; Ranjani Sridharan
><ranjani.sridharan@xxxxxxxxxxxxxxx>; alsa-devel@xxxxxxxxxxxxxxxx; Sridharan,
>Ranjani <ranjani.sridharan@xxxxxxxxx>; pierre-louis.bossart@xxxxxxxxxxxxxxx;
>Wang, Rander <rander.wang@xxxxxxxxx>
>Subject: Re:  [PATCH V2] ASoC: soc-pcm: BE dai needs prepare
>when pause release after resume
>
>On Thu, May 09, 2019 at 02:30:39AM +0000, Yang, Libin wrote:
>
>> I think this may be a ASoC FE-BE defect.
>> In this case, ASoC will call FE dai prepare(), but it will not call BE
>> dai prepare() because of the judgement. This is why I made the patch.
>
>If it's calling only the front end but not the back end that definitely sounds like
>DPCM is causing trouble again.

Yes. This is caused by dpcm_be_dai_prepare(). dpcm_be_dai_prepare()
should call BE dai prepare() in the case of pause release after S3.
But as the be->dpcm[stream].state is SND_SOC_DPCM_STATE_PAUSED,
it will not call BE dai prepare.

Regards,
Libin

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



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

  Powered by Linux