diff options
author | Xin Li <delphij@google.com> | 2021-10-07 23:50:38 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-10-07 23:50:38 +0000 |
commit | d2d37213cdc3d42eb3a586c32967a2220f481b82 (patch) | |
tree | 9c30a735dcf582b3da4cd815d7373da1e28b3769 /hal/audio_extn/usb.c | |
parent | 5e29fcd9a6dad5b1cd36dcf37a66dc16ed9b572b (diff) | |
parent | ebee23489af601f5d54ed016b4214badd862df74 (diff) | |
download | audio-d2d37213cdc3d42eb3a586c32967a2220f481b82.tar.gz |
Merge "Merge Android 12"android-s-v2-preview-2android-s-v2-preview-1android-s-v2-beta-2android-s-v2-preview-1
Diffstat (limited to 'hal/audio_extn/usb.c')
-rw-r--r-- | hal/audio_extn/usb.c | 4 |
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; } |