From 1003d7ddb93fbf4ef238404f9a69651948c1389c Mon Sep 17 00:00:00 2001 From: KalimochoAz Date: Wed, 6 Jun 2012 17:35:56 +0200 Subject: Correct toroplus detection in audio library Since that was incorrectly detected, it was failing to use toro audio settings and was using maguro ones Change-Id: I0a5524011365e3ef39ab110b0e608dbce9edbae6 --- audio/audio_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 310bce7..bb2235c 100755 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -577,7 +577,7 @@ static int is_device_toro(void) property_get(PRODUCT_DEVICE_PROPERTY, property, PRODUCT_DEVICE_TORO); /* return true if the property matches the given value */ - return strcmp(property, PRODUCT_DEVICE_TORO) == 0; + return strncmp(property, PRODUCT_DEVICE_TORO, 4) == 0; } /* The enable flag when 0 makes the assumption that enums are disabled by -- cgit v1.1