linux/sound/soc/samsung/tm2_wm5110.c

// SPDX-License-Identifier: GPL-2.0+
//
// Copyright (C) 2015 - 2016 Samsung Electronics Co., Ltd.
//
// Authors: Inha Song <[email protected]>
//          Sylwester Nawrocki <[email protected]>

#include <linux/clk.h>
#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/of.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>

#include "i2s.h"
#include "../codecs/wm5110.h"

/*
 * The source clock is XCLKOUT with its mux set to the external fixed rate
 * oscillator (XXTI).
 */
#define MCLK_RATE

#define TM2_DAI_AIF1
#define TM2_DAI_AIF2

struct tm2_machine_priv {};

static int tm2_start_sysclk(struct snd_soc_card *card)
{}

static int tm2_stop_sysclk(struct snd_soc_card *card)
{}

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

static const struct snd_soc_ops tm2_aif1_ops =;

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

static int tm2_aif2_hw_free(struct snd_pcm_substream *substream)
{}

static const struct snd_soc_ops tm2_aif2_ops =;

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

static const struct snd_soc_ops tm2_hdmi_ops =;

static int tm2_mic_bias(struct snd_soc_dapm_widget *w,
				struct snd_kcontrol *kcontrol, int event)
{}

static int tm2_set_bias_level(struct snd_soc_card *card,
				struct snd_soc_dapm_context *dapm,
				enum snd_soc_bias_level level)
{}

static struct snd_soc_aux_dev tm2_speaker_amp_dev;

static int tm2_late_probe(struct snd_soc_card *card)
{}

static const struct snd_kcontrol_new tm2_controls[] =;

static const struct snd_soc_dapm_widget tm2_dapm_widgets[] =;

static const struct snd_soc_component_driver tm2_component =;

static struct snd_soc_dai_driver tm2_ext_dai[] =;

SND_SOC_DAILINK_DEFS();

SND_SOC_DAILINK_DEFS();

SND_SOC_DAILINK_DEFS();

SND_SOC_DAILINK_DEFS();

static struct snd_soc_dai_link tm2_dai_links[] =;

static struct snd_soc_card tm2_card =;

static int tm2_probe(struct platform_device *pdev)
{}

static int tm2_pm_prepare(struct device *dev)
{}

static void tm2_pm_complete(struct device *dev)
{}

static const struct dev_pm_ops tm2_pm_ops =;

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

static struct platform_driver tm2_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();