Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47152
b: refs/heads/master
c: b0148a9
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and Jaroslav Kysela committed Feb 9, 2007
1 parent b7ae7c8 commit 860c996
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 333824034a19baf71b2bd5fe2153630982f379b0
refs/heads/master: b0148a98ec5151fec82064d95f11eb9efbc628ea
11 changes: 10 additions & 1 deletion trunk/sound/aoa/codecs/snd-aoa-codec-onyx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 860c996

Please sign in to comment.