linux/sound/soc/rockchip/rockchip_rt5645.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Rockchip machine ASoC driver for boards using a RT5645/RT5650 CODEC.
 *
 * Copyright (c) 2015, ROCKCHIP CORPORATION.  All rights reserved.
 */

#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <sound/core.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include "rockchip_i2s.h"
#include "../codecs/rt5645.h"

#define DRV_NAME

static struct snd_soc_jack headset_jack;
static struct snd_soc_jack_pin headset_jack_pins[] =;

static const struct snd_soc_dapm_widget rk_dapm_widgets[] =;

static const struct snd_soc_dapm_route rk_audio_map[] =;

static const struct snd_kcontrol_new rk_mc_controls[] =;

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

static int rk_init(struct snd_soc_pcm_runtime *runtime)
{}

static const struct snd_soc_ops rk_aif1_ops =;

SND_SOC_DAILINK_DEFS();

static struct snd_soc_dai_link rk_dailink =;

static struct snd_soc_card snd_soc_card_rk =;

static int snd_rk_mc_probe(struct platform_device *pdev)
{}

static void snd_rk_mc_remove(struct platform_device *pdev)
{}

static const struct of_device_id rockchip_rt5645_of_match[] =;

MODULE_DEVICE_TABLE(of, rockchip_rt5645_of_match);

static struct platform_driver snd_rk_mc_driver =;

module_platform_driver();

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