Asish Bhattacharya | 656b7a2 | 2012-03-15 00:27:42 -0700 | [diff] [blame^] | 1 | /* Copyright (c) 2012, 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 __SPK_PM8XXX_H__ |
| 14 | #define __SPK_PM8XXX_H__ |
| 15 | |
| 16 | #define PM8XXX_SPK_DEV_NAME "pm8xxx-spk" |
| 17 | |
| 18 | /** |
| 19 | * struct pm8xxx_spk_pdata - SPK driver platform data |
| 20 | * @spk_add_enable: variable stating SPK secondary input adding capability |
| 21 | */ |
| 22 | struct pm8xxx_spk_platform_data { |
| 23 | bool spk_add_enable; |
| 24 | }; |
| 25 | |
| 26 | /* |
| 27 | * pm8xxx_spk_mute - mute/unmute speaker pamp |
| 28 | * |
| 29 | * @mute: bool value for mute |
| 30 | */ |
| 31 | int pm8xxx_spk_mute(bool mute); |
| 32 | |
| 33 | /* |
| 34 | * pm8xxx_spk_gain - Set Speaker gain |
| 35 | * |
| 36 | * @gain: Speaker gain |
| 37 | */ |
| 38 | int pm8xxx_spk_gain(u8 gain); |
| 39 | |
| 40 | /* |
| 41 | * pm8xxx_spk_enable - Enable/Disable Speaker |
| 42 | * |
| 43 | * @enable: bool enable/disable Speaker |
| 44 | */ |
| 45 | int pm8xxx_spk_enable(int enable); |
| 46 | |
| 47 | #endif /* __SPK_PM8XXX_H__ */ |