Merge "Use requested sample rate when it matches device sample rate."
diff --git a/modules/usbaudio/audio_hal.c b/modules/usbaudio/audio_hal.c
index 16065e2..57f523b 100644
--- a/modules/usbaudio/audio_hal.c
+++ b/modules/usbaudio/audio_hal.c
@@ -1514,6 +1514,8 @@
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;