Commit 2f6e3ba0 authored by Mark Brown's avatar Mark Brown

ASoC: spdif: Add stub DAPM widgets for Rx

Ensure that the driver continues to work with mandatory DAPM.
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6ad70948
......@@ -23,13 +23,26 @@
#include <sound/initval.h>
#include <linux/of.h>
static const struct snd_soc_dapm_widget dir_widgets[] = {
SND_SOC_DAPM_INPUT("spdif-in"),
};
static const struct snd_soc_dapm_route dir_routes[] = {
{ "Capture", NULL, "spdif-in" },
};
#define STUB_RATES SNDRV_PCM_RATE_8000_192000
#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
static struct snd_soc_codec_driver soc_codec_spdif_dir;
static struct snd_soc_codec_driver soc_codec_spdif_dir = {
.dapm_widgets = dir_widgets,
.num_dapm_widgets = ARRAY_SIZE(dir_widgets),
.dapm_routes = dir_routes,
.num_dapm_routes = ARRAY_SIZE(dir_routes),
};
static struct snd_soc_dai_driver dir_stub_dai = {
.name = "dir-hifi",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment