xref: /linux/sound/soc/codecs/wm_hubs.h (revision fec6dd833e733b5d9588a1f1e4d81118b79b5774)
1a2342ae3SMark Brown /*
2a2342ae3SMark Brown  * wm_hubs.h  --  WM899x common code
3a2342ae3SMark Brown  *
4a2342ae3SMark Brown  * Copyright 2009 Wolfson Microelectronics plc
5a2342ae3SMark Brown  *
6a2342ae3SMark Brown  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7a2342ae3SMark Brown  *
8a2342ae3SMark Brown  *
9a2342ae3SMark Brown  * This program is free software; you can redistribute it and/or modify
10a2342ae3SMark Brown  * it under the terms of the GNU General Public License version 2 as
11a2342ae3SMark Brown  * published by the Free Software Foundation.
12a2342ae3SMark Brown  */
13a2342ae3SMark Brown 
14a2342ae3SMark Brown #ifndef _WM_HUBS_H
15a2342ae3SMark Brown #define _WM_HUBS_H
16a2342ae3SMark Brown 
17a2342ae3SMark Brown struct snd_soc_codec;
18a2342ae3SMark Brown 
19a2342ae3SMark Brown extern const unsigned int wm_hubs_spkmix_tlv[];
20a2342ae3SMark Brown 
213ed7074cSMark Brown /* This *must* be the first element of the codec->private_data struct */
223ed7074cSMark Brown struct wm_hubs_data {
233ed7074cSMark Brown 	int dcs_codes;
248437f700SMark Brown 	int dcs_readback_mode;
253ed7074cSMark Brown 	int hp_startup_mode;
26*fec6dd83SMark Brown 
27*fec6dd83SMark Brown 	bool class_w;
28*fec6dd83SMark Brown 	u16 class_w_dcs;
293ed7074cSMark Brown };
303ed7074cSMark Brown 
31a2342ae3SMark Brown extern int wm_hubs_add_analogue_controls(struct snd_soc_codec *);
32a2342ae3SMark Brown extern int wm_hubs_add_analogue_routes(struct snd_soc_codec *, int, int);
33aa983d9dSMark Brown extern int wm_hubs_handle_analogue_pdata(struct snd_soc_codec *,
34aa983d9dSMark Brown 					 int lineout1_diff, int lineout2_diff,
35aa983d9dSMark Brown 					 int lineout1fb, int lineout2fb,
36aa983d9dSMark Brown 					 int jd_scthr, int jd_thr,
37aa983d9dSMark Brown 					 int micbias1_lvl, int micbias2_lvl);
38a2342ae3SMark Brown 
39a2342ae3SMark Brown #endif
40