Commit 3ca29229 authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] do codec init more like windows does

au88x0 driver
The following patch makes the codec init code act more like the windows
code.
Signed-off-by: default avatarJeff Muizelaar <jeff@infidigm.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 28a49f51
......@@ -2480,7 +2480,8 @@ static void vortex_codec_init(vortex_t * vortex)
int i;
for (i = 0; i < 32; i++) {
hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), 0);
/* the windows driver writes -i, so we write -i */
hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), -i);
msleep(2);
}
if (0) {
......@@ -2502,7 +2503,7 @@ static void vortex_codec_init(vortex_t * vortex)
hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x00e8);
}
for (i = 0; i < 32; i++) {
hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), 0);
hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), -i);
msleep(5);
}
hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0xe8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment