linux/sound/soc/qcom/sdm845.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 */

#include <dt-bindings/sound/qcom,q6afe.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/jack.h>
#include <sound/soc.h>
#include <linux/soundwire/sdw.h>
#include <uapi/linux/input-event-codes.h>
#include "common.h"
#include "qdsp6/q6afe.h"
#include "../codecs/rt5663.h"

#define DRIVER_NAME
#define DEFAULT_SAMPLE_RATE_48K
#define DEFAULT_MCLK_RATE
#define TDM_BCLK_RATE
#define MI2S_BCLK_RATE
#define LEFT_SPK_TDM_TX_MASK
#define RIGHT_SPK_TDM_TX_MASK
#define SPK_TDM_RX_MASK
#define NUM_TDM_SLOTS
#define SLIM_MAX_TX_PORTS
#define SLIM_MAX_RX_PORTS
#define WCD934X_DEFAULT_MCLK_RATE

struct sdm845_snd_data {};

static struct snd_soc_jack_pin sdm845_jack_pins[] =;

static unsigned int tdm_slot_offset[8] =;

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

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

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

static void sdm845_jack_free(struct snd_jack *jack)
{}

static int sdm845_dai_init(struct snd_soc_pcm_runtime *rtd)
{}


static int sdm845_snd_startup(struct snd_pcm_substream *substream)
{}

static void  sdm845_snd_shutdown(struct snd_pcm_substream *substream)
{}

static int sdm845_snd_prepare(struct snd_pcm_substream *substream)
{}

static int sdm845_snd_hw_free(struct snd_pcm_substream *substream)
{}

static const struct snd_soc_ops sdm845_be_ops =;

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

static const struct snd_soc_dapm_widget sdm845_snd_widgets[] =;

static const struct snd_kcontrol_new sdm845_snd_controls[] =;

static void sdm845_add_ops(struct snd_soc_card *card)
{}

static int sdm845_snd_platform_probe(struct platform_device *pdev)
{}

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

static struct platform_driver sdm845_snd_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();