On Fri, Sep 04, 2015 at 10:49:35AM +0800, Koro Chen wrote:
On Thu, 2015-09-03 at 10:38 +0100, Mark Brown wrote:
This does sound like something that should be handled in the kernel - one thing we should be doing is providing a uniform interface to userspace.
Hmm, I thought those param settings are used to handle different HW behavior like my case, but maybe I am wrong. It is more important to let a single driver to be used under many different cases. I will find solution in my driver, thank you!
Yes, the params do generally handle things that differ between systems (mostly things like buffer sizes, formats and so on) but there's a few things that are pretty much required, one of them being delivering the period elapsed notifiations when a period has actually elapsed rather than before then. Setting a very small period size will tend to mask problems but it's not great.