hal: add device compare util for type and address
Add device comparasion utility for type and
address validation within device list.
Update bus device and address check with this
for audio port gain configuration on automotive
platform.
Change-Id: Ic2d4522ecb61179198766e2bb8e2d644b3a3d950
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 8d768ce..29b17ac 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -7603,10 +7603,7 @@
ret = -EINVAL;
goto error_open;
}
- /* save car audio stream and address for bus device */
- strlcpy(out->address, address, AUDIO_DEVICE_MAX_ADDRESS_LEN);
- ALOGV("%s: address %s, car_audio_stream %x",
- __func__, out->address, out->car_audio_stream);
+ ALOGV("%s: car_audio_stream %x", __func__, out->car_audio_stream);
}
/* Check for VOIP usecase */