Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 203350c1 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Initialise dev for the dummy S/PDIF DAI



Also include the header to make sure the DAI is prototyped.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent be461ba8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 	= {
@@ -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);
}