[alsa-devel] [PATCH RFC v1] ASoC: core: Support for limiting the volume

Mark Brown broonie at opensource.wolfsonmicro.com
Fri May 7 12:05:12 CEST 2010


On Fri, May 07, 2010 at 01:03:53PM +0300, Peter Ujfalusi wrote:

> I think:
> if (max <= mc->max) {
> 	mc->max = max;
> 	ret = 0;
> }

> Would be appropriate. We still report error, if the user asked out of limit 
> gain, but we report success, if the limit has not been actually changed.

Yes, reporting an error if the limit is higher than is possible is
sensible.


More information about the Alsa-devel mailing list