Follow-up after ag/15645323

Make 'createConfig' a static function.

Fix OWNERS file to point to the correct location.

Bug: 188932434
Test: m sthal_cli_3
Change-Id: I7a35096acb71a246691f9bb9ddf41660f3e7cf8f
This commit is contained in:
Mikhail Naganov 2021-08-25 21:26:15 +00:00
parent e2f0e29f5c
commit 43a6ce023f
2 changed files with 11 additions and 11 deletions

View file

@ -1 +1 @@
include /media/java/android/media/soundtrigger_middleware/OWNERS
include platform/frameworks/base:/media/aidl/android/media/soundtrigger_middleware/OWNERS

View file

@ -248,16 +248,6 @@ public class SthalCli {
}
}
private AudioConfig createConfig() {
AudioConfig config = new AudioConfig();
config.channelMask = AudioChannelLayout.layoutMask(AudioChannelLayout.LAYOUT_MONO);
config.format = new AudioFormatDescription();
config.format.type = AudioFormatType.PCM;
config.format.pcm = PcmType.INT_16_BIT;
config.sampleRateHz = 16000;
return config;
}
@Override
public void registerGlobalCallback(ISoundTriggerHwGlobalCallback callback) {
System.out.println("registerGlobalCallback()");
@ -355,5 +345,15 @@ public class SthalCli {
public int getParameter(int modelHandle, int modelParam) {
throw new IllegalArgumentException();
}
private static AudioConfig createConfig() {
AudioConfig config = new AudioConfig();
config.channelMask = AudioChannelLayout.layoutMask(AudioChannelLayout.LAYOUT_MONO);
config.format = new AudioFormatDescription();
config.format.type = AudioFormatType.PCM;
config.format.pcm = PcmType.INT_16_BIT;
config.sampleRateHz = 16000;
return config;
}
}
}