linux/sound/soc/fsl/lpc3xxx-i2s.c

// SPDX-License-Identifier: GPL-2.0-or-later
//
// Author: Kevin Wells <[email protected]>
//
// Copyright (C) 2008 NXP Semiconductors
// Copyright 2023 Timesys Corporation <[email protected]>

#include <linux/init.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/io.h>

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

#include "lpc3xxx-i2s.h"

#define I2S_PLAYBACK_FLAG
#define I2S_CAPTURE_FLAG

#define LPC3XXX_I2S_RATES

#define LPC3XXX_I2S_FORMATS

static void __lpc3xxx_find_clkdiv(u32 *clkx, u32 *clky, int freq, int xbytes, u32 clkrate)
{}

static int lpc3xxx_i2s_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *cpu_dai)
{}

static void lpc3xxx_i2s_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *cpu_dai)
{}

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

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

static int lpc3xxx_i2s_hw_params(struct snd_pcm_substream *substream,
				 struct snd_pcm_hw_params *params,
				 struct snd_soc_dai *cpu_dai)
{}

static int lpc3xxx_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
			       struct snd_soc_dai *cpu_dai)
{}

static int lpc3xxx_i2s_dai_probe(struct snd_soc_dai *dai)
{}

const struct snd_soc_dai_ops lpc3xxx_i2s_dai_ops =;

struct snd_soc_dai_driver lpc3xxx_i2s_dai_driver =;

static const struct snd_soc_component_driver lpc32xx_i2s_component =;

static const struct regmap_config lpc32xx_i2s_regconfig =;

static int lpc32xx_i2s_probe(struct platform_device *pdev)
{}

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

static struct platform_driver lpc32xx_i2s_driver =;

module_platform_driver();

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