Guest User

Untitled

a guest
Jun 5th, 2024
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.46 KB | None | 0 0
  1. diff --git a/driver/isdb2056_device.c b/driver/isdb2056_device.c
  2. index 95a5837..ad8a716 100644
  3. --- a/driver/isdb2056_device.c
  4. +++ b/driver/isdb2056_device.c
  5. @@ -514,11 +514,11 @@ static int isdb2056_chrdev_tune(struct ptx_chrdev *chrdev,
  6.             break;
  7.         }
  8.  
  9. -       ret = tc90522_write_reg(&chrdev2056->tc90522_s, 0x07, 0x77);
  10. +       ret = tc90522_write_reg(&chrdev2056->tc90522_s0, 0x07, 0x77);
  11.         if (ret)
  12.             break;
  13.  
  14. -       ret = tc90522_write_reg(&chrdev2056->tc90522_s, 0x08, 0x10);
  15. +       ret = tc90522_write_reg(&chrdev2056->tc90522_s0, 0x08, 0x37);
  16.         if (ret)
  17.             break;
  18.  
  19. @@ -885,6 +885,11 @@ static int isdb2056_device_load_config(struct isdb2056_device *isdb2056,
  20.     chrdev2056->tc90522_t.i2c_addr = 0x10;
  21.     chrdev2056->tc90522_t.is_secondary = false;
  22.  
  23. +   chrdev2056->tc90522_s0.dev = dev;
  24. +   chrdev2056->tc90522_s0.i2c = &it930x->i2c_master[2];
  25. +   chrdev2056->tc90522_s0.i2c_addr = 0x11;
  26. +   chrdev2056->tc90522_s0.is_secondary = false;
  27. +
  28.     chrdev2056->tc90522_s.dev = dev;
  29.     chrdev2056->tc90522_s.i2c = &it930x->i2c_master[2];
  30.     chrdev2056->tc90522_s.i2c_addr = 0x13;
  31. diff --git a/driver/isdb2056_device.h b/driver/isdb2056_device.h
  32. index 23bf872..509de82 100644
  33. --- a/driver/isdb2056_device.h
  34. +++ b/driver/isdb2056_device.h
  35. @@ -26,6 +26,7 @@ struct isdb2056_chrdev {
  36.     struct ptx_chrdev *chrdev;
  37.     struct tc90522_demod tc90522_t;
  38.     struct tc90522_demod tc90522_s;
  39. +   struct tc90522_demod tc90522_s0;
  40.     struct r850_tuner r850;
  41.     struct rt710_tuner rt710;
  42.  };
  43.  
Advertisement
Add Comment
Please, Sign In to add comment