libaudiohal: do not erase port configs if resetting fails

If the resetAudioPortConfig() returns failure, do not erase its
port configs in AIDL. Otherwise, the config of the framework and
HAL will not match, and the audio patch will never be reset properly.

Bug: 348099828
Test: repro steps from the bug
Change-Id: I69ba25bc84baff1d1f2d11533ab8bbe2c7bb0889
1 file changed