hal: fix input stream open fail for AUDIO_SOURCE_VOICE_COMMUNICATION

When input stream starts, if no channel mask set, channel mask will
be set to STEREO by default, causing input stream starts fail in AHAL
for AUDIO_SOURCE_VOICE_COMMUNICATION. This is due to the channel mask
is not supported.

Fix this by avoid return error code. And use default record if input
configuration is not valid.

CRs-Fixed: 2225086
Change-Id: Id4f95a3b9dbbfaada7af159b48efb3208436000c
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index fa83205..6b950d3 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -6639,9 +6639,9 @@
                                                   DEFAULT_VOIP_BUF_DURATION_MS,
                                                   DEFAULT_VOIP_BIT_DEPTH_BYTE)/2;
     } else {
-        if (!valid_ch) config->channel_mask = 1;
-        if (!valid_rate) config->sample_rate = 48000;
-        return -EINVAL;
+        ALOGW("%s No valid input in voip, use defaults"
+               "sample rate %u, channel mask 0x%X",
+               __func__, config->sample_rate, in->channel_mask);
     }
     in->config.rate = config->sample_rate;
     in->sample_rate = config->sample_rate;