aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/spdif_transmitter.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/spdif_transmitter.c')
-rw-r--r--sound/soc/codecs/spdif_transmitter.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/sound/soc/codecs/spdif_transmitter.c b/sound/soc/codecs/spdif_transmitter.c
index 18280499fd55..a078aa31052a 100644
--- a/sound/soc/codecs/spdif_transmitter.c
+++ b/sound/soc/codecs/spdif_transmitter.c
@@ -25,10 +25,24 @@
25#define DRV_NAME "spdif-dit" 25#define DRV_NAME "spdif-dit"
26 26
27#define STUB_RATES SNDRV_PCM_RATE_8000_96000 27#define STUB_RATES SNDRV_PCM_RATE_8000_96000
28#define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE 28#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
29 SNDRV_PCM_FMTBIT_S20_3LE | \
30 SNDRV_PCM_FMTBIT_S24_LE)
29 31
32static const struct snd_soc_dapm_widget dit_widgets[] = {
33 SND_SOC_DAPM_OUTPUT("spdif-out"),
34};
35
36static const struct snd_soc_dapm_route dit_routes[] = {
37 { "spdif-out", NULL, "Playback" },
38};
30 39
31static struct snd_soc_codec_driver soc_codec_spdif_dit; 40static struct snd_soc_codec_driver soc_codec_spdif_dit = {
41 .dapm_widgets = dit_widgets,
42 .num_dapm_widgets = ARRAY_SIZE(dit_widgets),
43 .dapm_routes = dit_routes,
44 .num_dapm_routes = ARRAY_SIZE(dit_routes),
45};
32 46
33static struct snd_soc_dai_driver dit_stub_dai = { 47static struct snd_soc_dai_driver dit_stub_dai = {
34 .name = "dit-hifi", 48 .name = "dit-hifi",