diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/aoa/codecs/snd-aoa-codec-onyx.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sound/aoa/codecs/snd-aoa-codec-onyx.c b/sound/aoa/codecs/snd-aoa-codec-onyx.c index 0b7650788f1f..b00fc4842c93 100644 --- a/sound/aoa/codecs/snd-aoa-codec-onyx.c +++ b/sound/aoa/codecs/snd-aoa-codec-onyx.c | |||
@@ -825,7 +825,16 @@ static int onyx_resume(struct codec_info_item *cii) | |||
825 | int err = -ENXIO; | 825 | int err = -ENXIO; |
826 | 826 | ||
827 | mutex_lock(&onyx->mutex); | 827 | mutex_lock(&onyx->mutex); |
828 | /* take codec out of suspend */ | 828 | |
829 | /* reset codec */ | ||
830 | onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); | ||
831 | msleep(1); | ||
832 | onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 1); | ||
833 | msleep(1); | ||
834 | onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); | ||
835 | msleep(1); | ||
836 | |||
837 | /* take codec out of suspend (if it still is after reset) */ | ||
829 | if (onyx_read_register(onyx, ONYX_REG_CONTROL, &v)) | 838 | if (onyx_read_register(onyx, ONYX_REG_CONTROL, &v)) |
830 | goto out_unlock; | 839 | goto out_unlock; |
831 | onyx_write_register(onyx, ONYX_REG_CONTROL, v & ~(ONYX_ADPSV | ONYX_DAPSV)); | 840 | onyx_write_register(onyx, ONYX_REG_CONTROL, v & ~(ONYX_ADPSV | ONYX_DAPSV)); |