Index: components/arc/common/audio.mojom |
diff --git a/components/arc/common/audio.mojom b/components/arc/common/audio.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7fe87c8b2f278f68b8eba5fb11e33968491efc34 |
--- /dev/null |
+++ b/components/arc/common/audio.mojom |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module arc; |
+ |
+// Use same switch values as kernel switch events. |
+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.
|
+ SW_HEADPHONE_INSERT = 0x02, |
+ SW_MICROPHONE_INSERT = 0x04 |
+}; |
+ |
+interface AudioHost { |
+}; |
+ |
+interface AudioInstance { |
+ // Establishes full-duplex communication with the host. |
+ 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.
|
+ |
+ // Notify plug states of headphone, microphone, etc. Each switch state is |
+ // represented by the corresponding bit, if the bit is set then the switch |
+ // is plugged/inserted. |
+ NotifySwitchState(uint32 state); |
+}; |