Wai-Hong Tam has uploaded a new change for review.
https://chromium-review.googlesource.com/223511
Change subject: Add methods IsPlugged and Plug to CodecFlow
......................................................................
Add methods IsPlugged and Plug to CodecFlow
These 2 methods are called from Chameleond APIs. Empty implementations
are added in this change.
BUG=chromium:417167, chromium:423173
TEST=Tested by the following Python code:
import xmlrpclib
c = xmlrpclib.ServerProxy('
http://chameleon:9992')
c.Plug(5)
c.IsPlugged(5)
--> True
Change-Id: I2e9219cb31ab9dee618a282351e44b2ed9a3ae98
---
M chameleond/utils/codec_flow.py
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/chameleond/utils/codec_flow.py b/chameleond/utils/codec_flow.py
index cacbdc3..595f9cb 100644
--- a/chameleond/utils/codec_flow.py
+++ b/chameleond/utils/codec_flow.py
@@ -77,6 +77,18 @@
' Always returns True')
return True
+ def IsPlugged(self):
+ """Returns true if audio codec is emualted plug."""
+ # TODO(cychiang): Implement this using audio board interface.
+ logging.warning('Always return True for IsPlugged on
AudioCodecInputFlow.')
+ return True
+
+ def Plug(self):
+ """Emulates plug on audio codec."""
+ # TODO(cychiang): Implement this using audio board interface.
+ logging.warning(
+ 'Plug on AudioCodecInputFlow is not implemented. Do nothing.')
+
def Unplug(self):
"""Emulates unplug on audio codec."""
# TODO(cychiang): Implement this using audio board interface.
--
To view, visit
https://chromium-review.googlesource.com/223511
To unsubscribe, visit
https://chromium-review.googlesource.com/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e9219cb31ab9dee618a282351e44b2ed9a3ae98
Gerrit-PatchSet: 1
Gerrit-Project: chromiumos/platform/chameleon
Gerrit-Branch: master
Gerrit-Owner: Wai-Hong Tam <
wai...@chromium.org>