diff options
author | Ravindra Lokhande <rlokhande@nvidia.com> | 2012-01-18 19:45:35 +0530 |
---|---|---|
committer | Lokesh Pathak <lpathak@nvidia.com> | 2012-03-01 03:09:00 -0800 |
commit | 15dc3c059437332373ae90ca438f313c5a4d369b (patch) | |
tree | b00bd27ebb6e0dc442e3f400150cdc5ce182256f /arch/arm/mach-tegra/include/mach | |
parent | 1579d6096c14765e8f1dce2a0ac1a732db944d0b (diff) |
arm: tegra: cardhu: add support for max98095
add support for maxim 98095 audio codec
Change-Id: I112130341363e18986158cd94a981a60a80fb0d0
Reviewed-on: http://git-master/r/75956
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/85485
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/tegra_asoc_pdata.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/tegra_asoc_pdata.h b/arch/arm/mach-tegra/include/mach/tegra_asoc_pdata.h new file mode 100644 index 000000000000..34eb2f4fc372 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/tegra_asoc_pdata.h @@ -0,0 +1,36 @@ +/* + * arch/arm/mach-tegra/include/mach/tegra_asoc_pdata.h + * + * Copyright 2012 NVIDIA, Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#define HIFI_CODEC 0 +#define BASEBAND 1 +#define BT_SCO 2 +#define NUM_I2S_DEVICES 3 + +struct baseband_config { + int rate; + int channels; +}; + +struct tegra_asoc_platform_data { + int gpio_spkr_en; + int gpio_hp_det; + int gpio_hp_mute; + int gpio_int_mic_en; + int gpio_ext_mic_en; + unsigned int debounce_time_hp; + int audio_port_id[NUM_I2S_DEVICES]; + struct baseband_config baseband_param; +}; |