diff options
Diffstat (limited to 'firmware/drivers/tuner/ipod_remote_tuner.c')
-rw-r--r-- | firmware/drivers/tuner/ipod_remote_tuner.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/drivers/tuner/ipod_remote_tuner.c b/firmware/drivers/tuner/ipod_remote_tuner.c index 9822c07c6b..e770b9dbe4 100644 --- a/firmware/drivers/tuner/ipod_remote_tuner.c +++ b/firmware/drivers/tuner/ipod_remote_tuner.c | |||
@@ -116,7 +116,8 @@ void rmt_tuner_sleep(int state) | |||
116 | unsigned char data1[] = {0x07, 0x24, 0x06 }; | 116 | unsigned char data1[] = {0x07, 0x24, 0x06 }; |
117 | iap_send_pkt(data1, sizeof(data1)); | 117 | iap_send_pkt(data1, sizeof(data1)); |
118 | /* set volume */ | 118 | /* set volume */ |
119 | unsigned char data2[] = {0x03, 0x09, 0x04, 0x00, 0x77 }; | 119 | unsigned char data2[] = {0x03, 0x09, 0x04, 0x00, 0x00 }; |
120 | data2[4] = (char)((global_settings.volume+58) * 4); | ||
120 | iap_send_pkt(data2, sizeof(data2)); | 121 | iap_send_pkt(data2, sizeof(data2)); |
121 | /* set rds on */ | 122 | /* set rds on */ |
122 | unsigned char data3[] = {0x07, 0x20, 0x40, 0x00, 0x00, 0x10 }; | 123 | unsigned char data3[] = {0x07, 0x20, 0x40, 0x00, 0x00, 0x10 }; |
@@ -254,7 +255,9 @@ void set_mono(int value) | |||
254 | 255 | ||
255 | if (value != mono_mode) | 256 | if (value != mono_mode) |
256 | { | 257 | { |
257 | tuner_param |= 0x10; | 258 | tuner_param &= 0xEF; |
259 | if (value == 1) | ||
260 | tuner_param |= 0x10; | ||
258 | rmt_tuner_set_param(tuner_param); | 261 | rmt_tuner_set_param(tuner_param); |
259 | sleep(HZ/100); | 262 | sleep(HZ/100); |
260 | mono_mode = value; | 263 | mono_mode = value; |