Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Something
Thursday, March 15th, 2007 at 2:14:57pm UTC 

  1. Index: apps/debug_menu.c
  2. ===================================================================
  3. --- apps/debug_menu.c   (revision 12088)
  4. +++ apps/debug_menu.c   (working copy)
  5. @@ -1987,7 +1987,7 @@
  6.  #ifdef HAVE_LCD_BITMAP
  7.      lcd_setmargins(0, 0);
  8.  #endif
  9. -
  10. +    radio_power(true);
  11.      while(1)
  12.      {
  13.          int row = 0;
  14. Index: firmware/export/config-h10.h
  15. ===================================================================
  16. --- firmware/export/config-h10.h        (revision 12088)
  17. +++ firmware/export/config-h10.h        (working copy)
  18. @@ -71,8 +71,9 @@
  19.  #define AB_REPEAT_ENABLE 1
  20.  
  21.  /* FM Tuner */
  22. -/*#define CONFIG_TUNER TEA5767
  23. -#define CONFIG_TUNER_XTAL  32768 *//* TODO: what is this? */
  24. +#define CONFIG_TUNER TEA5767
  25. +#define CONFIG_TUNER_XTAL  32768 /* TODO: what is this? */
  26. +#define HAVE_TUNER_PWR_CTRL
  27.  
  28.  /* Define this for LCD backlight available */
  29.  #define CONFIG_BACKLIGHT BL_H10 /* TODO: figure this out, probably not necessary
  30. Index: firmware/target/arm/audio-pp.c
  31. ===================================================================
  32. --- firmware/target/arm/audio-pp.c      (revision 12088)
  33. +++ firmware/target/arm/audio-pp.c      (working copy)
  34. @@ -33,6 +33,7 @@
  35.      /* Prevent pops from unneeded switching */
  36.      static int last_source = AUDIO_SRC_PLAYBACK;
  37.  #ifdef CONFIG_TUNER
  38. +    bool recording = flags & SRCF_RECORDING;
  39.      static bool last_recording = false;
  40.  #endif
  41.  
  42. Index: firmware/target/arm/iriver/h10/power-h10.c
  43. ===================================================================
  44. --- firmware/target/arm/iriver/h10/power-h10.c  (revision 12088)
  45. +++ firmware/target/arm/iriver/h10/power-h10.c  (working copy)
  46. @@ -36,9 +36,7 @@
  47.  bool charger_enabled;
  48.  #endif
  49.  
  50. -#if 0
  51.  #ifdef CONFIG_TUNER
  52. -
  53.  static bool powered = false;
  54.  
  55.  bool radio_powered()
  56. @@ -53,17 +51,16 @@
  57.  #ifdef HAVE_TUNER_PWR_CTRL
  58.      if (status)
  59.      {
  60. -        and_b(~0x04, &PADRL); /* drive PA2 low for tuner enable */
  61. -        sleep(1); /* let the voltage settle */
  62.      }
  63.      else
  64. -        or_b(0x04, &PADRL); /* drive PA2 high for tuner disable */
  65.  #endif
  66.      return old_status;
  67.  }
  68. -
  69.  #endif /* #ifdef CONFIG_TUNER */
  70. -#endif
  71.  
  72.  void power_init(void)
  73.  {
  74. Index: firmware/drivers/fmradio_i2c.c
  75. ===================================================================
  76. --- firmware/drivers/fmradio_i2c.c      (revision 12088)
  77. +++ firmware/drivers/fmradio_i2c.c      (working copy)
  78. @@ -26,8 +26,26 @@
  79.  #include "string.h"
  80.  
  81.  #if (CONFIG_TUNER & TEA5767)
  82. -#if (CONFIG_I2C == I2C_COLDFIRE)
  83. +#if CONFIG_I2C == I2C_PP5020
  84. +#include "i2c-pp5020.h"
  85. +int fmradio_i2c_write(unsigned char address, const unsigned char* buf,
  86. +                      int count)
  87. +{
  88. +    int i;
  89. +    for (i=0;i<count;i++){
  90. +        pp_i2c_send(address, i,buf[i]);
  91. +    }
  92. +   
  93. +    return 0;
  94. +}
  95.  
  96. +int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
  97. +{
  98. +    return i2c_readbytes(address, 0, count, buf);
  99. +}
  100. +
  101. +#elif (CONFIG_I2C == I2C_COLDFIRE)
  102. +
  103.  #ifdef IAUDIO_X5
  104.  #include "i2c-coldfire.h"
  105.  

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right worth-right