mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Implement getInterfaceHash/Version for SoundTrigger
As the soundtrigger AIDL interface gets frozen for TM, java services implementing the interface are required to implement getInterfaceHash and getInterfaceVersion [1]. [1] https://source.android.com/devices/architecture/aidl/stable-aidl#new-meta-interface-methods Bug: 225941299 Test: m Change-Id: I71f27131d2619cea2ae10a53c01ca883a459d159
This commit is contained in:
@@ -357,5 +357,15 @@ public class SthalCli {
|
||||
config.base.sampleRate = 16000;
|
||||
return config;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getInterfaceVersion() {
|
||||
return ISoundTriggerHw.VERSION;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getInterfaceHash() {
|
||||
return ISoundTriggerHw.HASH;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user