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; 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; 33 #define UDA134X_UDA1340 1 34 #define UDA134X_UDA1341 2 35 #define UDA134X_UDA1344 3 36 #define UDA134X_UDA1345 4 37 }; 38 39 #endif /* _UDA134X_H */ 40