blob: 1155d2f3cf24424cb330e4a73d9036a19ff578db [file] [log] [blame]
Asish Bhattacharya656b7a22012-03-15 00:27:42 -07001/* 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 */
22struct 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 */
31int pm8xxx_spk_mute(bool mute);
32
33/*
34 * pm8xxx_spk_gain - Set Speaker gain
35 *
36 * @gain: Speaker gain
37 */
38int pm8xxx_spk_gain(u8 gain);
39
40/*
41 * pm8xxx_spk_enable - Enable/Disable Speaker
42 *
43 * @enable: bool enable/disable Speaker
44 */
45int pm8xxx_spk_enable(int enable);
46
47#endif /* __SPK_PM8XXX_H__ */