summaryrefslogtreecommitdiff
path: root/firmware/drivers/mas.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/mas.c')
-rw-r--r--firmware/drivers/mas.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/drivers/mas.c b/firmware/drivers/mas.c
index 891ceff18d..7c8b55c422 100644
--- a/firmware/drivers/mas.c
+++ b/firmware/drivers/mas.c
@@ -271,11 +271,15 @@ void mas_reset(void)
271 or_b(0x01, &PAIORH); 271 or_b(0x01, &PAIORH);
272 272
273#if CONFIG_HWCODEC == MAS3507D 273#if CONFIG_HWCODEC == MAS3507D
274 /* PB5 is "MAS enable". make it GPIO output and high */
275 PBCR2 &= ~0x0c00;
276 or_b(0x20, &PBIORL);
277 or_b(0x20, &PBDRL);
278
274 and_b(~0x01, &PADRH); 279 and_b(~0x01, &PADRH);
275 sleep(HZ/100); 280 sleep(HZ/100);
276 or_b(0x01, &PADRH); 281 or_b(0x01, &PADRH);
277 sleep(HZ/5); 282 sleep(HZ/5);
278
279#elif (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) 283#elif (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
280 if(old_recorder) 284 if(old_recorder)
281 { 285 {