Skip to content

Commit

Permalink
ASoC: s3c2412-i2s: Fix dai registration
Browse files Browse the repository at this point in the history
As s3c2412-i2s is using the s3c_i2sv2 it should call the more specialised
s3c_i2sv2_register_dai instead of simply calling snd_soc_register_dai.

Without this call the snd_soc_dai_ops structure isn't initialised correctly.

Signed-off-by: Heiko Stuebner <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
mmind authored and broonie committed Apr 30, 2012
1 parent 30facd4 commit 0641208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/samsung/s3c2412-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static struct snd_soc_dai_driver s3c2412_i2s_dai = {

static __devinit int s3c2412_iis_dev_probe(struct platform_device *pdev)
{
return snd_soc_register_dai(&pdev->dev, &s3c2412_i2s_dai);
return s3c_i2sv2_register_dai(&pdev->dev, -1, &s3c2412_i2s_dai);
}

static __devexit int s3c2412_iis_dev_remove(struct platform_device *pdev)
Expand Down

0 comments on commit 0641208

Please sign in to comment.