mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-29 04:17:16 +01:00
add missing code + make standard r828d work
This commit is contained in:
parent
7700ec324d
commit
b8be1be937
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#define R820T_I2C_ADDR 0x34
|
#define R820T_I2C_ADDR 0x34
|
||||||
#define R828D_I2C_ADDR 0x74
|
#define R828D_I2C_ADDR 0x74
|
||||||
#define R828D_XTAL_FREQ 28800000 //28800000 //16000000
|
#define R828D_XTAL_FREQ 16000000
|
||||||
|
|
||||||
#define R82XX_CHECK_ADDR 0x00
|
#define R82XX_CHECK_ADDR 0x00
|
||||||
#define R82XX_CHECK_VAL 0x69
|
#define R82XX_CHECK_VAL 0x69
|
||||||
|
@ -1603,6 +1603,9 @@ int rtlsdr_open(rtlsdr_dev_t **out_dev, uint32_t index)
|
|||||||
rtlsdr_init_baseband(dev);
|
rtlsdr_init_baseband(dev);
|
||||||
dev->dev_lost = 0;
|
dev->dev_lost = 0;
|
||||||
|
|
||||||
|
/* Get device manufacturer and product id */
|
||||||
|
r = rtlsdr_get_usb_strings(dev, dev->manufact, dev->product, NULL);
|
||||||
|
|
||||||
/* Probe tuners */
|
/* Probe tuners */
|
||||||
rtlsdr_set_i2c_repeater(dev, 1);
|
rtlsdr_set_i2c_repeater(dev, 1);
|
||||||
|
|
||||||
@ -1672,6 +1675,7 @@ found:
|
|||||||
// If NOT an RTL-SDR Blog V4, set typical R828D 16 MHz freq. Otherwise, keep at 28.8 MHz.
|
// If NOT an RTL-SDR Blog V4, set typical R828D 16 MHz freq. Otherwise, keep at 28.8 MHz.
|
||||||
if (!(rtlsdr_check_dongle_model(dev, "RTLSDRBlog", "Blog V4")))
|
if (!(rtlsdr_check_dongle_model(dev, "RTLSDRBlog", "Blog V4")))
|
||||||
{
|
{
|
||||||
|
fprintf(stdout, "setting 16mhz");
|
||||||
dev->tun_xtal = R828D_XTAL_FREQ;
|
dev->tun_xtal = R828D_XTAL_FREQ;
|
||||||
}
|
}
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
|
Loading…
Reference in New Issue
Block a user