diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-10-05 10:29:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-05 17:10:09 +0100 |
commit | 30d86ba47f79d566fffe9ba577caf247d06a3796 (patch) | |
tree | 07dbc0f940832ca806f81f8adbb91b0e80273dab /drivers/pcmcia/pxa2xx_cm_x270.c | |
parent | 08a1ed76f5cf94bef07cb370b079760553a87b4b (diff) | |
download | blackbird-op-linux-30d86ba47f79d566fffe9ba577caf247d06a3796.tar.gz blackbird-op-linux-30d86ba47f79d566fffe9ba577caf247d06a3796.zip |
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 <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/pcmcia/pxa2xx_cm_x270.c')
0 files changed, 0 insertions, 0 deletions