^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/wm9090.h -- Platform data for WM9090
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright 2009, 2010 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_WM9090_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define __LINUX_SND_WM9090_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct wm9090_platform_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) /* Line inputs 1 & 2 can optionally be differential */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) unsigned int lin1_diff:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) unsigned int lin2_diff:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /* AGC configuration. This is intended to protect the speaker
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) * against overdriving and will therefore depend on the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) * hardware setup with incorrect runtime configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) * potentially causing hardware damage.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) unsigned int agc_ena:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) u16 agc[3];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif