#include <linux/device.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/clk.h>
#include <linux/platform_device.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/jack.h>
#include <sound/soc.h>
#include <uapi/linux/input-event-codes.h>
#include <dt-bindings/sound/apq8016-lpass.h>
#include <dt-bindings/sound/qcom,q6afe.h>
#include "common.h"
#include "qdsp6/q6afe.h"
#define MI2S_COUNT …
struct apq8016_sbc_data { … };
#define MIC_CTRL_TER_WS_SLAVE_SEL …
#define MIC_CTRL_QUA_WS_SLAVE_SEL_10 …
#define MIC_CTRL_TLMM_SCLK_EN …
#define SPKR_CTL_PRI_WS_SLAVE_SEL_11 …
#define SPKR_CTL_TLMM_MCLK_EN …
#define SPKR_CTL_TLMM_SCLK_EN …
#define SPKR_CTL_TLMM_DATA1_EN …
#define SPKR_CTL_TLMM_WS_OUT_SEL_MASK …
#define SPKR_CTL_TLMM_WS_OUT_SEL_SEC …
#define SPKR_CTL_TLMM_WS_EN_SEL_MASK …
#define SPKR_CTL_TLMM_WS_EN_SEL_SEC …
#define DEFAULT_MCLK_RATE …
#define MI2S_BCLK_RATE …
static struct snd_soc_jack_pin apq8016_sbc_jack_pins[] = …;
static int apq8016_dai_init(struct snd_soc_pcm_runtime *rtd, int mi2s)
{ … }
static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static void apq8016_sbc_add_ops(struct snd_soc_card *card)
{ … }
static int qdsp6_dai_get_lpass_id(struct snd_soc_dai *cpu_dai)
{ … }
static int msm8916_qdsp6_dai_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int msm8916_qdsp6_startup(struct snd_pcm_substream *substream)
{ … }
static void msm8916_qdsp6_shutdown(struct snd_pcm_substream *substream)
{ … }
static const struct snd_soc_ops msm8916_qdsp6_be_ops = …;
static int msm8916_qdsp6_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
struct snd_pcm_hw_params *params)
{ … }
static void msm8916_qdsp6_add_ops(struct snd_soc_card *card)
{ … }
static const struct snd_kcontrol_new apq8016_sbc_snd_controls[] = …;
static const struct snd_soc_dapm_widget apq8016_sbc_dapm_widgets[] = …;
static int apq8016_sbc_platform_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id apq8016_sbc_device_id[] __maybe_unused = …;
MODULE_DEVICE_TABLE(of, apq8016_sbc_device_id);
static struct platform_driver apq8016_sbc_platform_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;