diff options
author | Vladimir Zapolskiy <vzapolskiy@gmail.com> | 2010-06-24 09:38:50 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-06-25 07:29:01 -0400 |
commit | cc3202f5da3c81a99c5f3a605df527da7a77eed3 (patch) | |
tree | 6a403bacab904beea885f14f4c1ce8864316f579 /include/sound | |
parent | 5898dd9ebd158d9fd3c197fc640d0c104bef39a5 (diff) |
ASoC: uda134x: replace a macro with a value in platform struct.
This change wipes out a hardcoded macro, which enables codec bias
level control. Now is_powered_on_standby value shall be used instead.
Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/uda134x.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sound/uda134x.h b/include/sound/uda134x.h index 509efb050176..e475659bd3be 100644 --- a/include/sound/uda134x.h +++ b/include/sound/uda134x.h | |||
@@ -18,6 +18,18 @@ struct uda134x_platform_data { | |||
18 | struct l3_pins l3; | 18 | struct l3_pins l3; |
19 | void (*power) (int); | 19 | void (*power) (int); |
20 | int model; | 20 | int model; |
21 | /* | ||
22 | ALSA SOC usually puts the device in standby mode when it's not used | ||
23 | for sometime. If you unset is_powered_on_standby the driver will | ||
24 | turn off the ADC/DAC when this callback is invoked and turn it back | ||
25 | on when needed. Unfortunately this will result in a very light bump | ||
26 | (it can be audible only with good earphones). If this bothers you | ||
27 | set is_powered_on_standby, you will have slightly higher power | ||
28 | consumption. Please note that sending the L3 command for ADC is | ||
29 | enough to make the bump, so it doesn't make difference if you | ||
30 | completely take off power from the codec. | ||
31 | */ | ||
32 | int is_powered_on_standby; | ||
21 | #define UDA134X_UDA1340 1 | 33 | #define UDA134X_UDA1340 1 |
22 | #define UDA134X_UDA1341 2 | 34 | #define UDA134X_UDA1341 2 |
23 | #define UDA134X_UDA1344 3 | 35 | #define UDA134X_UDA1344 3 |