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
(cherry picked from https://android-review.googlesource.com/q/commit:abf24d3cc770f04b7ece1986fd51ce5db742a811)
Merged-In: Iebee2b269062609ff7bcd460f48714ca64980e68
Change-Id: Iebee2b269062609ff7bcd460f48714ca64980e68
1 file changed