commit | e49b68339ebc7d2e67dc1ae16a4ac6a35fcfc9d5 | [log] [tgz] |
---|---|---|
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | Wed Oct 05 10:29:20 2011 +0300 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Wed Oct 05 17:10:09 2011 +0100 |
tree | 7eb6036750246c16945705d994587f2a1d665310 | |
parent | 0f9887d11e7c59ebae5e464f30a6dde788ed9011 [diff] |
ASoC: twl6040: Simplify custom get_volsw callback 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. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>