blob: e475659bd3befa35c377bbbe150f52f52d8d0e99 [file] [log] [blame]
Christian Pellegrin1cad1de2008-11-15 08:58:16 +01001/*
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
17struct uda134x_platform_data {
18 struct l3_pins l3;
19 void (*power) (int);
20 int model;
Vladimir Zapolskiycc3202f2010-06-24 17:38:50 +040021 /*
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 Pellegrin1cad1de2008-11-15 08:58:16 +010033#define UDA134X_UDA1340 1
34#define UDA134X_UDA1341 2
35#define UDA134X_UDA1344 3
Vladimir Zapolskiyb28528a2010-04-26 14:56:57 +040036#define UDA134X_UDA1345 4
Christian Pellegrin1cad1de2008-11-15 08:58:16 +010037};
38
39#endif /* _UDA134X_H */