audio_hw_usb: reduce the number of the retries in usb_get_capability reduce the number of the retries to avoid hitting timecheck timeout 5s. Bug: 172888755 Test: usb audio function simple test Change-Id: I0a30b3246e13e440acf89b6b9f05480ca796259b
diff --git a/hal/audio_extn/usb.c b/hal/audio_extn/usb.c index b0b5049..4bf6a32 100644 --- a/hal/audio_extn/usb.c +++ b/hal/audio_extn/usb.c
@@ -336,7 +336,7 @@ char *bit_width_str = NULL; struct usb_device_config * usb_device_info; bool check = false; - int tries=5; + int tries=3; memset(path, 0, sizeof(path)); ALOGV("%s: for %s", __func__, (type == USB_PLAYBACK) ? @@ -354,7 +354,7 @@ // TODO: figure up if this wait is needed any more while (tries--) { if (access(path, F_OK) < 0) { - ALOGW("stream %s doesn't exist retrying\n", path); + ALOGW("stream %s doesn't exist retrying %d more times\n", path, tries); sleep(1); continue; }