summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorKalimochoAz <calimochoazucarado@gmail.com>2012-06-06 17:35:56 +0200
committerBrint E. Kriebel <bkriebel@vmware.com>2012-07-11 12:00:39 -0600
commit68be6cd5fbf93beff28efcbb17094c687b21120e (patch)
tree58e5fd0263281d2f7e485629b28b4865d379e474 /audio
parentdc013924e93edc9e77e3edf9c9130a132a439b83 (diff)
downloaddevice_samsung_tuna-68be6cd5fbf93beff28efcbb17094c687b21120e.zip
device_samsung_tuna-68be6cd5fbf93beff28efcbb17094c687b21120e.tar.gz
device_samsung_tuna-68be6cd5fbf93beff28efcbb17094c687b21120e.tar.bz2
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
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
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