Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * linux/sound/wm8993.h -- Platform data for WM8993
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright 2009 Wolfson Microelectronics. PLC.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef __LINUX_SND_WM8993_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define __LINUX_SND_WM8993_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) /* Note that EQ1 only contains the enable/disable bit so will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)    ignored but is included for simplicity.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct wm8993_retune_mobile_setting {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	const char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	unsigned int rate;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	u16 config[24];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct wm8993_platform_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	struct wm8993_retune_mobile_setting *retune_configs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	int num_retune_configs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	/* LINEOUT can be differential or single ended */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	unsigned int lineout1_diff:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	unsigned int lineout2_diff:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	/* Common mode feedback */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	unsigned int lineout1fb:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	unsigned int lineout2fb:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	/* Delay to add for microphones to stabalise after power up */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	int micbias1_delay;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	int micbias2_delay;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	/* Microphone biases: 0=0.9*AVDD1 1=0.65*AVVD1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	unsigned int micbias1_lvl:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	unsigned int micbias2_lvl:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	/* Jack detect threshold levels, see datasheet for values */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	unsigned int jd_scthr:2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	unsigned int jd_thr:2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #endif