mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Add isLnaSupported in HAL layer"
This commit is contained in:
committed by
Android (Google) Code Review
commit
50565f5c97
6
tv/tuner/OWNERS
Normal file
6
tv/tuner/OWNERS
Normal file
@@ -0,0 +1,6 @@
|
||||
# Bug component: 136752
|
||||
|
||||
quxiangfang@google.com
|
||||
shubang@google.com
|
||||
hgchen@google.com
|
||||
raychin@google.com
|
||||
@@ -47,4 +47,5 @@ interface ITuner {
|
||||
void setLna(in boolean bEnable);
|
||||
void setMaxNumberOfFrontends(in android.hardware.tv.tuner.FrontendType frontendType, in int maxNumber);
|
||||
int getMaxNumberOfFrontends(in android.hardware.tv.tuner.FrontendType frontendType);
|
||||
boolean isLnaSupported();
|
||||
}
|
||||
|
||||
@@ -125,6 +125,9 @@ interface ITuner {
|
||||
/**
|
||||
* Enable or Disable Low Noise Amplifier (LNA).
|
||||
*
|
||||
* If the device doesn't support LNA, the HAL implement should set {@link Result#UNAVAILABLE}
|
||||
* to EX_SERVICE_SPECIFIC as the service specific error.
|
||||
*
|
||||
* @param bEnable true if activate LNA module; false if deactivate LNA
|
||||
*/
|
||||
void setLna(in boolean bEnable);
|
||||
@@ -148,4 +151,11 @@ interface ITuner {
|
||||
* @return the maximum usable number of the queried frontend type.
|
||||
*/
|
||||
int getMaxNumberOfFrontends(in FrontendType frontendType);
|
||||
|
||||
/**
|
||||
* Is Low Noise Amplifier (LNA) supported.
|
||||
*
|
||||
* @return true if supported, otherwise false
|
||||
*/
|
||||
boolean isLnaSupported();
|
||||
}
|
||||
|
||||
@@ -204,6 +204,13 @@ std::shared_ptr<Frontend> Tuner::getFrontendById(int32_t frontendId) {
|
||||
return ::ndk::ScopedAStatus::ok();
|
||||
}
|
||||
|
||||
::ndk::ScopedAStatus Tuner::isLnaSupported(bool* _aidl_return) {
|
||||
ALOGV("%s", __FUNCTION__);
|
||||
|
||||
*_aidl_return = true;
|
||||
return ::ndk::ScopedAStatus::ok();
|
||||
}
|
||||
|
||||
binder_status_t Tuner::dump(int fd, const char** args, uint32_t numArgs) {
|
||||
ALOGV("%s", __FUNCTION__);
|
||||
{
|
||||
|
||||
@@ -61,6 +61,7 @@ class Tuner : public BnTuner {
|
||||
int32_t in_maxNumber) override;
|
||||
::ndk::ScopedAStatus getMaxNumberOfFrontends(FrontendType in_frontendType,
|
||||
int32_t* _aidl_return) override;
|
||||
::ndk::ScopedAStatus isLnaSupported(bool* _aidl_return) override;
|
||||
|
||||
binder_status_t dump(int fd, const char** args, uint32_t numArgs) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user