diff options
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c index 80c9d9149a..ba62ebf59c 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/fmradio-i2c-fuzeplus.c | |||
@@ -113,10 +113,11 @@ static struct semaphore rds_sema; | |||
113 | static uint32_t rds_stack[DEFAULT_STACK_SIZE / sizeof(uint32_t)]; | 113 | static uint32_t rds_stack[DEFAULT_STACK_SIZE / sizeof(uint32_t)]; |
114 | 114 | ||
115 | /* RDS GPIO interrupt handler */ | 115 | /* RDS GPIO interrupt handler */ |
116 | static void stc_rds_callback(int bank, int pin) | 116 | static void stc_rds_callback(int bank, int pin, intptr_t user) |
117 | { | 117 | { |
118 | (void) bank; | 118 | (void) bank; |
119 | (void) pin; | 119 | (void) pin; |
120 | (void) user; | ||
120 | 121 | ||
121 | semaphore_release(&rds_sema); | 122 | semaphore_release(&rds_sema); |
122 | } | 123 | } |
@@ -132,7 +133,7 @@ static void NORETURN_ATTR rds_thread(void) | |||
132 | if(si4700_rds_read_raw(rds_data) && rds_process(rds_data)) | 133 | if(si4700_rds_read_raw(rds_data) && rds_process(rds_data)) |
133 | si4700_rds_set_event(); | 134 | si4700_rds_set_event(); |
134 | /* renable callback */ | 135 | /* renable callback */ |
135 | imx233_pinctrl_setup_irq(2, 27, true, true, false, &stc_rds_callback); | 136 | imx233_pinctrl_setup_irq(2, 27, true, true, false, &stc_rds_callback, 0); |
136 | } | 137 | } |
137 | } | 138 | } |
138 | 139 | ||
@@ -145,11 +146,11 @@ void si4700_rds_powerup(bool on) | |||
145 | imx233_pinctrl_set_function(2, 27, PINCTRL_FUNCTION_GPIO); | 146 | imx233_pinctrl_set_function(2, 27, PINCTRL_FUNCTION_GPIO); |
146 | imx233_pinctrl_enable_gpio(2, 27, false); | 147 | imx233_pinctrl_enable_gpio(2, 27, false); |
147 | /* pin is set to 0 when an RDS packet has arrived */ | 148 | /* pin is set to 0 when an RDS packet has arrived */ |
148 | imx233_pinctrl_setup_irq(2, 27, true, true, false, &stc_rds_callback); | 149 | imx233_pinctrl_setup_irq(2, 27, true, true, false, &stc_rds_callback, 0); |
149 | } | 150 | } |
150 | else | 151 | else |
151 | { | 152 | { |
152 | imx233_pinctrl_setup_irq(2, 27, false, false, false, NULL); | 153 | imx233_pinctrl_setup_irq(2, 27, false, false, false, NULL, 0); |
153 | imx233_pinctrl_release(2, 27, "tuner stc/rds"); | 154 | imx233_pinctrl_release(2, 27, "tuner stc/rds"); |
154 | } | 155 | } |
155 | } | 156 | } |