[alsa-devel] [RFC PATCH (alsa-lib)] pcm: Modify check condition in snd_pcm_sw_params_set_avail_min

Mark Brown broonie at kernel.org
Fri Sep 4 17:15:29 CEST 2015


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150904/0e7809c0/attachment.sig>


More information about the Alsa-devel mailing list