hal: fix for open input failure while SSR is not enabled.
- Do not return failure if SSR is not enabled.
Change-Id: I49d1e47b700165f8d9fd073792eeef57b40a5cb4
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 6f9ee06..e84ac68 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2956,8 +2956,7 @@
goto err_open;
}
} else {
- ret = -EINVAL;
- goto err_open;
+ ALOGW("%s: surround sound recording is not supported", __func__);
}
} else if (audio_extn_compr_cap_enabled() &&
audio_extn_compr_cap_format_supported(config->format) &&