Merge "Use requested sample rate when it matches device sample rate." am: c0a81b9dc6
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/2592208 Change-Id: I8e9afe8823aefcdef026d8cc6562713e0f6d8b8f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
17c0d514dc
1 changed files with 2 additions and 0 deletions
|
@ -1514,6 +1514,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;
|
||||
|
|
Loading…
Reference in a new issue