blob: 39a77c7cea364dfc0bc43084823d2d1b8ee5666b [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Oder Chiou1319b2f2014-04-28 19:59:10 +08002/*
3 * linux/sound/rt5645.h -- Platform data for RT5645
4 *
5 * Copyright 2013 Realtek Microelectronics
Oder Chiou1319b2f2014-04-28 19:59:10 +08006 */
7
8#ifndef __LINUX_SND_RT5645_H
9#define __LINUX_SND_RT5645_H
10
11struct rt5645_platform_data {
12 /* IN2 can optionally be differential */
13 bool in2_diff;
14
Oder Chiou1319b2f2014-04-28 19:59:10 +080015 unsigned int dmic1_data_pin;
16 /* 0 = IN2N; 1 = GPIO5; 2 = GPIO11 */
17 unsigned int dmic2_data_pin;
18 /* 0 = IN2P; 1 = GPIO6; 2 = GPIO10; 3 = GPIO12 */
Oder Chiouf3fa1bb2014-09-19 19:15:45 +080019
Bard Liao2d4e2d02014-11-18 16:50:18 +080020 unsigned int jd_mode;
Bard Liao89575022017-06-28 14:49:37 +020021 /* Use level triggered irq */
22 bool level_trigger_irq;
Bard Liaoaea086d2017-06-28 14:49:38 +020023 /* Invert JD1_1 status polarity */
24 bool inv_jd1_1;
Hans de Goedeaa9c3872017-12-11 22:26:40 +010025
26 /* Value to asign to snd_soc_card.long_name */
27 const char *long_name;
Oder Chiou1319b2f2014-04-28 19:59:10 +080028};
29
30#endif