[alsa-devel] [PATCH 1/2] ASoC: AD1980/AD73311: make sure to set dev member
Mike Frysinger
vapier at gentoo.org
Tue Oct 6 07:51:50 CEST 2009
The codec driver should initialize snd_soc_codec's dev member to the
appropriate device when setting up the device, but these codecs weren't.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
sound/soc/codecs/ad1980.c | 1 +
sound/soc/codecs/ad73311.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c
index d7440a9..0477a91 100644
--- a/sound/soc/codecs/ad1980.c
+++ b/sound/soc/codecs/ad1980.c
@@ -203,6 +203,7 @@ static int ad1980_soc_probe(struct platform_device *pdev)
codec->reg_cache_size = sizeof(u16) * ARRAY_SIZE(ad1980_reg);
codec->reg_cache_step = 2;
codec->name = "AD1980";
+ codec->dev = &pdev->dev;
codec->owner = THIS_MODULE;
codec->dai = &ad1980_dai;
codec->num_dai = 1;
diff --git a/sound/soc/codecs/ad73311.c b/sound/soc/codecs/ad73311.c
index e61dac5..6e18149 100644
--- a/sound/soc/codecs/ad73311.c
+++ b/sound/soc/codecs/ad73311.c
@@ -50,6 +50,7 @@ static int ad73311_soc_probe(struct platform_device *pdev)
return -ENOMEM;
mutex_init(&codec->mutex);
codec->name = "AD73311";
+ codec->dev = &pdev->dev;
codec->owner = THIS_MODULE;
codec->dai = &ad73311_dai;
codec->num_dai = 1;
--
1.6.5.rc2
More information about the Alsa-devel
mailing list