On 7/8/15 4:31 PM, Takashi Iwai wrote:
On Wed, 08 Jul 2015 12:10:32 +0200, Pierre-Louis Bossart wrote:
Set of patches to fix issues with hw_ptr fuzziness [1] and increased buffering w/ DSPs
- disable rewinds to allow for new HDaudio SPIB DMA functionality (fetch up to
the application pointer, rewinds not supported) 2. report max in-flight bytes to avoid problems with stale data (late wake-ups, rewinds)
[1] http://mailman.alsa-project.org/pipermail/alsa-devel/2015-June/093646.html
TODO:
- fixes and alsa-lib updates (compile-tested only for now)
- get feedback
- if supported, set DMA buffering based on negotiation between driver and app (capabilities vs.
latency needs)
Thanks for heading up. I wanted to start working on this by myself, too, but it was pending due to the horribly hot summer days here :)
Thanks for the quick review Takashi, much appreciated. The work was done before the heat wave on my side...
The new flag and the callback are fairly similar as what I had in my mind. They look simple enough (although details need more discussion and evaulation).
For the DMA burst thing, I'm not quite sure whether it's the best form, including its naming. But I'd like to be neutral about this, and hopefully others will give opinion for this or give alternatives.
Yes, this is really a first draft to try and solve the problems mentioned multiple times by Arun and Alexander and help use the latest and greatest hardware. If others have comments we are all ears.