Commit graph

97 commits

Author SHA1 Message Date
Peter D'Hoye
ab90b1d55e Added bad filename protection when user enters an fm radio preset filename. Fixes bugreport 5137.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9795 a1c6a512-1295-4272-9138-f99709370657
2006-04-25 00:14:21 +00:00
Hristo Kovachev
f709ad77da FMRadio: Zero the presets struct on new "preset scan", also replace the hardcoded .name's length with a define
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9452 a1c6a512-1295-4272-9138-f99709370657
2006-04-03 10:06:39 +00:00
Hristo Kovachev
009853f40e Patch #2711 by Alexander Spyridakis with some changes by me: adds load/save of presets to different files;
Also fix the preset menu context menu not working on the remote


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9425 a1c6a512-1295-4272-9138-f99709370657
2006-04-02 12:23:08 +00:00
Dan Everton
b66477adcc Support the recording screen on the LCD remote. Also adds support for the peakmeter in the rremote WPS. Patch from Martin Scarratt (task 4818).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9246 a1c6a512-1295-4272-9138-f99709370657
2006-03-25 13:35:31 +00:00
Magnus Holmgren
4599ca3240 iRiver: Stop disabling the peak meter when stopping the radio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9137 a1c6a512-1295-4272-9138-f99709370657
2006-03-20 21:24:24 +00:00
Hristo Kovachev
3de0db0c3b Patch FS#4745 by Manuel Dejonghe 1) Get CPU out of idle mode on key press (on targets, supporting changing of the CPU freq), thus making the radio screen more responsive; 2) Mute the radio on startup or after pause, until the chip is tuned or a timeout expires (1, resp 2 sec)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8944 a1c6a512-1295-4272-9138-f99709370657
2006-03-07 11:49:06 +00:00
Peter D'Hoye
c7838b8418 Do not show peakmeter and recording time on radio screen for targets with software codec because this isn't implemented yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8897 a1c6a512-1295-4272-9138-f99709370657
2006-03-03 19:41:16 +00:00
Hristo Kovachev
db734b41d5 Patch #1403437 by Peter D'Hoye & Martin Scarratt: Recording gain.
Changes:
***1. all platforms:
1.1 corrects gain display bug;
1.2 allows combined setting of stereo gain without an extra
line on the display;

2. iRiver H1xx and H3xx specific:
2.1 correctly named the decimator variables, they were
called 'gain';
2.2 splitted decimator gain settings for mic and line-in so
that they are saved separately;
2.3 added combined analog and decimator gain setting giving a
smooth gain range with the best analog/decimator gain
combination


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8627 a1c6a512-1295-4272-9138-f99709370657
2006-02-08 13:08:55 +00:00
Linus Nielsen Feltzing
a4b15a4f1f H300 FM radio support, with help from Peter D'Hoye
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8237 a1c6a512-1295-4272-9138-f99709370657
2005-12-15 01:11:19 +00:00
Jens Arnold
2a31407513 Ondio FM: * Bugfix: Cancelling 'Auto Scan Presets' left the radio screen. * Put radio mode switch in radio menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8107 a1c6a512-1295-4272-9138-f99709370657
2005-11-29 15:10:07 +00:00
Kevin Ferrare
b363b2f934 oops ifdef error on FM recorder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8005 a1c6a512-1295-4272-9138-f99709370657
2005-11-20 01:35:20 +00:00
Kevin Ferrare
1a1abf25f4 removed old statusbar and buttonbar code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8004 a1c6a512-1295-4272-9138-f99709370657
2005-11-20 01:02:14 +00:00
Anton Oleynikov
c94557e0b9 refactored radio status code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7999 a1c6a512-1295-4272-9138-f99709370657
2005-11-19 19:23:44 +00:00
Anton Oleynikov
0afd9716a4 used generic yes/no dialog for confirmation of presets clearing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7996 a1c6a512-1295-4272-9138-f99709370657
2005-11-19 14:54:41 +00:00
Anton Oleynikov
d79f3a1e84 added "Auto scan presets" option to radio menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7917 a1c6a512-1295-4272-9138-f99709370657
2005-11-16 23:36:35 +00:00
Kevin Ferrare
e991beed6d replaced all the splash calls by gui_sync_splash, added some missing remote key in the playlist viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7909 a1c6a512-1295-4272-9138-f99709370657
2005-11-16 15:12:15 +00:00
Anton Oleynikov
697e832bef fm radio: new preset mode, new button assignment and remote support for iRiver,
misc clean up and improvements


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7849 a1c6a512-1295-4272-9138-f99709370657
2005-11-13 21:03:53 +00:00
Andy
f6da6d85b6 Removed monitor option from audio_set_recording_options and the global setting rec_monitor.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7821 a1c6a512-1295-4272-9138-f99709370657
2005-11-12 14:49:43 +00:00
Andy
e6e5496535 iRiver: Initial support for wav-recording in recording menu. Supports mic/line-in (and radio), monitor mode, time-splitting (and byte-splitting), pause/resume etc. Things todo: Prerecording, peakmeter (should be simple), frequency other than 44.1 kHz, etc..
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7818 a1c6a512-1295-4272-9138-f99709370657
2005-11-12 04:00:56 +00:00
Jens Arnold
8051a0b724 Sound settings rework: * Put all fixed parameters (unit, decimals, step, min, max, default, set function) for the individual settings into one structure array. * Use the new individual sound setting functions where appropriate. * Added dummy sound setting functions and defined the codec type for the sims. Fixes wrong sound settings ranges in the simulators. * Code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7770 a1c6a512-1295-4272-9138-f99709370657
2005-11-06 23:12:11 +00:00
Linus Nielsen Feltzing
8b9c64f19d iriver: Idle CPU in the FM radio screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7570 a1c6a512-1295-4272-9138-f99709370657
2005-09-29 11:19:55 +00:00
Dave Chapman
025873b3ac Enable FM presets for iriver. Add a preset via the "add" option in the radio menu, and press ON/PLAY button to bring up the list of presets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7540 a1c6a512-1295-4272-9138-f99709370657
2005-09-22 18:36:02 +00:00
Linus Nielsen Feltzing
4cd06c41f6 The status bas wasn't correctly redrawn in the FM radio screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7484 a1c6a512-1295-4272-9138-f99709370657
2005-09-06 21:01:35 +00:00
Jens Arnold
1e0b5aabcb Ondio FM button assignment: The recording screen now uses up/down to select the setting, and left/right to adjust it, like the recorders. Start/pause recording is short MODE. The radio screen now requires a MODE doubleclick to start recording. This should prevent unwanted recordings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7474 a1c6a512-1295-4272-9138-f99709370657
2005-09-05 19:17:23 +00:00
Jens Arnold
d6c054575b Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and SWCODEC, respectively.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
2005-08-29 21:15:27 +00:00
Jens Arnold
99a0598c28 Major peakmeter rework: * Changed set/get functions for dbfs mode to bool type. * Removed performance setting, leaving (slightly adapted) high performance mode only. * Refresh rate is always 20 Hz now. * Readout doesn't do an extra (hidden) peek, should allow for slightly better clip detection. * Brought back high performance peakmeter for recording. Peakmeter stops hogging the CPU when the disk is spinning; this is enough to avoid the performance problem when saving data. * Optimisations, code cleanup and code policeing. * (iriver) Reduced CPU load of peakmeter by not calculating excessive overlaps. ** Bumped config block version, so save your settings before upgrading.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7415 a1c6a512-1295-4272-9138-f99709370657
2005-08-29 20:07:17 +00:00
Jens Arnold
9a3d117c78 Const policed the radio menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7408 a1c6a512-1295-4272-9138-f99709370657
2005-08-27 11:03:41 +00:00
Linus Nielsen Feltzing
4021798aec FM radio: fix by Antonius Hellman, no more crash when loading preset files with more than 32 entries
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7398 a1c6a512-1295-4272-9138-f99709370657
2005-08-24 09:13:51 +00:00
Linus Nielsen Feltzing
82ac901095 iriver: Radio screen didn't properly filter stray FM_EXIT events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7349 a1c6a512-1295-4272-9138-f99709370657
2005-08-18 09:18:40 +00:00
Linus Nielsen Feltzing
604d59bc26 iriver: exit the FM screen (with FM audio on) with joystick push instead of Play
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7346 a1c6a512-1295-4272-9138-f99709370657
2005-08-18 07:01:18 +00:00
Linus Nielsen Feltzing
d3fde76fc7 FM radio simulation working again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7332 a1c6a512-1295-4272-9138-f99709370657
2005-08-16 06:50:25 +00:00
Linus Nielsen Feltzing
8c7589bc96 Very lame, initial support for FM radio on the iriver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7318 a1c6a512-1295-4272-9138-f99709370657
2005-08-13 17:35:02 +00:00
Linus Nielsen Feltzing
a26b153ec9 Made the FM frequency setting wrap around
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6869 a1c6a512-1295-4272-9138-f99709370657
2005-06-26 12:15:40 +00:00
Jens Arnold
24a1f94cd7 Fixed yellow FM builds, and changed the function type names according to the rockbox coding style.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6858 a1c6a512-1295-4272-9138-f99709370657
2005-06-24 23:06:06 +00:00
Jens Arnold
b4861738c9 Bugfix: debug_fm_detection was defined twice. Removed it, since it only had a meaning for the Samsung tuner chip and is thus no longer needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6411 a1c6a512-1295-4272-9138-f99709370657
2005-05-07 01:09:09 +00:00
Jens Arnold
c194fab162 FM preset menu: store current preset immediately after leaving.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6265 a1c6a512-1295-4272-9138-f99709370657
2005-04-10 20:26:19 +00:00
Jens Arnold
cef15c6efc FM preset menu: Set cursor to the current preset on enter. Added a generic function to the menu system which allows for setting the position.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6264 a1c6a512-1295-4272-9138-f99709370657
2005-04-10 17:36:55 +00:00
Linus Nielsen Feltzing
e1f70587ce More audio code restructuring, mostly renaming functions so far
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6247 a1c6a512-1295-4272-9138-f99709370657
2005-04-04 12:36:06 +00:00
Linus Nielsen Feltzing
d2041832cd Forgot to include sound.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6241 a1c6a512-1295-4272-9138-f99709370657
2005-04-01 14:09:41 +00:00
Linus Nielsen Feltzing
674eaca5ef Moved the mpeg_sound_xxx() functions to sound.c and renamed them to sound_xxx()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6240 a1c6a512-1295-4272-9138-f99709370657
2005-04-01 13:41:03 +00:00
Jens Arnold
59483d6768 Bugfix: Stop running recording when leaving the radio screen with the radio running (FM recorder: ON, Ondio: long OFF)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6156 a1c6a512-1295-4272-9138-f99709370657
2005-03-06 18:03:01 +00:00
Daniel Stenberg
6610f8e9bb fprintf() => fdprintf()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6032 a1c6a512-1295-4272-9138-f99709370657
2005-02-22 12:48:36 +00:00
Jens Arnold
ae45d970d8 Radio screen: status bar wasn't updated when prerecording buffer was filled and no button pressed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5513 a1c6a512-1295-4272-9138-f99709370657
2004-12-26 18:36:48 +00:00
Linus Nielsen Feltzing
47e8773939 An attempt to set the radio in a more defined state at boot
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5457 a1c6a512-1295-4272-9138-f99709370657
2004-11-22 06:34:14 +00:00
Jörg Hohensohn
c100a42ac0 Phew, all features available to Ondio, too. What an #ifdef monster. New feature: long select press on a preset opens a context menu to edit/delete. Since it's also useful to FMR, I made it available for that as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5313 a1c6a512-1295-4272-9138-f99709370657
2004-10-19 22:50:34 +00:00
Jörg Hohensohn
8b1c8c6e81 Ondio: inaccessible button actions are now in the menu (presets+add), preset editing is still missing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5312 a1c6a512-1295-4272-9138-f99709370657
2004-10-19 18:00:41 +00:00
Linus Nielsen Feltzing
4edbef5714 Fixed the FM preset menu button handling (again)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5308 a1c6a512-1295-4272-9138-f99709370657
2004-10-19 09:09:27 +00:00
Jörg Hohensohn
ef8d508d5a tuner cleanup + improvements:
- use sleep and powerdown for those who can
- philips station search works now


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5306 a1c6a512-1295-4272-9138-f99709370657
2004-10-19 08:20:38 +00:00
Jörg Hohensohn
6694212a6f minor touchup, to make the tuner interface independent from the IF
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5302 a1c6a512-1295-4272-9138-f99709370657
2004-10-18 07:58:59 +00:00
Jörg Hohensohn
ca45869a88 fix: the presence detection needs to power up the tuner first
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5299 a1c6a512-1295-4272-9138-f99709370657
2004-10-17 17:49:30 +00:00