diff options
author | Scott Peterson <speterson@nvidia.com> | 2013-03-03 09:38:06 -0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2013-03-11 19:53:24 -0700 |
commit | aa711db4fc24b23fe333b622b92bc62d441fd8f8 (patch) | |
tree | 01dff3492874f01cebf416f5eabdf621bd0c57eb /include | |
parent | ec5d4ae2f69dbc4b540cba24de0fc554b0dff0c6 (diff) |
ARM: misc: Update tfa9887 device driver
Update volume algorithm to use a single preset since
the tfa9887 device gltiches audio whenver you update
the preset.
Matched volume curve with the curve used by Android
Updated EQ settings.
Bug 1239246
Change-Id: Iae563a96990520f845ad3f580e02d163e4a3ff0e
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/205802
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tfa9887.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/tfa9887.h b/include/linux/tfa9887.h index 50106bb342f2..baa00ce20079 100644 --- a/include/linux/tfa9887.h +++ b/include/linux/tfa9887.h @@ -8,10 +8,11 @@ #define MAX_DB_INDEX 15 #define PRESET_DEFAULT 4 struct tfa9887_priv { - struct regmap *regmap; - int irq; - bool deviceInit; + struct regmap *regmap; + int irq; + bool deviceInit; struct mutex lock; + char* speaker_data; }; typedef enum Tfa9887_Mute { @@ -56,7 +57,7 @@ int Tfa9887_SetEq(void); int SetEq(struct tfa9887_priv *tfa9887,struct tfa9887_priv *tfa9887_byte); -int Tfa9887_SetPreset(unsigned int preset); +int Tfa9887_SetVolume(unsigned int index); int SetPreset(struct tfa9887_priv *tfa9887,struct tfa9887_priv *tfa9887_byte); |