added codec reset

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2009-02-13 20:21:18 +00:00
parent 24283c487c
commit 10047d2e3d

View File

@ -92,7 +92,7 @@ geode_codec_write(geode_controller *controller, uint8 regno, uint16 value)
(value & ACC_CODEC_CNTL_CMD_DATA_MASK));
if (geode_codec_wait(controller) != B_OK) {
dprintf("codec busy (2)\n");
dprintf("codec busy (4)\n");
}
}
@ -154,6 +154,13 @@ geode_interrupt_handler(geode_controller* controller)
static status_t
reset_controller(geode_controller* controller)
{
controller->Write32(ACC_CODEC_CNTL, ACC_CODEC_CNTL_LNK_WRM_RST
| ACC_CODEC_CNTL_CMD_NEW);
if (geode_codec_wait(controller) != B_OK) {
dprintf("codec reset busy (1)\n");
}
// stop streams
// stop DMA