#include <dt-bindings/sound/sc7180-lpass.h>
#include <dt-bindings/sound/qcom,q6afe.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <sound/core.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <uapi/linux/input-event-codes.h>
#include "../codecs/rt5682.h"
#include "../codecs/rt5682s.h"
#include "common.h"
#include "qdsp6/q6afe.h"
#define DEFAULT_MCLK_RATE …
#define MI2S_BCLK_RATE …
#define RT5682_PLL1_FREQ …
#define DRIVER_NAME …
struct sc7180_snd_data { … };
static void sc7180_jack_free(struct snd_jack *jack)
{ … }
static struct snd_soc_jack_pin sc7180_jack_pins[] = …;
static int sc7180_headset_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int sc7180_hdmi_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int sc7180_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int sc7180_qdsp_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int sc7180_startup_realtek_codec(struct snd_soc_pcm_runtime *rtd)
{ … }
static int sc7180_snd_startup(struct snd_pcm_substream *substream)
{ … }
static int sc7180_qdsp_snd_startup(struct snd_pcm_substream *substream)
{ … }
static int dmic_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int dmic_set(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static void sc7180_snd_shutdown(struct snd_pcm_substream *substream)
{ … }
static void sc7180_qdsp_snd_shutdown(struct snd_pcm_substream *substream)
{ … }
static int sc7180_adau7002_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int sc7180_adau7002_snd_startup(struct snd_pcm_substream *substream)
{ … }
static int sc7180_qdsp_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops sc7180_ops = …;
static const struct snd_soc_ops sc7180_qdsp_ops = …;
static const struct snd_soc_ops sc7180_adau7002_ops = …;
static const struct snd_soc_dapm_widget sc7180_snd_widgets[] = …;
static const struct snd_kcontrol_new sc7180_snd_controls[] = …;
static const struct snd_soc_dapm_widget sc7180_adau7002_snd_widgets[] = …;
static const char * const dmic_mux_text[] = …;
static SOC_ENUM_SINGLE_DECL(sc7180_dmic_enum,
SND_SOC_NOPM, 0, dmic_mux_text);
static const struct snd_kcontrol_new sc7180_dmic_mux_control = …;
static const struct snd_soc_dapm_widget sc7180_snd_dual_mic_widgets[] = …;
static const struct snd_kcontrol_new sc7180_snd_dual_mic_controls[] = …;
static const struct snd_soc_dapm_route sc7180_snd_dual_mic_audio_route[] = …;
static int sc7180_snd_platform_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id sc7180_snd_device_id[] = …;
MODULE_DEVICE_TABLE(of, sc7180_snd_device_id);
static struct platform_driver sc7180_snd_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;