hal: fix voip usecase selection for voice_tx path

Earlier commit was not handled completely proper.Hence addit new one.

Some VoIP clients may choose to open the input streams as soon as the phone
state is set to MODE_RINGTONE to allow lower start latency when the call
is connected. In such situation dev mode will not be still set to
MODE_IN_COMMUNICATION, hence adding check for audio source as well.

Change-Id: If69aac5087f8a51fd2a0936a043f8359d1302496
1 file changed