diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:26:22 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:26:22 +0000 |
commit | fabf9ded8624320e7b6de8c65c11fc5a1001d163 (patch) | |
tree | 8c013069e7442e5c4e240b876dccf71f6de28ee2 | |
parent | 9eca9416dafe0b9526502441092418540d3f5d0c (diff) | |
parent | 643e59a3056ea3f1fd4e791a818229fbb42cabf7 (diff) | |
download | libhardware-aml_tz5_341510010.tar.gz |
Snap for 10453563 from 643e59a3056ea3f1fd4e791a818229fbb42cabf7 to mainline-tzdata5-releaseaml_tz5_341510070aml_tz5_341510050aml_tz5_341510010aml_tz5_341510010
Change-Id: I282178f871a412753f1a6422f46a63fcebc4a2ba
-rw-r--r-- | modules/usbaudio/audio_hal.c | 2 |
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; |