linux/sound/soc/img/img-i2s-in.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * IMG I2S input controller driver
 *
 * Copyright (C) 2015 Imagination Technologies Ltd.
 *
 * Author: Damien Horsley <[email protected]>
 */

#include <linux/clk.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/reset.h>

#include <sound/core.h>
#include <sound/dmaengine_pcm.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>

#define IMG_I2S_IN_RX_FIFO

#define IMG_I2S_IN_CTL
#define IMG_I2S_IN_CTL_ACTIVE_CHAN_MASK
#define IMG_I2S_IN_CTL_ACTIVE_CH_SHIFT
#define IMG_I2S_IN_CTL_16PACK_MASK
#define IMG_I2S_IN_CTL_ME_MASK

#define IMG_I2S_IN_CH_CTL
#define IMG_I2S_IN_CH_CTL_CCDEL_MASK
#define IMG_I2S_IN_CH_CTL_CCDEL_SHIFT
#define IMG_I2S_IN_CH_CTL_FEN_MASK
#define IMG_I2S_IN_CH_CTL_FMODE_MASK
#define IMG_I2S_IN_CH_CTL_16PACK_MASK
#define IMG_I2S_IN_CH_CTL_JUST_MASK
#define IMG_I2S_IN_CH_CTL_PACKH_MASK
#define IMG_I2S_IN_CH_CTL_CLK_TRANS_MASK
#define IMG_I2S_IN_CH_CTL_BLKP_MASK
#define IMG_I2S_IN_CH_CTL_FIFO_FLUSH_MASK
#define IMG_I2S_IN_CH_CTL_LRD_MASK
#define IMG_I2S_IN_CH_CTL_FW_MASK
#define IMG_I2S_IN_CH_CTL_SW_MASK
#define IMG_I2S_IN_CH_CTL_ME_MASK

#define IMG_I2S_IN_CH_STRIDE

struct img_i2s_in {};

static int img_i2s_in_runtime_suspend(struct device *dev)
{}

static int img_i2s_in_runtime_resume(struct device *dev)
{}

static inline void img_i2s_in_writel(struct img_i2s_in *i2s, u32 val, u32 reg)
{}

static inline u32 img_i2s_in_readl(struct img_i2s_in *i2s, u32 reg)
{}

static inline void img_i2s_in_ch_writel(struct img_i2s_in *i2s, u32 chan,
					u32 val, u32 reg)
{}

static inline u32 img_i2s_in_ch_readl(struct img_i2s_in *i2s, u32 chan,
					u32 reg)
{}

static inline void img_i2s_in_ch_disable(struct img_i2s_in *i2s, u32 chan)
{}

static inline void img_i2s_in_ch_enable(struct img_i2s_in *i2s, u32 chan)
{}

static inline void img_i2s_in_disable(struct img_i2s_in *i2s)
{}

static inline void img_i2s_in_enable(struct img_i2s_in *i2s)
{}

static inline void img_i2s_in_flush(struct img_i2s_in *i2s)
{}

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

static int img_i2s_in_check_rate(struct img_i2s_in *i2s,
		unsigned int sample_rate, unsigned int frame_size,
		unsigned int *bclk_filter_enable,
		unsigned int *bclk_filter_value)
{}

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

static int img_i2s_in_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{}

static int img_i2s_in_dai_probe(struct snd_soc_dai *dai)
{}

static const struct snd_soc_dai_ops img_i2s_in_dai_ops =;

static const struct snd_soc_component_driver img_i2s_in_component =;

static int img_i2s_in_dma_prepare_slave_config(struct snd_pcm_substream *st,
	struct snd_pcm_hw_params *params, struct dma_slave_config *sc)
{}

static const struct snd_dmaengine_pcm_config img_i2s_in_dma_config =;

static int img_i2s_in_probe(struct platform_device *pdev)
{}

static void img_i2s_in_dev_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_PM_SLEEP
static int img_i2s_in_suspend(struct device *dev)
{}

static int img_i2s_in_resume(struct device *dev)
{}
#endif

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

static const struct dev_pm_ops img_i2s_in_pm_ops =;

static struct platform_driver img_i2s_in_driver =;
module_platform_driver();

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