android_kernel_xiaomi_sm8350/asoc/codecs/aqt1000/pdata.h
Sudheer Papothi 3e42fefa2f ASoC: AQT1000: Add driver for AQT1000 codec
AQT1000 codec is a hifi headset that supports audio
playback and recording on headset. It also supports
playback of fractional sampling rates. Audio playback
and recording is transferred through I2S interface.
Add driver for AQT1000 codec

Change-Id: Iba163e9203d67216cdbf87727b06801356a001e3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-07 04:09:53 +05:30

41 lines
1.0 KiB
C

/*
* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _AQT1000_PDATA_H_
#define _AQT1000_PDATA_H_
#include <linux/kernel.h>
#include <linux/device.h>
#include "../msm-cdc-supply.h"
struct aqt1000_micbias_setting {
u8 ldoh_v;
u32 cfilt1_mv;
u32 micb1_mv;
u8 bias1_cfilt_sel;
};
struct aqt1000_pdata {
unsigned int irq_gpio;
unsigned int irq_flags;
struct cdc_regulator *regulator;
int num_supplies;
struct aqt1000_micbias_setting micbias;
struct device_node *aqt_rst_np;
u32 mclk_rate;
u32 ext_clk_rate;
u32 ext_1p8v_supply;
};
#endif /* _AQT1000_PDATA_H_ */