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 enum AudioSwitch { | |
Luis Héctor Chávez
2016/03/23 16:22:13
Do you plan on adding entries to this enum or will
chinyue
2016/03/25 09:50:31
Done.
| |
9 SW_HEADPHONE_INSERT = 0x02, | |
10 SW_MICROPHONE_INSERT = 0x04 | |
11 }; | |
12 | |
13 interface AudioHost { | |
14 }; | |
15 | |
16 interface AudioInstance { | |
17 // Establishes full-duplex communication with the host. | |
18 Init(AudioHost host_ptr); | |
elijahtaylor1
2016/03/23 01:24:55
if you don't have a meaningful Host interface, you
chinyue
2016/03/25 09:50:31
Done.
| |
19 | |
20 // Notify plug states of headphone, microphone, etc. Each switch state is | |
21 // represented by the corresponding bit, if the bit is set then the switch | |
22 // is plugged/inserted. | |
23 NotifySwitchState(uint32 state); | |
24 }; | |
OLD | NEW |