Christian Pellegrin | 1cad1de | 2008-11-15 08:58:16 +0100 | [diff] [blame] | 1 | /* |
| 2 | * uda134x.h -- UDA134x ALSA SoC Codec driver |
| 3 | * |
| 4 | * Copyright 2007 Dension Audio Systems Ltd. |
| 5 | * Author: Zoltan Devai |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #ifndef _UDA134X_H |
| 13 | #define _UDA134X_H |
| 14 | |
| 15 | #include <sound/l3.h> |
| 16 | |
| 17 | struct uda134x_platform_data { |
| 18 | struct l3_pins l3; |
| 19 | void (*power) (int); |
| 20 | int model; |
Vladimir Zapolskiy | cc3202f | 2010-06-24 17:38:50 +0400 | [diff] [blame] | 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; |
Christian Pellegrin | 1cad1de | 2008-11-15 08:58:16 +0100 | [diff] [blame] | 33 | #define UDA134X_UDA1340 1 |
| 34 | #define UDA134X_UDA1341 2 |
| 35 | #define UDA134X_UDA1344 3 |
Vladimir Zapolskiy | b28528a | 2010-04-26 14:56:57 +0400 | [diff] [blame] | 36 | #define UDA134X_UDA1345 4 |
Christian Pellegrin | 1cad1de | 2008-11-15 08:58:16 +0100 | [diff] [blame] | 37 | }; |
| 38 | |
| 39 | #endif /* _UDA134X_H */ |