linux/sound/soc/codecs/spdif_receiver.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * ALSA SoC SPDIF DIR (Digital Interface Reciever) driver
 *
 * Based on ALSA SoC SPDIF DIT driver
 *
 *  This driver is used by controllers which can operate in DIR (SPDI/F) where
 *  no codec is needed.  This file provides stub codec that can be used
 *  in these configurations. SPEAr SPDIF IN Audio controller uses this driver.
 *
 * Author:      Vipin Kumar,  <[email protected]>
 * Copyright:   (C) 2012  ST Microelectronics
 */

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include <sound/soc.h>
#include <sound/pcm.h>
#include <sound/initval.h>
#include <linux/of.h>

static const struct snd_soc_dapm_widget dir_widgets[] =;

static const struct snd_soc_dapm_route dir_routes[] =;

#define STUB_RATES
#define STUB_FORMATS

static struct snd_soc_component_driver soc_codec_spdif_dir =;

static struct snd_soc_dai_driver dir_stub_dai =;

static int spdif_dir_probe(struct platform_device *pdev)
{}

#ifdef CONFIG_OF
static const struct of_device_id spdif_dir_dt_ids[] =;
MODULE_DEVICE_TABLE(of, spdif_dir_dt_ids);
#endif

static struct platform_driver spdif_dir_driver =;

module_platform_driver();

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