2008-11-15 08:58:16 +01:00
|
|
|
/*
|
|
|
|
* uda134x.h -- UDA134x ALSA SoC Codec driver
|
|
|
|
*
|
|
|
|
* Copyright 2007 Dension Audio Systems Ltd.
|
|
|
|
* Author: Zoltan Devai
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _UDA134X_H
|
|
|
|
#define _UDA134X_H
|
|
|
|
|
|
|
|
#include <sound/l3.h>
|
|
|
|
|
|
|
|
struct uda134x_platform_data {
|
|
|
|
struct l3_pins l3;
|
|
|
|
void (*power) (int);
|
|
|
|
int model;
|
2010-06-24 15:38:50 +02:00
|
|
|
/*
|
|
|
|
ALSA SOC usually puts the device in standby mode when it's not used
|
|
|
|
for sometime. If you unset is_powered_on_standby the driver will
|
|
|
|
turn off the ADC/DAC when this callback is invoked and turn it back
|
|
|
|
on when needed. Unfortunately this will result in a very light bump
|
|
|
|
(it can be audible only with good earphones). If this bothers you
|
|
|
|
set is_powered_on_standby, you will have slightly higher power
|
|
|
|
consumption. Please note that sending the L3 command for ADC is
|
|
|
|
enough to make the bump, so it doesn't make difference if you
|
|
|
|
completely take off power from the codec.
|
|
|
|
*/
|
|
|
|
int is_powered_on_standby;
|
2008-11-15 08:58:16 +01:00
|
|
|
#define UDA134X_UDA1340 1
|
|
|
|
#define UDA134X_UDA1341 2
|
|
|
|
#define UDA134X_UDA1344 3
|
2010-04-26 12:56:57 +02:00
|
|
|
#define UDA134X_UDA1345 4
|
2008-11-15 08:58:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _UDA134X_H */
|