OSDN Git Service

ASoC: ab8500-codec: Add missing ad_to_slot definitions
authorFabio Baltieri <fabio.baltieri@linaro.org>
Wed, 8 May 2013 07:14:16 +0000 (09:14 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 12 May 2013 18:06:10 +0000 (22:06 +0400)
commitb9600b4b1cf8b8f06b6a5d025eff160f41950485
tree949479529d7892af03cbf4a3ef2d65c129a3e499
parent2e8e3880a15efacd21d68f77546ccd09f5e99521
ASoC: ab8500-codec: Add missing ad_to_slot definitions

According to the AB8500 user manual AD to Slot register multiplexer
accept values from 0 to 15 where:

   0 to  7 corresponds to AD_OUTx slots
   8 to 11 corresponds to zero output
  12 to 15 sets the output in tristate mode

Update enum_ad_to_slot_map array to reflect this definition.

This also allows alsamixer to properly display the default
configuration, as all controls are set to tristate (=12) at reset.

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ab8500-codec.c