162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * linux/sound/wm9090.h -- Platform data for WM9090 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright 2009, 2010 Wolfson Microelectronics. PLC. 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef __LINUX_SND_WM9090_H 962306a36Sopenharmony_ci#define __LINUX_SND_WM9090_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_cistruct wm9090_platform_data { 1262306a36Sopenharmony_ci /* Line inputs 1 & 2 can optionally be differential */ 1362306a36Sopenharmony_ci unsigned int lin1_diff:1; 1462306a36Sopenharmony_ci unsigned int lin2_diff:1; 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci /* AGC configuration. This is intended to protect the speaker 1762306a36Sopenharmony_ci * against overdriving and will therefore depend on the 1862306a36Sopenharmony_ci * hardware setup with incorrect runtime configuration 1962306a36Sopenharmony_ci * potentially causing hardware damage. 2062306a36Sopenharmony_ci */ 2162306a36Sopenharmony_ci unsigned int agc_ena:1; 2262306a36Sopenharmony_ci u16 agc[3]; 2362306a36Sopenharmony_ci}; 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif 26