From 860c996a18a1e296d5b510c1332a80712902f6ff Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Mon, 18 Dec 2006 13:20:06 +0100 Subject: [PATCH] --- yaml --- r: 47152 b: refs/heads/master c: b0148a98ec5151fec82064d95f11eb9efbc628ea h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/aoa/codecs/snd-aoa-codec-onyx.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 4775f5dbf050..0cfea4a8c4b9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 333824034a19baf71b2bd5fe2153630982f379b0 +refs/heads/master: b0148a98ec5151fec82064d95f11eb9efbc628ea diff --git a/trunk/sound/aoa/codecs/snd-aoa-codec-onyx.c b/trunk/sound/aoa/codecs/snd-aoa-codec-onyx.c index 0b7650788f1f..b00fc4842c93 100644 --- a/trunk/sound/aoa/codecs/snd-aoa-codec-onyx.c +++ b/trunk/sound/aoa/codecs/snd-aoa-codec-onyx.c @@ -825,7 +825,16 @@ static int onyx_resume(struct codec_info_item *cii) int err = -ENXIO; mutex_lock(&onyx->mutex); - /* take codec out of suspend */ + + /* reset codec */ + onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); + msleep(1); + onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 1); + msleep(1); + onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); + msleep(1); + + /* take codec out of suspend (if it still is after reset) */ if (onyx_read_register(onyx, ONYX_REG_CONTROL, &v)) goto out_unlock; onyx_write_register(onyx, ONYX_REG_CONTROL, v & ~(ONYX_ADPSV | ONYX_DAPSV));