diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-05-28 09:51:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-05-28 13:54:52 -0400 |
commit | 203350c1a8e23adf17fd9a96d8bfc7adf63c1ff6 (patch) | |
tree | bff1cd9762426bbc11fc20e813a02311a9aafadd /sound/soc | |
parent | be461ba836770263826457624bc4a5173a1f5040 (diff) |
ASoC: Initialise dev for the dummy S/PDIF DAI
Also include the header to make sure the DAI is prototyped.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/spdif_transciever.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/spdif_transciever.c b/sound/soc/codecs/spdif_transciever.c index 118e976b28ac..218b33adad90 100644 --- a/sound/soc/codecs/spdif_transciever.c +++ b/sound/soc/codecs/spdif_transciever.c | |||
@@ -19,10 +19,11 @@ | |||
19 | #include <sound/soc.h> | 19 | #include <sound/soc.h> |
20 | #include <sound/pcm.h> | 20 | #include <sound/pcm.h> |
21 | 21 | ||
22 | #include "spdif_transciever.h" | ||
23 | |||
22 | #define STUB_RATES SNDRV_PCM_RATE_8000_96000 | 24 | #define STUB_RATES SNDRV_PCM_RATE_8000_96000 |
23 | #define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE | 25 | #define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE |
24 | 26 | ||
25 | |||
26 | struct snd_soc_dai dit_stub_dai = { | 27 | struct snd_soc_dai dit_stub_dai = { |
27 | .name = "DIT", | 28 | .name = "DIT", |
28 | .playback = { | 29 | .playback = { |
@@ -36,6 +37,7 @@ struct snd_soc_dai dit_stub_dai = { | |||
36 | 37 | ||
37 | static int spdif_dit_probe(struct platform_device *pdev) | 38 | static int spdif_dit_probe(struct platform_device *pdev) |
38 | { | 39 | { |
40 | dit_stub_dai.dev = &pdev->dev; | ||
39 | return snd_soc_register_dai(&dit_stub_dai); | 41 | return snd_soc_register_dai(&dit_stub_dai); |
40 | } | 42 | } |
41 | 43 | ||