return 0;
}
----- static int stac9766_codec_suspend(struct snd_soc_codec *codec)
----- {
----- stac9766_set_bias_level(codec, SND_SOC_BIAS_OFF);
----- return 0;
----- }
-----
static int stac9766_codec_resume(struct snd_soc_codec *codec)
{
+++++ struct snd_ac97 *ac97 = snd_soc_codec_get_drvdata(codec);
u16 id, reset;
reset = 0;
/* give the codec an AC97 warm reset to start the link */
reset:
if (reset > 5) {
----- printk(KERN_ERR "stac9766 failed to resume");
+++++ dev_err(codec->dev, "Failed to resume\n");
return -EIO;
}
----- codec->ac97->bus->ops->warm_reset(codec->ac97);
----- id = soc_ac97_ops->read(codec->ac97, AC97_VENDOR_ID2);
+++++ ac97->bus->ops->warm_reset(ac97);
+++++ id = soc_ac97_ops->read(ac97, AC97_VENDOR_ID2);
if (id != 0x4c13) {
stac9766_reset(codec, 0);
reset++;