File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -164,8 +164,8 @@ static const uint64_t samplerates[] = {
164164 SR_MHZ (8 ),
165165 SR_MHZ (12 ),
166166 SR_MHZ (16 ),
167+ SR_MHZ (32 ),
167168 SR_MHZ (24 ),
168- SR_MHZ (48 ),
169169};
170170
171171static gboolean is_plausible (const struct libusb_device_descriptor * des )
Original file line number Diff line number Diff line change @@ -98,7 +98,16 @@ static int command_start_acquisition(const struct sr_dev_inst *sdi)
9898
9999 delay = 0 ;
100100 cmd .flags = cmd .sample_delay_h = cmd .sample_delay_l = 0 ;
101- if ((SR_MHZ (48 ) % samplerate ) == 0 ) {
101+
102+ if ((devc -> profile -> dev_caps & DEV_CAPS_FX3 ) &&
103+ (SR_MHZ (192 ) % samplerate ) == 0 ) {
104+ cmd .flags = CMD_START_FLAGS_CLK_192MHZ ;
105+ delay = SR_MHZ (192 ) / samplerate - 1 ;
106+ if (delay > 0xffff )
107+ delay = 0 ;
108+ }
109+
110+ if (delay == 0 && (SR_MHZ (48 ) % samplerate ) == 0 ) {
102111 cmd .flags = CMD_START_FLAGS_CLK_48MHZ ;
103112 delay = SR_MHZ (48 ) / samplerate - 1 ;
104113 if (delay > MAX_SAMPLE_DELAY )
Original file line number Diff line number Diff line change 7272
7373#define CMD_START_FLAGS_CLK_30MHZ (0 << CMD_START_FLAGS_CLK_SRC_POS)
7474#define CMD_START_FLAGS_CLK_48MHZ (1 << CMD_START_FLAGS_CLK_SRC_POS)
75+ #define CMD_START_FLAGS_CLK_192MHZ (2 << CMD_START_FLAGS_CLK_SRC_POS)
7576
7677struct fx2lafw_profile {
7778 uint16_t vid ;
You can’t perform that action at this time.
0 commit comments