rtl_tcp: allow to set xtal frequencies

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Steve Markgraf 12 years ago
parent c5d47b7f04
commit 7ff4abd378
  1. 8
      src/rtl_tcp.c

@ -317,6 +317,14 @@ static void *command_worker(void *arg)
printf("set offset tuning %d\n", ntohl(cmd.param)); printf("set offset tuning %d\n", ntohl(cmd.param));
rtlsdr_set_offset_tuning(dev, ntohl(cmd.param)); rtlsdr_set_offset_tuning(dev, ntohl(cmd.param));
break; break;
case 0x0b:
printf("set rtl xtal %d\n", ntohl(cmd.param));
rtlsdr_set_xtal_freq(dev, ntohl(cmd.param), 0);
break;
case 0x0c:
printf("set tuner xtal %d\n", ntohl(cmd.param));
rtlsdr_set_xtal_freq(dev, 0, ntohl(cmd.param));
break;
default: default:
break; break;
} }

Loading…
Cancel
Save