blob: f218c742f08ebddda4a900010001b3844e13182d [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
Oder Chiou1319b2f2014-04-28 19:59:10 +080018 unsigned int dmic1_data_pin;
19 /* 0 = IN2N; 1 = GPIO5; 2 = GPIO11 */
20 unsigned int dmic2_data_pin;
21 /* 0 = IN2P; 1 = GPIO6; 2 = GPIO10; 3 = GPIO12 */
Oder Chiouf3fa1bb2014-09-19 19:15:45 +080022
Bard Liao2d4e2d02014-11-18 16:50:18 +080023 unsigned int jd_mode;
Bard Liao89575022017-06-28 14:49:37 +020024 /* Use level triggered irq */
25 bool level_trigger_irq;
Bard Liaoaea086d2017-06-28 14:49:38 +020026 /* Invert JD1_1 status polarity */
27 bool inv_jd1_1;
Hans de Goedeaa9c3872017-12-11 22:26:40 +010028
29 /* Value to asign to snd_soc_card.long_name */
30 const char *long_name;
Oder Chiou1319b2f2014-04-28 19:59:10 +080031};
32
33#endif