[alsa-devel] [RFC 04/12] ASoC: twl6040: Simplify custom get_volsw callback

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Oct 4 17:31:28 CEST 2011


On Tue, Oct 04, 2011 at 02:39:41PM +0300, Peter Ujfalusi wrote:
> The custom get_volsw does not need to call any core get_volsw calls,
> since we are returning the shadow values for the gains.
> Return -EINVAL in the unlikely event, if the function has been called
> for unhandled control. This way we can remove one check in the code.

This, and patch 5 also have an issue (they depend on patch 3 anyway).


More information about the Alsa-devel mailing list