ASoC: Initialise dev for the dummy S/PDIF DAI
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 28 May 2009 13:51:00 +0000 (14:51 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 28 May 2009 17:54:52 +0000 (18:54 +0100)
Also include the header to make sure the DAI is prototyped.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/spdif_transciever.c

index 118e976b28ac59f3f8457ccf7d33cf7e79603c5e..218b33adad907679d04c4fa7ad71a864a5abc480 100644 (file)
 #include <sound/soc.h>
 #include <sound/pcm.h>
 
+#include "spdif_transciever.h"
+
 #define STUB_RATES     SNDRV_PCM_RATE_8000_96000
 #define STUB_FORMATS   SNDRV_PCM_FMTBIT_S16_LE
 
-
 struct snd_soc_dai dit_stub_dai = {
        .name           = "DIT",
        .playback       = {
@@ -36,6 +37,7 @@ struct snd_soc_dai dit_stub_dai = {
 
 static int spdif_dit_probe(struct platform_device *pdev)
 {
+       dit_stub_dai.dev = &pdev->dev;
        return snd_soc_register_dai(&dit_stub_dai);
 }