From: Peter Ujfalusi Date: Wed, 5 Oct 2011 07:29:22 +0000 (+0300) Subject: ASoC: core: Change SOC_SINGLE/DOUBLE_VALUE representation X-Git-Tag: v3.2-rc1~127^2~1^2~136 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30d86ba47f79d566fffe9ba577caf247d06a3796;p=pandora-kernel.git ASoC: core: Change SOC_SINGLE/DOUBLE_VALUE representation SOC_SINGLE/DOUBLE_VALUE is used for mixer controls, where the bits are within one register. Assign .rreg to be the same as .reg for these types. With this change we can tell if the mixer in question: is mono: mc->reg == mc->rreg && mc->shift == mc->rshift is stereo, within single register: mc->reg == mc->rreg && mc->shift != mc->rshift is stereo, in two registers: mc->reg != mc->rreg The patch provide a small inline function to query, if the mixer is stereo, or mono. Signed-off-by: Peter Ujfalusi Signed-off-by: Mark Brown --- Reading git-diff-tree failed