diff options
author | KalimochoAz <calimochoazucarado@gmail.com> | 2012-06-06 17:35:56 +0200 |
---|---|---|
committer | KalimochoAz <calimochoazucarado@gmail.com> | 2012-06-06 17:35:56 +0200 |
commit | 1003d7ddb93fbf4ef238404f9a69651948c1389c (patch) | |
tree | badd571c65c4ee6e06d699d87a9a7c39ec473f53 | |
parent | 6facce5ad2d841cf585b5825ca9aa95a351cf047 (diff) | |
download | device_samsung_tuna-1003d7ddb93fbf4ef238404f9a69651948c1389c.zip device_samsung_tuna-1003d7ddb93fbf4ef238404f9a69651948c1389c.tar.gz device_samsung_tuna-1003d7ddb93fbf4ef238404f9a69651948c1389c.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
-rwxr-xr-x | audio/audio_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |