Linux Audio

Check our new training course

Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * linux/sound/rt5645.h -- Platform data for RT5645
 4 *
 5 * Copyright 2013 Realtek Microelectronics
 
 
 
 
 6 */
 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
15	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 */
19
20	unsigned int jd_mode;
21	/* Use level triggered irq */
22	bool level_trigger_irq;
23	/* Invert JD1_1 status polarity */
24	bool inv_jd1_1;
25
26	/* Value to asign to snd_soc_card.long_name */
27	const char *long_name;
28};
29
30#endif
v4.17
 
 1/*
 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	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 */
22
23	unsigned int jd_mode;
24	/* Use level triggered irq */
25	bool level_trigger_irq;
26	/* Invert JD1_1 status polarity */
27	bool inv_jd1_1;
28
29	/* Value to asign to snd_soc_card.long_name */
30	const char *long_name;
31};
32
33#endif