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) {
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