revert change, fixed in hardware

This commit is contained in:
rtlsdrblog 2023-05-16 14:52:27 +12:00
parent c62238d98a
commit 2a568c7948
2 changed files with 4 additions and 7 deletions

View File

@ -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 //16000000 #define R828D_XTAL_FREQ 28800000 //28800000 //16000000
#define R82XX_CHECK_ADDR 0x00 #define R82XX_CHECK_ADDR 0x00
#define R82XX_CHECK_VAL 0x69 #define R82XX_CHECK_VAL 0x69

View File

@ -277,12 +277,9 @@ static int r82xx_write(struct r82xx_priv *priv, uint8_t reg, const uint8_t *val,
if (rc != size + 1) { if (rc != size + 1) {
fprintf(stderr, "%s: i2c wr failed=%d reg=%02x len=%d\n", fprintf(stderr, "%s: i2c wr failed=%d reg=%02x len=%d\n",
__FUNCTION__, rc, reg, size); __FUNCTION__, rc, reg, size);
// R828D causes an error on reg 0x0c and 0x10, and this causes the init to fail if (rc < 0)
// But if we just ignore the errors, eventhing works fine. return rc;
// TODO: Look into why 0x0C and 0x10 cause a i2c wr failed=-1 error with the R828D return -1;
//if (rc < 0)
// return rc;
//return -1;
} }
reg += size; reg += size;