Changeset 25978
- Timestamp:
- 06/16/08 18:05:53 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/src/add-ons/kernel/drivers/audio/ac97/auich/io.c
r25852 r25978 105 105 106 106 /* codec */ 107 static uint8 sCodecLastReadRegister = 0; 108 static uint8 sCodecLastWrittenRegister = 0; 109 107 110 static int 108 111 auich_codec_wait(device_config *config) … … 120 123 * continue the access. We don't really need the semaphore anyway. */ 121 124 PRINT(("codec semaphore timed out!\n")); 125 PRINT(("last read/write registers: %x/%x\n", sCodecLastReadRegister, sCodecLastWrittenRegister)); 122 126 123 127 return B_OK; … … 127 131 auich_codec_read(device_config *config, uint8 regno) 128 132 { 133 sCodecLastReadRegister = regno; 129 134 ASSERT(regno >= 0); 130 135 ASSERT(((config->type & TYPE_ICH4) != 0 && regno <= 511) || regno <= 255); … … 143 148 auich_codec_write(device_config *config, uint8 regno, uint16 value) 144 149 { 150 sCodecLastWrittenRegister = regno; 145 151 ASSERT(regno >= 0); 146 152 ASSERT(((config->type & TYPE_ICH4) != 0 && regno <= 511) || regno <= 255);
