summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorllololo <llololo@google.com>2021-04-28 10:17:20 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-28 10:17:20 +0000
commit718f9885ed421123b7367c494b3d420d8f211967 (patch)
tree7b2ec52c19e87bcf9eba5112413cb0a58f69e3be
parent12343fe01ffe8cead102fc4ab481dd7668e89429 (diff)
parent49b1536ed6ee60ab1bd652d23079a073d269dd61 (diff)
downloadaudio-android12L-d2-s5-release.tar.gz
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/qcom/audio/+/14276565 Change-Id: I9ff1e2601a30e2ac2657dc7cf9cbfd64c8984d1e
-rw-r--r--hal/audio_extn/usb.c4
1 files changed, 2 insertions, 2 deletions
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 @@ static int usb_get_capability(int type,
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 @@ static int usb_get_capability(int type,
// 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;
}