Home | History | Annotate | Download | only in chameleon

Lines Matching refs:endpoint

82     # Maps port id defined in chameleon_audio_ids to endpoint name used in
121 """Gets the endpoint name used in audio bus API.
126 @returns: The endpoint name for the port used in audio bus API.
132 def _connect_endpoint(self, endpoint):
133 """Connects an endpoint to audio bus.
135 @param endpoint: An endpoint name in _PORT_ID_AUDIO_BUS_ENDPOINT_MAP.
139 'Audio bus %s is connecting endpoint %s',
140 self.bus_index, endpoint)
141 self._chameleond_proxy.AudioBoardConnect(self.bus_index, endpoint)
142 self._connected_endpoints.add(endpoint)
145 def _disconnect_endpoint(self, endpoint):
146 """Disconnects an endpoint from audio bus.
148 @param endpoint: An endpoint name in _PORT_ID_AUDIO_BUS_ENDPOINT_MAP.
152 'Audio bus %s is disconnecting endpoint %s',
153 self.bus_index, endpoint)
154 self._chameleond_proxy.AudioBoardDisconnect(self.bus_index, endpoint)
155 self._connected_endpoints.remove(endpoint)
165 endpoint = self._get_endpoint_name(port_id)
166 self._connect_endpoint(endpoint)
176 endpoint = self._get_endpoint_name(port_id)
177 self._disconnect_endpoint(endpoint)
187 for endpoint in self._connected_endpoints.copy():
188 self._disconnect_endpoint(endpoint)
208 for endpoint in snapshot._endpoints:
209 self._connect_endpoint(endpoint)