| 1191 | | /* save this register */ |
| 1192 | | i = w83781d_read_value(client, W83781D_REG_BEEP_CONFIG); |
| 1193 | | /* Reset all except Watchdog values and last conversion values |
| 1194 | | This sets fan-divs to 2, among others */ |
| 1195 | | w83781d_write_value(client, W83781D_REG_CONFIG, 0x80); |
| 1196 | | /* Restore the register and disable power-on abnormal beep. |
| 1197 | | This saves FAN 1/2/3 input/output values set by BIOS. */ |
| 1198 | | w83781d_write_value(client, W83781D_REG_BEEP_CONFIG, i | 0x80); |
| 1199 | | /* Disable master beep-enable (reset turns it on). |
| 1200 | | Individual beeps should be reset to off but for some reason |
| 1201 | | disabling this bit helps some people not get beeped */ |
| 1202 | | w83781d_write_value(client, W83781D_REG_BEEP_INTS2, 0); |
| | 1191 | if(type != as99127f) { /* this resets registers we don't have |
| | 1192 | documentation for on the as99127f */ |
| | 1193 | /* save this register */ |
| | 1194 | i = w83781d_read_value(client, W83781D_REG_BEEP_CONFIG); |
| | 1195 | /* Reset all except Watchdog values and last conversion values |
| | 1196 | This sets fan-divs to 2, among others */ |
| | 1197 | w83781d_write_value(client, W83781D_REG_CONFIG, 0x80); |
| | 1198 | /* Restore the register and disable power-on abnormal beep. |
| | 1199 | This saves FAN 1/2/3 input/output values set by BIOS. */ |
| | 1200 | w83781d_write_value(client, W83781D_REG_BEEP_CONFIG, i | 0x80); |
| | 1201 | /* Disable master beep-enable (reset turns it on). |
| | 1202 | Individual beeps should be reset to off but for some reason |
| | 1203 | disabling this bit helps some people not get beeped */ |
| | 1204 | w83781d_write_value(client, W83781D_REG_BEEP_INTS2, 0); |
| | 1205 | } |