Loading hal/msm8916/platform.c +4 −4 Original line number Diff line number Diff line Loading @@ -2013,7 +2013,6 @@ static bool check_and_get_wsa_info(char *snd_card_name, int *wsaCount, } while ((tdirent = readdir(tdir))) { char buf[50]; struct dirent *tzdirent; DIR *tzdir = NULL; Loading @@ -2021,6 +2020,7 @@ static bool check_and_get_wsa_info(char *snd_card_name, int *wsaCount, if (!tzdir) continue; while ((tzdirent = readdir(tzdir))) { char buf[50] = {0}; if (strcmp(tzdirent->d_name, "type")) continue; snprintf(name, MAX_PATH, TZ_TYPE, tzn); Loading @@ -2028,12 +2028,12 @@ static bool check_and_get_wsa_info(char *snd_card_name, int *wsaCount, read_line_from_file(name, buf, sizeof(buf)); if (strstr(buf, file)) { wsa_count++; } tzn++; /*We support max only two WSA speakers*/ if (wsa_count == 2) break; } tzn++; } closedir(tzdir); } if (wsa_count > 0){ Loading Loading
hal/msm8916/platform.c +4 −4 Original line number Diff line number Diff line Loading @@ -2013,7 +2013,6 @@ static bool check_and_get_wsa_info(char *snd_card_name, int *wsaCount, } while ((tdirent = readdir(tdir))) { char buf[50]; struct dirent *tzdirent; DIR *tzdir = NULL; Loading @@ -2021,6 +2020,7 @@ static bool check_and_get_wsa_info(char *snd_card_name, int *wsaCount, if (!tzdir) continue; while ((tzdirent = readdir(tzdir))) { char buf[50] = {0}; if (strcmp(tzdirent->d_name, "type")) continue; snprintf(name, MAX_PATH, TZ_TYPE, tzn); Loading @@ -2028,12 +2028,12 @@ static bool check_and_get_wsa_info(char *snd_card_name, int *wsaCount, read_line_from_file(name, buf, sizeof(buf)); if (strstr(buf, file)) { wsa_count++; } tzn++; /*We support max only two WSA speakers*/ if (wsa_count == 2) break; } tzn++; } closedir(tzdir); } if (wsa_count > 0){ Loading