summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-05 19:52:36 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-06-05 19:52:36 +0000
commit897e2105f95a0d5cb2119d1b38229637276c11f4 (patch)
tree8c013069e7442e5c4e240b876dccf71f6de28ee2
parentbc02700fcd142e9635f5924824a9b39183954c65 (diff)
parent32748ddb39cf99296ff35d374b15f04b4522e85c (diff)
downloadlibhardware-frc_340818170.tar.gz
Snap for 10243937 from 32748ddb39cf99296ff35d374b15f04b4522e85c to aml-frc-releasefrc_340821000frc_340819280frc_340819220frc_340819190frc_340819030frc_340819020frc_340819010frc_340818170frc_340818110
Change-Id: If6062f1ef38c2e6ed1b363eff2bce0f10047c632
-rw-r--r--modules/usbaudio/audio_hal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/usbaudio/audio_hal.c b/modules/usbaudio/audio_hal.c
index 43f8d240..d77f7ec6 100644
--- a/modules/usbaudio/audio_hal.c
+++ b/modules/usbaudio/audio_hal.c
@@ -1510,6 +1510,8 @@ static int adev_open_input_stream(struct audio_hw_device *hw_dev,
ret = 0;
}
}
+ } else if (profile_is_sample_rate_valid(&device_info->profile, config->sample_rate)) {
+ in->config.rate = config->sample_rate;
}
} else if (profile_is_sample_rate_valid(&device_info->profile, config->sample_rate)) {
in->config.rate = config->sample_rate;