mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 03:14:17 +00:00
Cherry-pick the same change from aosp/1610134 on Tuner 1.0 to Tuner 1.1 in sc-dev branch Let the TV tuner HAL allocate DMA-BUFs fds with libdmabufheap. Devices supporting ION will continue to allocate from ION with the change. Devices that are deprecating ION will be able to allocate from the DMA-BUF heap framework instead. Both frameworks allocate DMA-BUFs, hence no other changes are required in the handling of the fd. Test: make android.hardware.tv.tuner@1.1-service and sampletis on Cuttlefish Refer to AOSP Change-Id: Ic147ed83c9097be76162a86cd4f94d3b1c27a10f Change-Id: Ibb4f29624008b5af24429c48fc72f6bf8a8bc5ac Bug: 181341260 Bug: 181997400 Change-Id: Ic392428f1cef183ef4c9c8720bc984673095f2a9
63 lines
1.7 KiB
Plaintext
63 lines
1.7 KiB
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "hardware_interfaces_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["hardware_interfaces_license"],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "tuner_service_defaults@1.1",
|
|
defaults: ["hidl_defaults"],
|
|
vendor: true,
|
|
relative_install_path: "hw",
|
|
srcs: [
|
|
"Demux.cpp",
|
|
"Descrambler.cpp",
|
|
"Dvr.cpp",
|
|
"Filter.cpp",
|
|
"Frontend.cpp",
|
|
"Lnb.cpp",
|
|
"TimeFilter.cpp",
|
|
"Tuner.cpp",
|
|
"service.cpp",
|
|
],
|
|
|
|
compile_multilib: "first",
|
|
|
|
shared_libs: [
|
|
"android.hardware.tv.tuner@1.0",
|
|
"android.hardware.tv.tuner@1.1",
|
|
"android.hidl.memory@1.0",
|
|
"libcutils",
|
|
"libdmabufheap",
|
|
"libfmq",
|
|
"libhidlbase",
|
|
"libhidlmemory",
|
|
"libion",
|
|
"liblog",
|
|
"libstagefright_foundation",
|
|
"libutils",
|
|
],
|
|
header_libs: [
|
|
"media_plugin_headers",
|
|
],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.tv.tuner@1.1-service",
|
|
vintf_fragments: ["android.hardware.tv.tuner@1.1-service.xml"],
|
|
defaults: ["tuner_service_defaults@1.1"],
|
|
init_rc: ["android.hardware.tv.tuner@1.1-service.rc"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.tv.tuner@1.1-service-lazy",
|
|
vintf_fragments: ["android.hardware.tv.tuner@1.1-service-lazy.xml"],
|
|
overrides: ["android.hardware.tv.tuner@1.1-service"],
|
|
defaults: ["tuner_service_defaults@1.1"],
|
|
init_rc: ["android.hardware.tv.tuner@1.1-service-lazy.rc"],
|
|
cflags: ["-DLAZY_SERVICE"],
|
|
}
|