APM: Valid sr and ch shouldn't be overriden

Valid sample rates and channels are overriden when open fails.
The fix is to check if they are within the set.

Bug: 287528103
Change-Id: I1f064b83226247d09d1d84f3cf80793c81e488e2
Test: OboeTester Test Input/Output
1 file changed