linux/sound/soc/rockchip/rockchip_i2s.c

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

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

#include "rockchip_i2s.h"

#define DRV_NAME

struct rk_i2s_pins {};

struct rk_i2s_dev {};

static int i2s_pinctrl_select_bclk_on(struct rk_i2s_dev *i2s)
{}

static int i2s_pinctrl_select_bclk_off(struct rk_i2s_dev *i2s)
{}

static int i2s_runtime_suspend(struct device *dev)
{}

static int i2s_runtime_resume(struct device *dev)
{}

static inline struct rk_i2s_dev *to_info(struct snd_soc_dai *dai)
{}

static int rockchip_snd_txctrl(struct rk_i2s_dev *i2s, int on)
{}

static int rockchip_snd_rxctrl(struct rk_i2s_dev *i2s, int on)
{}

static int rockchip_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
				unsigned int fmt)
{}

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

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

static int rockchip_i2s_set_bclk_ratio(struct snd_soc_dai *dai,
				       unsigned int ratio)
{}

static int rockchip_i2s_set_sysclk(struct snd_soc_dai *cpu_dai, int clk_id,
				   unsigned int freq, int dir)
{}

static int rockchip_i2s_dai_probe(struct snd_soc_dai *dai)
{}

static const struct snd_soc_dai_ops rockchip_i2s_dai_ops =;

static struct snd_soc_dai_driver rockchip_i2s_dai =;

static const struct snd_soc_component_driver rockchip_i2s_component =;

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

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

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

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

static const struct reg_default rockchip_i2s_reg_defaults[] =;

static const struct regmap_config rockchip_i2s_regmap_config =;

static const struct rk_i2s_pins rk3399_i2s_pins =;

static const struct of_device_id rockchip_i2s_match[] __maybe_unused =;

static int rockchip_i2s_init_dai(struct rk_i2s_dev *i2s, struct resource *res,
				 struct snd_soc_dai_driver **dp)
{}

static int rockchip_i2s_probe(struct platform_device *pdev)
{}

static void rockchip_i2s_remove(struct platform_device *pdev)
{}

static const struct dev_pm_ops rockchip_i2s_pm_ops =;

static struct platform_driver rockchip_i2s_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();
MODULE_ALIAS();
MODULE_DEVICE_TABLE(of, rockchip_i2s_match);