Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * linux/sound/rt5660.h -- Platform data for RT5660
0004  *
0005  * Copyright 2016 Realtek Semiconductor Corp.
0006  * Author: Oder Chiou <oder_chiou@realtek.com>
0007  */
0008 
0009 #ifndef __LINUX_SND_RT5660_H
0010 #define __LINUX_SND_RT5660_H
0011 
0012 enum rt5660_dmic1_data_pin {
0013     RT5660_DMIC1_NULL,
0014     RT5660_DMIC1_DATA_GPIO2,
0015     RT5660_DMIC1_DATA_IN1P,
0016 };
0017 
0018 struct rt5660_platform_data {
0019     /* IN1 & IN3 can optionally be differential */
0020     bool in1_diff;
0021     bool in3_diff;
0022     bool use_ldo2;
0023     bool poweroff_codec_in_suspend;
0024 
0025     enum rt5660_dmic1_data_pin dmic1_data_pin;
0026 };
0027 
0028 #endif