rtl_tcp: allow to set xtal frequencies

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2012-10-14 20:39:09 +02:00
parent c5d47b7f04
commit 7ff4abd378

View File

@ -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;
} }