blob: 0b0ce395252cbc06fa70f779a3ec9f71a3a84d29 [file] [log] [blame]
Amy Zhang3ea25a62020-08-04 10:23:52 -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::FrontendScanType;
20import @1.0::FrontendSettings;
21import @1.0::IFrontend;
22import @1.0::Result;
23
24/**
25 * A Tuner Frontend is used to tune to a frequency and lock signal.
26 *
27 * IFrontend provides a bit stream to the Tuner Demux interface.
28 */
29interface IFrontend extends @1.0::IFrontend {
30 /**
31 * Tunes the frontend to using the settings given.
32 *
33 * This locks the frontend to a frequency by providing signal
34 * delivery information. If previous tuning isn't completed, this call MUST
35 * stop previous tuning, and start a new tuning.
36 * Tune is an async call, with LOCKED or NO_SIGNAL events sent via callback.
37 *
38 * @param settings Signal delivery information the frontend uses to
39 * search and lock the signal.
40 * @param settingsExt Extended information that would be used in the 1.1 Frontend to
41 * search and lock the signal in a better way.
42 *
43 * @return result Result status of the operation.
44 * SUCCESS if successful,
45 * INVALID_STATE if tuning can't be applied at current stage,
46 * UNKNOWN_ERROR if tuning failed for other reasons.
47 */
48 tune_1_1(FrontendSettings settings, FrontendSettingsExt settingsExt) generates (Result result);
49
50 /**
51 * Scan the frontend to use the settings given.
52 *
53 * This uses the frontend to start a scan from signal delivery information.
54 * If previous scan isn't completed, this call MUST stop previous scan,
55 * and start a new scan.
56 * Scan is an async call, with FrontendScanMessage sent via callback.
57 *
58 * @param settings Signal delivery information which the frontend uses to
59 * scan the signal.
60 * @param type the type which the frontend uses to scan the signal.
61 * @param settingsExt Extended information that would be used in the 1.1 Frontend to
62 * search and lock the signal in a better way.
63 * @return result Result status of the operation.
64 * SUCCESS if successful,
65 * INVALID_STATE if tuning can't be applied at current stage,
66 * UNKNOWN_ERROR if tuning failed for other reasons.
67 */
68 scan_1_1(FrontendSettings settings, FrontendScanType type, FrontendSettingsExt settingsExt)
69 generates (Result result);
Amy Zhang17f8eac2020-08-17 16:52:13 -070070
71 /**
72 * Link Conditional Access Modules (CAM) to Frontend support Common Interface (CI) bypass mode.
73 *
74 * The client may use this to link CI-CAM to a frontend. CI bypass mode requires that the
75 * CICAM also receives the TS concurrently from the frontend when the Demux is receiving the TS
76 * directly from the frontend.
77 *
78 * @param ciCamId specify CI-CAM Id to link.
79 * @return result Result status of the operation.
80 * SUCCESS if successful,
81 * UNKNOWN_ERROR if failed for other reasons.
82 */
83 linkCiCam(uint32_t ciCamId) generates (Result result);
Amy Zhang3ea25a62020-08-04 10:23:52 -070084};