blob: 434ecbd46172b9f489c57daa2a98e69df659ac2d [file] [log] [blame]
Amy Zhang80cb9602020-07-15 13:06:39 -07001/*
2 * Copyright 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.tv.tuner@1.1;
18
19import @1.0::IDemux;
Amy Zhang80cb9602020-07-15 13:06:39 -070020import @1.0::IFilter;
Amy Zhang68afca62020-07-20 18:28:58 -070021import @1.0::Result;
Amy Zhang80cb9602020-07-15 13:06:39 -070022
23/**
24 * Demultiplexer(Demux) takes a single multiplexed input and splits it into
25 * one or more output.
26 */
27interface IDemux extends @1.0::IDemux {
28 /**
29 * Get a 64-bit hardware sync ID for audio and video.
30 *
31 * It is used by the client to get the hardware sync ID for audio and video.
32 *
Amy Zhang68afca62020-07-20 18:28:58 -070033 * @param filter the v1_1 filter instance.
Amy Zhang80cb9602020-07-15 13:06:39 -070034 * @return result Result status of the operation.
35 * SUCCESS if successful,
36 * INVALID_ARGUMENT if failed for a wrong filter ID.
37 * UNKNOWN_ERROR if failed for other reasons.
38 * @return avSyncHwId the id of hardware A/V sync.
39 */
40 getAvSyncHwId64Bit(IFilter filter) generates (Result result, uint64_t avSyncHwId);
41};