mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
(mds) Disable beeps by default.
Reenable by 'set beep_enable 1' in sensors.conf or
by 'echo 1 > /proc/.../w83781d.../beep
Ref. tickets 178, 183, 195.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@600 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
0681c836ae
commit
f86aec92f7
1 file changed
+2
@@ -949,7 +949,9 @@ void w83781d_init_client(struct i2c_client *client)
|
||||
|
||||
/* Reset all except Watchdog values and last conversion values
|
||||
This sets fan-divs to 2, among others */
|
||||
/* Disable beeps (reset turns them on) */
|
||||
w83781d_write_value(client,W83781D_REG_CONFIG,0x80);
|
||||
w83781d_write_value(client,W83781D_REG_BEEP_INTS2,0);
|
||||
|
||||
vid = w83781d_read_value(client,W83781D_REG_VID_FANDIV) & 0x0f;
|
||||
vid |= (w83781d_read_value(client,W83781D_REG_CHIPID) & 0x01) << 4;
|
||||
|
||||
Reference in new issue
Block a user