Use requested sample rate when it matches device sample rate.
For input stream, the sample rate should be set as requested one if it matches the device sample rate and is valid. Bug: 282816698 Test: TH Change-Id: Iebee2b269062609ff7bcd460f48714ca64980e68
This commit is contained in:
parent
e8ab477900
commit
abf24d3cc7
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue