blob: 938bc4456e1eb7448a7db6c77db4c4fc743b195a [file] [log] [blame]
Henry Fangcf05ed72019-08-15 18:57:08 -07001package android.hardware.tv.tuner@1.0;
2
3import IDemuxCallback;
4
5/**
6 * Demultiplexer(Demux) takes a single multiplexed input and splits it into
7 * one or more output.
8 *
9 */
10interface IDemux {
11
12 /**
13 * Set a frontend resource as data input of the demux
14 *
15 * It is used by the client to specify a hardware frontend as data source of
16 * this demux instance. A demux instance can have only one data source.
17 *
18 * @return result Result status of the operation.
19 * SUCCESS if successful,
20 * INVALID_STATE if failed for wrong state.
21 * UNKNOWN_ERROR if failed for other reasons.
22 */
23 setFrontendDataSource(FrontendId frontendId) generates (Result result);
24
25 /**
26 * Close the Demux instance
27 *
28 * It is used by the client to release the demux instance. HAL clear
29 * underneath resource. client mustn't access the instance any more.
30 *
31 * @return result Result status of the operation.
32 * SUCCESS if successful,
33 * UNKNOWN_ERROR if failed for other reasons.
34 */
35 close() generates (Result result);
36};
37