File: 0010-bugfix.patch

package info (click to toggle)
airspyone-host 1.0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,200 kB
  • sloc: ansic: 6,550; sh: 31; xml: 20; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 88eefc2adc428dce85e4b79dd7a611613924df41 Mon Sep 17 00:00:00 2001
From: AlexandreRouma <alexandre.rouma@gmail.com>
Date: Fri, 2 Sep 2022 01:48:03 +0200
Subject: [PATCH 10/29] bugfix

---
 libairspy/src/airspy.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libairspy/src/airspy.c b/libairspy/src/airspy.c
index fa04e71..aaec778 100644
--- a/libairspy/src/airspy.c
+++ b/libairspy/src/airspy.c
@@ -953,6 +953,11 @@ int airspy_list_devices(uint64_t *serials, int count)
 		memset(serials, 0, sizeof(uint64_t) * count);
 	}
 
+#ifdef __ANDROID__
+	// LibUSB does not support device discovery on android
+	libusb_set_option(NULL, LIBUSB_OPTION_NO_DEVICE_DISCOVERY, NULL);
+#endif
+
 	if (libusb_init(&context) != 0)
 	{
 		return AIRSPY_ERROR_LIBUSB;
-- 
2.47.3