From: Lars-Peter Clausen Date: Mon, 29 Jul 2013 15:14:01 +0000 (+0200) Subject: ASoC: dapm: Make widget power register settings more flexible X-Git-Tag: v3.12-rc1~150^2~9^2~45^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de9ba98b6d2629f53fd271a973176c2fa9736d9c;p=pandora-kernel.git ASoC: dapm: Make widget power register settings more flexible Currently the DAPM code is limited to only setting or clearing a single bit in a register to power a widget up or down. This patch extends the DAPM code to be more flexible in that regard and allow widgets to use arbitrary values to be used to put a widget in either on or off state. Since the snd_soc_dapm_widget struct already contains a on_val and off_val field no additional fields need to be added and in fact the invert field can even be removed. Also the generated code is slightly smaller. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed