audio VTS: Use 'IN_DEFAULT' device type for telephony
This undoes the change which had happened unintentionally in https://cs.android.com/android/_/android/platform/hardware/ \ interfaces/+/1e703f182e2fcbb9123bf661d81d22a04d0e1f8d The device type passed to 'openInputStream' for telephony devices should be 'AUDIO_DEVICE_IN_DEFAULT' Bug: 259636577 Test: atest VtsHalAudioV7_0TargetTest Test: atest VtsHalAudioV7_1TargetTest Change-Id: Ic8f4367961346b87087c885a3cdaccab3c1407c9
This commit is contained in:
parent
e49b3684a1
commit
d72b42d769
1 changed files with 2 additions and 0 deletions
|
@ -1274,6 +1274,8 @@ class InputStreamTest
|
|||
if (!xsd::isTelephonyDevice(address.deviceType)) {
|
||||
metadata.source = toString(xsd::AudioSource::AUDIO_SOURCE_UNPROCESSED);
|
||||
metadata.channelMask = getConfig().base.channelMask;
|
||||
} else {
|
||||
address.deviceType = toString(xsd::AudioDevice::AUDIO_DEVICE_IN_DEFAULT);
|
||||
}
|
||||
#if MAJOR_VERSION == 7 && MINOR_VERSION >= 1
|
||||
auto flagsIt = std::find(flags.begin(), flags.end(),
|
||||
|
|
Loading…
Reference in a new issue