Rockbox Development > Feature Ideas
Disable Radio?
cool_walking_:
Tried that first, but a bunch of code in rockbox/firmware/target/arm/sandisk, I think, didn't like that. Doing the above gets it to compile, at least. I don't have my e200 on me, so I couldn't actually test it.
Llorean:
Did you compile in a different folder than usual (or make veryclean)?
cool_walking_:
Yes, a new directory. I've just retraced my steps. Above, I gave the wrong folder (rockbox/firmware/target/arm/sandisk) for the error messages from removing that define.
Here are the errors from removing #define CONFIG_TUNER LV24020LP from firmware/export/config-e200.h
--- Code: ---...
CC apps/menus/playlist_menu.c
CC apps/menus/recording_menu.c
/home/anthony/rockbox/apps/menus/recording_menu.c: In function ‘recsource_func’:
/home/anthony/rockbox/apps/menus/recording_menu.c:89: error: ‘LANG_FM_RADIO’ undeclared (first use in this function)
/home/anthony/rockbox/apps/menus/recording_menu.c:89: error: (Each undeclared identifier is reported only once
/home/anthony/rockbox/apps/menus/recording_menu.c:89: error: for each function it appears in.)
/home/anthony/rockbox/apps/menus/recording_menu.c:89: warning: missing initializer
/home/anthony/rockbox/apps/menus/recording_menu.c:89: warning: (near initialization for ‘names[1].string’)
/home/anthony/rockbox/apps/menus/recording_menu.c:95: warning: implicit declaration of function ‘radio_hardware_present’
make: *** [/home/anthony/build-sansae200/apps/menus/recording_menu.o] Error 1
rm /home/anthony/build-sansae200/apps/bitmaps/native/usblogo.128x37x16.c /home/anthony/build-sansae200/apps/bitmaps/native/default_icons.6x8x16.c /home/anthony/build-sansae200/apps/bitmaps/native/rockboxlogo.176x54x16.c
--- End code ---
So then I took a punt and also removed #define HAVE_TUNER_PWR_CTRL and | SRC_CAP_FMRADIO from config-e200.h, and got the following. The first time, I didn't start again with a different directory at this point, but when retracing my steps just now, I did (or rather, deleted and recreated the same directory name), with the same effect.
--- Code: ---...
CC firmware/target/arm/sandisk/sansa-e200/powermgmt-e200.c
CC firmware/target/arm/sandisk/audio-c200_e200.c
/home/anthony/rockbox/firmware/target/arm/sandisk/audio-c200_e200.c: In function ‘audio_input_mux’:
/home/anthony/rockbox/firmware/target/arm/sandisk/audio-c200_e200.c:72: error: ‘AUDIO_SRC_FMRADIO’ undeclared (first use in this function)
/home/anthony/rockbox/firmware/target/arm/sandisk/audio-c200_e200.c:72: error: (Each undeclared identifier is reported only once
/home/anthony/rockbox/firmware/target/arm/sandisk/audio-c200_e200.c:72: error: for each function it appears in.)
make: *** [/home/anthony/build-sansae200/firmware/target/arm/sandisk/audio-c200_e200.o] Error 1
rm /home/anthony/build-sansae200/apps/bitmaps/native/usblogo.128x37x16.c /home/anthony/build-sansae200/apps/bitmaps/native/default_icons.6x8x16.c /home/anthony/build-sansae200/apps/bitmaps/native/rockboxlogo.176x54x16.c
anthony@blahblah:~/build-sansae200$
--- End code ---
So then I gave up that route and removed the #if CONFIG_TUNERs from root_menu.c, which worked.
Gareth Schakel:
I'm probably going to sound like a moron here, but: you could also try building an fmpresets file that contains only the stations you want them listening too... i believe the format is "XXXX000000:STNM Station Name" where the Xs represent the frequency, and STNM the call letters
AlexP:
It is trivially easy (one button press) to switch from preset to manual mode, so that on its own will not help I don't think.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version