From b66de11664af64e54acd69051b46dc77a0f72c18 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 28 Feb 2014 23:46:08 +0100 Subject: [PATCH] PANDORA: No mic on Pandora for now --- core/hw/maple/maple_devs.cpp | 8 ++++++-- core/hw/maple/maple_devs.h | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) mode change 100644 => 100755 core/hw/maple/maple_devs.h diff --git a/core/hw/maple/maple_devs.cpp b/core/hw/maple/maple_devs.cpp index 49ef11eb7..2a2b6cf4b 100755 --- a/core/hw/maple/maple_devs.cpp +++ b/core/hw/maple/maple_devs.cpp @@ -547,7 +547,9 @@ struct maple_sega_vmu: maple_base } } config->SetImage(lcd_data_decoded); +#ifndef TARGET_PANDORA push_vmu_screen(lcd_data_decoded); +#endif #if 0 // Update LCD window if (!dev->lcd.visible) @@ -799,11 +801,13 @@ struct maple_microphone: maple_base w8(0x04);//status (just the bit for recording) w8(0x0f);//gain (default) w8(0);//exp ? - +#ifndef TARGET_PANDORA if(get_mic_data(micdata)){ w8(240);//ct (240 samples) wptr(micdata, SIZE_OF_MIC_DATA); - }else{ + }else +#endif + { w8(0); } diff --git a/core/hw/maple/maple_devs.h b/core/hw/maple/maple_devs.h old mode 100644 new mode 100755 index 7d2146548..c61b77586 --- a/core/hw/maple/maple_devs.h +++ b/core/hw/maple/maple_devs.h @@ -30,5 +30,7 @@ struct maple_device maple_device* maple_Create(MapleDeviceType type); #define SIZE_OF_MIC_DATA 480 //ALSO DEFINED IN SipEmulator.java +#ifndef TARGET_PANDORA int get_mic_data(u8* buffer); //implemented in Android.cpp int push_vmu_screen(u8* buffer); //implemented in Android.cpp +#endif