linux/sound/soc/rockchip/rockchip_spdif.c

// SPDX-License-Identifier: GPL-2.0-only
/* sound/soc/rockchip/rk_spdif.c
 *
 * ALSA SoC Audio Layer - Rockchip I2S Controller driver
 *
 * Copyright (c) 2014 Rockchip Electronics Co. Ltd.
 * Author: Jianqun <[email protected]>
 * Copyright (c) 2015 Collabora Ltd.
 * Author: Sjoerd Simons <[email protected]>
 */

#include <linux/module.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/pm_runtime.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
#include <sound/pcm_params.h>
#include <sound/dmaengine_pcm.h>

#include "rockchip_spdif.h"

enum rk_spdif_type {};

#define RK3288_GRF_SOC_CON2

struct rk_spdif_dev {};

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

static int __maybe_unused rk_spdif_runtime_suspend(struct device *dev)
{}

static int __maybe_unused rk_spdif_runtime_resume(struct device *dev)
{}

static int rk_spdif_hw_params(struct snd_pcm_substream *substream,
			      struct snd_pcm_hw_params *params,
			      struct snd_soc_dai *dai)
{}

static int rk_spdif_trigger(struct snd_pcm_substream *substream,
			    int cmd, struct snd_soc_dai *dai)
{}

static int rk_spdif_dai_probe(struct snd_soc_dai *dai)
{}

static const struct snd_soc_dai_ops rk_spdif_dai_ops =;

static struct snd_soc_dai_driver rk_spdif_dai =;

static const struct snd_soc_component_driver rk_spdif_component =;

static bool rk_spdif_wr_reg(struct device *dev, unsigned int reg)
{}

static bool rk_spdif_rd_reg(struct device *dev, unsigned int reg)
{}

static bool rk_spdif_volatile_reg(struct device *dev, unsigned int reg)
{}

static const struct regmap_config rk_spdif_regmap_config =;

static int rk_spdif_probe(struct platform_device *pdev)
{}

static void rk_spdif_remove(struct platform_device *pdev)
{}

static const struct dev_pm_ops rk_spdif_pm_ops =;

static struct platform_driver rk_spdif_driver =;
module_platform_driver();

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