Skip to content

Commit

Permalink
ASoC: Initialise dev for the dummy S/PDIF DAI
Browse files Browse the repository at this point in the history
Also include the header to make sure the DAI is prototyped.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed May 28, 2009
1 parent be461ba commit 203350c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/soc/codecs/spdif_transciever.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
#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 = {
Expand All @@ -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);
}

Expand Down

0 comments on commit 203350c

Please sign in to comment.