Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | #ifndef __MACH_QDSP6V2_SNDDEV_ICODEC_H |
| 14 | #define __MACH_QDSP6V2_SNDDEV_ICODEC_H |
| 15 | #include <linux/mfd/msm-adie-codec.h> |
| 16 | #include <mach/qdsp5v2/audio_def.h> |
| 17 | #include <mach/pmic.h> |
| 18 | |
| 19 | struct snddev_icodec_data { |
| 20 | u32 capability; /* RX or TX */ |
| 21 | const char *name; |
| 22 | u32 copp_id; /* audpp routing */ |
| 23 | /* Adie profile */ |
| 24 | struct adie_codec_dev_profile *profile; |
| 25 | /* Afe setting */ |
| 26 | u8 channel_mode; |
| 27 | u32 default_sample_rate; |
| 28 | int (*pamp_on) (void); |
| 29 | void (*pamp_off) (void); |
| 30 | int (*voltage_on) (void); |
| 31 | void (*voltage_off) (void); |
| 32 | u32 dev_vol_type; |
| 33 | }; |
| 34 | |
| 35 | #endif |