Skip to content

Commit

Permalink
ASoC: Pass correct platform data from pxa2xx-ac97
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Marek Vasut authored and Mark Brown committed Aug 23, 2009
1 parent 821ebc8 commit e2365bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sound/arm/pxa2xx-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ static int __devinit pxa2xx_ac97_probe(struct platform_device *dev)
snprintf(card->longname, sizeof(card->longname),
"%s (%s)", dev->dev.driver->name, card->mixername);

if (pdata && pdata->codec_data)
snd_ac97_dev_add_pdata(ac97_bus->codec[0], pdata->codec_pdata);
if (pdata && pdata->codec_data[0])
snd_ac97_dev_add_pdata(ac97_bus->codec[0], pdata->codec_pdata[0]);
snd_card_set_dev(card, &dev->dev);
ret = snd_card_register(card);
if (ret == 0) {
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/pxa/pxa2xx-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ static int __devinit pxa2xx_ac97_dev_probe(struct platform_device *pdev)

for (i = 0; i < ARRAY_SIZE(pxa_ac97_dai); i++) {
pxa_ac97_dai[i].dev = &pdev->dev;
if (pdata && pdata->codec_pdata)
pxa_ac97_dai[i].ac97_pdata = pdata->codec_pdata;
if (pdata && pdata->codec_pdata[0])
pxa_ac97_dai[i].ac97_pdata = pdata->codec_pdata[0];
}

/* Punt most of the init to the SoC probe; we may need the machine
Expand Down

0 comments on commit e2365bf

Please sign in to comment.