blob: 120d9610054eae7ea880c50c3d259741c405dba0 [file] [log] [blame]
Oder Chiou1319b2f2014-04-28 19:59:10 +08001/*
2 * linux/sound/rt5645.h -- Platform data for RT5645
3 *
4 * Copyright 2013 Realtek Microelectronics
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef __LINUX_SND_RT5645_H
12#define __LINUX_SND_RT5645_H
13
14struct rt5645_platform_data {
15 /* IN2 can optionally be differential */
16 bool in2_diff;
17
18 bool dmic_en;
19 unsigned int dmic1_data_pin;
20 /* 0 = IN2N; 1 = GPIO5; 2 = GPIO11 */
21 unsigned int dmic2_data_pin;
22 /* 0 = IN2P; 1 = GPIO6; 2 = GPIO10; 3 = GPIO12 */
Oder Chiouf3fa1bb2014-09-19 19:15:45 +080023
24 unsigned int hp_det_gpio;
25 bool gpio_hp_det_active_high;
Bard Liaobb656ad2014-11-05 15:02:08 +080026
27 /* true if codec's jd function is used */
28 bool en_jd_func;
Bard Liao2d4e2d02014-11-18 16:50:18 +080029 unsigned int jd_mode;
Oder Chiou1319b2f2014-04-28 19:59:10 +080030};
31
32#endif