diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-22 14:28:50 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-22 14:28:50 +0100 |
commit | 8ef2292edbe50c432c5aa816e8add7d2ce6e894c (patch) | |
tree | 6673d34f718e79133c4a6367d261d7ae759a20d8 /sound/soc/codecs/spdif_transmitter.c | |
parent | 309018605762e816cd99e4b1f4f053df32f6bc8a (diff) | |
parent | fc6061486534a8dfee02dd6b9dd523789abd9a3d (diff) |
Merge remote-tracking branch 'asoc/topic/spdif' into asoc-next
Diffstat (limited to 'sound/soc/codecs/spdif_transmitter.c')
-rw-r--r-- | sound/soc/codecs/spdif_transmitter.c | 18 |
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 @@ #define DRV_NAME "spdif-dit" #define STUB_RATES SNDRV_PCM_RATE_8000_96000 -#define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE +#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \ + SNDRV_PCM_FMTBIT_S20_3LE | \ + SNDRV_PCM_FMTBIT_S24_LE) +static const struct snd_soc_dapm_widget dit_widgets[] = { + SND_SOC_DAPM_OUTPUT("spdif-out"), +}; + +static const struct snd_soc_dapm_route dit_routes[] = { + { "spdif-out", NULL, "Playback" }, +}; -static struct snd_soc_codec_driver soc_codec_spdif_dit; +static struct snd_soc_codec_driver soc_codec_spdif_dit = { + .dapm_widgets = dit_widgets, + .num_dapm_widgets = ARRAY_SIZE(dit_widgets), + .dapm_routes = dit_routes, + .num_dapm_routes = ARRAY_SIZE(dit_routes), +}; static struct snd_soc_dai_driver dit_stub_dai = { .name = "dit-hifi", |