linux/sound/soc/rockchip/rockchip_max98090.c

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

#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/slab.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/ts3a227e.h"

#define DRV_NAME

static struct snd_soc_jack headset_jack;

/* Headset jack detection DAPM pins */
static struct snd_soc_jack_pin headset_jack_pins[] =;

#define RK_MAX98090_WIDGETS

#define RK_HDMI_WIDGETS

static const struct snd_soc_dapm_widget rk_max98090_dapm_widgets[] =;

static const struct snd_soc_dapm_widget rk_hdmi_dapm_widgets[] =;

static const struct snd_soc_dapm_widget rk_max98090_hdmi_dapm_widgets[] =;

#define RK_MAX98090_AUDIO_MAP

#define RK_HDMI_AUDIO_MAP

static const struct snd_soc_dapm_route rk_max98090_audio_map[] =;

static const struct snd_soc_dapm_route rk_hdmi_audio_map[] =;

static const struct snd_soc_dapm_route rk_max98090_hdmi_audio_map[] =;

#define RK_MAX98090_CONTROLS

#define RK_HDMI_CONTROLS

static const struct snd_kcontrol_new rk_max98090_controls[] =;

static const struct snd_kcontrol_new rk_hdmi_controls[] =;

static const struct snd_kcontrol_new rk_max98090_hdmi_controls[] =;

static int rk_jack_event(struct notifier_block *nb, unsigned long event,
			 void *data)
{}

static struct notifier_block rk_jack_nb =;

static int rk_init(struct snd_soc_pcm_runtime *runtime)
{}

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

static int rk_aif1_startup(struct snd_pcm_substream *substream)
{}

static const struct snd_soc_ops rk_aif1_ops =;

SND_SOC_DAILINK_DEFS();

SND_SOC_DAILINK_DEFS();

enum {};

static struct snd_soc_jack rk_hdmi_jack;

static int rk_hdmi_init(struct snd_soc_pcm_runtime *runtime)
{}

/* max98090 dai_link */
static struct snd_soc_dai_link rk_max98090_dailinks[] =;

/* HDMI codec dai_link */
static struct snd_soc_dai_link rk_hdmi_dailinks[] =;

/* max98090 and HDMI codec dai_link */
static struct snd_soc_dai_link rk_max98090_hdmi_dailinks[] =;

static int rk_98090_headset_init(struct snd_soc_component *component);

static struct snd_soc_aux_dev rk_98090_headset_dev =;

static struct snd_soc_card rockchip_max98090_card =;

static struct snd_soc_card rockchip_hdmi_card =;

static struct snd_soc_card rockchip_max98090_hdmi_card =;

static int rk_98090_headset_init(struct snd_soc_component *component)
{}

static int rk_parse_headset_from_of(struct device *dev, struct device_node *np)
{}

static int snd_rk_mc_probe(struct platform_device *pdev)
{}

static const struct of_device_id rockchip_max98090_of_match[] =;

MODULE_DEVICE_TABLE(of, rockchip_max98090_of_match);

static struct platform_driver snd_rk_mc_driver =;

module_platform_driver();

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