Re: [PATCH v7] ASoC: omap-mcbsp: Add PM QoS support for McBSP to prevent glitches

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

 



On Tue, Jan 17, 2017 at 4:34 AM, Peter Ujfalusi <peter.ujfalusi@xxxxxx> wrote:
> On 01/16/2017 09:30 PM, Matt Ranostay wrote:
>> Yep I was testing with that enabled. Not sure why I'm not getting it
>> all... maybe different side effects like sample rate of the audio
>> being played?
>>
>> Peter, is there chance that there is race condition is possible
>> between pm_qos_remove_request and omap_mcbsp_dai_shutdown?
>
> Not with my knowledge.
> However one thing might happen which is not handled:
> application opens up the audio card, does some hw_param setup, then it
> decides to close the card. In this case the pm_qos is not placed, but in
> dai_shutdown we try to remove it -> WARN().
>
> I think we need to check either if the pm_qos is active and only then
> bother with the removal/updated or we can check if the
> mcbsp->latency[stream1] is not 0, which should be the same as checking
> for the pm_qos active

Ok makes sense. Weird I'm not seeing it but I wanted to be sure adding
checks wasn't just hiding a issue.
Will submit v8...  and hopefully that is the final one! *fingers crossed*

>
> --
> Péter
_______________________________________________
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