hal: Enable dynamic logging in audio_ext.
- Define C_FLAGS in audio_extn's make file so underlying files
can use dynamic logging.
- Add log related to sound card state change in audio_hw.c
Change-Id: Idbc937576ff9f444809c0241996d8996ae1d0e8f
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index a236f2c..50efd4d 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -10329,6 +10329,7 @@
pthread_mutex_lock(&adev->lock);
if (card == adev->snd_card || is_ext_device_status) {
if (is_snd_card_status && adev->card_status != status) {
+ ALOGD("%s card_status %d", __func__, status);
adev->card_status = status;
platform_snd_card_update(adev->platform, status);
audio_extn_fm_set_parameters(adev, parms);