mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix LV24020 tuner chip volume level definition (found by cppcheck)
Change-Id: I328cfbd7c9fc6295db2e62f6174f8f4405e281a8
This commit is contained in:
parent
0de2a85ae1
commit
9b8f11d94a
1 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ static int fd_log = -1;
|
||||||
#define TONE_LVL_SET(x) ((x) << 4)
|
#define TONE_LVL_SET(x) ((x) << 4)
|
||||||
#define VOL_LVL(x) ((x) & 0xf)
|
#define VOL_LVL(x) ((x) & 0xf)
|
||||||
#define VOL_LVL_GET(x) ((x) & 0xf)
|
#define VOL_LVL_GET(x) ((x) & 0xf)
|
||||||
#define VOL_LVL_SET(x) ((x) << 4)
|
#define VOL_LVL_SET(x) ((x) << 0)
|
||||||
|
|
||||||
/* W */
|
/* W */
|
||||||
#define AUDIO_CTRL2 (0x0a + BLK2_START)
|
#define AUDIO_CTRL2 (0x0a + BLK2_START)
|
||||||
|
@ -554,7 +554,7 @@ static void set_frequency(int freq)
|
||||||
*
|
*
|
||||||
* For example: when the IF frequency of LV2400x is preset at 110 kHz,
|
* For example: when the IF frequency of LV2400x is preset at 110 kHz,
|
||||||
* it must be tuned at 88.51 MHz to receive the radio station at 88.4 MHz.
|
* it must be tuned at 88.51 MHz to receive the radio station at 88.4 MHz.
|
||||||
* -- AN2400S04@ – V0.4
|
* -- AN2400S04@ \96 V0.4
|
||||||
*/
|
*/
|
||||||
freq += if_set;
|
freq += if_set;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue