Advertising
- Something
- Thursday, March 15th, 2007 at 8:14:57am MDT
- Index: apps/debug_menu.c
- ===================================================================
- --- apps/debug_menu.c (revision 12088)
- +++ apps/debug_menu.c (working copy)
- @@ -1987,7 +1987,7 @@
- #ifdef HAVE_LCD_BITMAP
- lcd_setmargins(0, 0);
- #endif
- -
- + radio_power(true);
- while(1)
- {
- int row = 0;
- Index: firmware/export/config-h10.h
- ===================================================================
- --- firmware/export/config-h10.h (revision 12088)
- +++ firmware/export/config-h10.h (working copy)
- @@ -71,8 +71,9 @@
- #define AB_REPEAT_ENABLE 1
- /* FM Tuner */
- -/*#define CONFIG_TUNER TEA5767
- -#define CONFIG_TUNER_XTAL 32768 *//* TODO: what is this? */
- +#define CONFIG_TUNER TEA5767
- +#define CONFIG_TUNER_XTAL 32768 /* TODO: what is this? */
- +#define HAVE_TUNER_PWR_CTRL
- /* Define this for LCD backlight available */
- #define CONFIG_BACKLIGHT BL_H10 /* TODO: figure this out, probably not necessary
- Index: firmware/target/arm/audio-pp.c
- ===================================================================
- --- firmware/target/arm/audio-pp.c (revision 12088)
- +++ firmware/target/arm/audio-pp.c (working copy)
- @@ -33,6 +33,7 @@
- /* Prevent pops from unneeded switching */
- static int last_source = AUDIO_SRC_PLAYBACK;
- #ifdef CONFIG_TUNER
- + bool recording = flags & SRCF_RECORDING;
- static bool last_recording = false;
- #endif
- Index: firmware/target/arm/iriver/h10/power-h10.c
- ===================================================================
- --- firmware/target/arm/iriver/h10/power-h10.c (revision 12088)
- +++ firmware/target/arm/iriver/h10/power-h10.c (working copy)
- @@ -36,9 +36,7 @@
- bool charger_enabled;
- #endif
- -#if 0
- #ifdef CONFIG_TUNER
- -
- static bool powered = false;
- bool radio_powered()
- @@ -53,17 +51,16 @@
- #ifdef HAVE_TUNER_PWR_CTRL
- if (status)
- {
- - and_b(~0x04, &PADRL); /* drive PA2 low for tuner enable */
- - sleep(1); /* let the voltage settle */
- }
- else
- - or_b(0x04, &PADRL); /* drive PA2 high for tuner disable */
- #endif
- return old_status;
- }
- -
- #endif /* #ifdef CONFIG_TUNER */
- -#endif
- void power_init(void)
- {
- Index: firmware/drivers/fmradio_i2c.c
- ===================================================================
- --- firmware/drivers/fmradio_i2c.c (revision 12088)
- +++ firmware/drivers/fmradio_i2c.c (working copy)
- @@ -26,8 +26,26 @@
- #include "string.h"
- #if (CONFIG_TUNER & TEA5767)
- -#if (CONFIG_I2C == I2C_COLDFIRE)
- +#if CONFIG_I2C == I2C_PP5020
- +#include "i2c-pp5020.h"
- +int fmradio_i2c_write(unsigned char address, const unsigned char* buf,
- + int count)
- +{
- + int i;
- + for (i=0;i<count;i++){
- + pp_i2c_send(address, i,buf[i]);
- + }
- +
- + return 0;
- +}
- +int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
- +{
- + return i2c_readbytes(address, 0, count, buf);
- +}
- +
- +#elif (CONFIG_I2C == I2C_COLDFIRE)
- +
- #ifdef IAUDIO_X5
- #include "i2c-coldfire.h"
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
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.