diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-08 04:37:36 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-08 04:37:36 +0000 |
commit | a8255817124a30f72c4e513d21d7942ca51ca2ab (patch) | |
tree | 8c013069e7442e5c4e240b876dccf71f6de28ee2 | |
parent | 1744d4ed96b93f7d402065841683f05238e51acd (diff) | |
parent | 643e59a3056ea3f1fd4e791a818229fbb42cabf7 (diff) | |
download | libhardware-a8255817124a30f72c4e513d21d7942ca51ca2ab.tar.gz |
Snap for 10460766 from 643e59a3056ea3f1fd4e791a818229fbb42cabf7 to mainline-healthfitness-releaseaml_hef_341717050aml_hef_341613000aml_hef_341512030aml_hef_341415040aml_hef_341311010aml_hef_341114030android14-mainline-healthfitness-release
Change-Id: I34f83c1249d0c8baed7362e3604685bef36041f4
-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; |