OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module arc; |
| 6 |
| 7 // Use same switch values as kernel switch events. |
| 8 [Extensible] |
| 9 enum AudioSwitch { |
| 10 SW_HEADPHONE_INSERT = 0x02, |
| 11 SW_MICROPHONE_INSERT = 0x04 |
| 12 }; |
| 13 |
| 14 interface AudioInstance { |
| 15 // Notify plug states of headphone, microphone, etc. Each switch state is |
| 16 // represented by the corresponding bit, if the bit is set then the switch |
| 17 // is plugged/inserted. |
| 18 NotifySwitchState(uint32 state); |
| 19 }; |
OLD | NEW |