FS#8764 - Auto mute weak stations
|
DetailsHi there,
first of all: this is my first contribution to rockbox and I tried my best to make myself familiar with the way things work there. I am sure, not everything is where it belongs. Please help me to get things in order :). second: thanks to the author of Patch The purpose of this patch is to watch the tuner reported field strength (estimate) and mute, when it drops below a customizable threshold. Wether muting or not as well as the threshold are customizable in the fm tuner menu. It should not interfere with manual muting and should not affect recording (i didn't test that yet). THe threshold is specified in pseudo-dBuV. It also adjusts frequency display to display as MMM.KKK instead of MMM.KK. This is for people who adjust region settings and channel widths. My testing conditions were limited to the sansa c250. This code should not break anything. I did a testbuild for some iPods (without tuner) that compiled cleanly. Simulator also works. Currently only english and german translation are done. User guide: This patch conditionally adds 1 or 2 lines to the tuner main window that look like this: Sig: [-M] -235dBuV Automute below -555dBuV The second line is only displayed if automute is enabled. The first line shows the status of the tuner. The 2 characters in the braces exlain as [ab]: a: either 'O' or '-' 'O': current field strength is above threshold '-': current field strength is equal to or below threshold b: either 'M' or '-' 'M': will mute on or below threshold '-': automute disabled. (both are only updated on field strength change) The second line should be selfexplaining, same for the menu entries. Request for comments! |
this is tested up to r16718. This is the current revision at the time of writing.
FS#8151. This is built into this patch with minor modifications and NOT needed for this to work!if so, i will just wrap everything into a define for the LV24020LP...
attached is a version that should disable all muting stuff on non LV24020LP tuners.