linux/sound/soc/qcom/sc7280.c

// SPDX-License-Identifier: GPL-2.0-only
//
// Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
//
// ALSA SoC Machine driver for sc7280

#include <dt-bindings/sound/qcom,lpass.h>
#include <dt-bindings/sound/qcom,q6afe.h>
#include <linux/input.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <sound/core.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/rt5682s.h>
#include <linux/soundwire/sdw.h>
#include <sound/pcm_params.h>

#include "../codecs/rt5682.h"
#include "../codecs/rt5682s.h"
#include "common.h"
#include "lpass.h"
#include "qdsp6/q6afe.h"
#include "sdw.h"

#define DEFAULT_MCLK_RATE
#define RT5682_PLL_FREQ
#define MI2S_BCLK_RATE

struct sc7280_snd_data {};

static void sc7280_jack_free(struct snd_jack *jack)
{}

static struct snd_soc_jack_pin sc7280_jack_pins[] =;

static int sc7280_headset_init(struct snd_soc_pcm_runtime *rtd)
{}

static int sc7280_hdmi_init(struct snd_soc_pcm_runtime *rtd)
{}

static int sc7280_rt5682_init(struct snd_soc_pcm_runtime *rtd)
{}

static int sc7280_init(struct snd_soc_pcm_runtime *rtd)
{}

static int sc7280_snd_hw_params(struct snd_pcm_substream *substream,
				struct snd_pcm_hw_params *params)
{}

static int sc7280_snd_swr_prepare(struct snd_pcm_substream *substream)
{}

static int sc7280_snd_prepare(struct snd_pcm_substream *substream)
{}

static int sc7280_snd_hw_free(struct snd_pcm_substream *substream)
{}

static void sc7280_snd_shutdown(struct snd_pcm_substream *substream)
{}

static int sc7280_snd_startup(struct snd_pcm_substream *substream)
{}

static const struct snd_soc_ops sc7280_ops =;

static const struct snd_soc_dapm_widget sc7280_snd_widgets[] =;

static const struct snd_kcontrol_new sc7280_snd_controls[] =;

static int sc7280_snd_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
					 struct snd_pcm_hw_params *params)
{}

static int sc7280_snd_platform_probe(struct platform_device *pdev)
{}

static const struct of_device_id sc7280_snd_device_id[]  =;
MODULE_DEVICE_TABLE(of, sc7280_snd_device_id);

static struct platform_driver sc7280_snd_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();