From 68be6cd5fbf93beff28efcbb17094c687b21120e 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(-) (limited to 'audio') diff --git a/audio/audio_hw.c b/audio/audio_hw.c index b39fcd9..d1a8a88 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -778,7 +778,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