summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2013-03-24 16:03:31 +0100
committerBertrik Sikken <bertrik@sikken.nl>2013-03-24 16:03:31 +0100
commit9b8f11d94ab2c36dce5fe3ab46d9fd113d9c6e9c (patch)
tree601d7b49b65c455ed2db125fc5042184abd849f2
parent0de2a85ae1efd9cece7686321ea185ae4912baa1 (diff)
downloadrockbox-9b8f11d94ab2c36dce5fe3ab46d9fd113d9c6e9c.tar.gz
rockbox-9b8f11d94ab2c36dce5fe3ab46d9fd113d9c6e9c.zip
Fix LV24020 tuner chip volume level definition (found by cppcheck)
Change-Id: I328cfbd7c9fc6295db2e62f6174f8f4405e281a8
-rw-r--r--firmware/drivers/tuner/lv24020lp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/tuner/lv24020lp.c b/firmware/drivers/tuner/lv24020lp.c
index 533445f110..bb137d60ff 100644
--- a/firmware/drivers/tuner/lv24020lp.c
+++ b/firmware/drivers/tuner/lv24020lp.c
@@ -243,7 +243,7 @@ static int fd_log = -1;
243 #define TONE_LVL_SET(x) ((x) << 4) 243 #define TONE_LVL_SET(x) ((x) << 4)
244 #define VOL_LVL(x) ((x) & 0xf) 244 #define VOL_LVL(x) ((x) & 0xf)
245 #define VOL_LVL_GET(x) ((x) & 0xf) 245 #define VOL_LVL_GET(x) ((x) & 0xf)
246 #define VOL_LVL_SET(x) ((x) << 4) 246 #define VOL_LVL_SET(x) ((x) << 0)
247 247
248/* W */ 248/* W */
249#define AUDIO_CTRL2 (0x0a + BLK2_START) 249#define AUDIO_CTRL2 (0x0a + BLK2_START)
@@ -554,7 +554,7 @@ static void set_frequency(int freq)
554 * 554 *
555 * For example: when the IF frequency of LV2400x is preset at 110 kHz, 555 * For example: when the IF frequency of LV2400x is preset at 110 kHz,
556 * it must be tuned at 88.51 MHz to receive the radio station at 88.4 MHz. 556 * it must be tuned at 88.51 MHz to receive the radio station at 88.4 MHz.
557 * -- AN2400S04@ V0.4 557 * -- AN2400S04@ \96 V0.4
558 */ 558 */
559 freq += if_set; 559 freq += if_set;
560 560