From 4c60bc9e681865fcfc149775a1ed7ccd2613d5bf Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 23 May 2021 17:30:58 +0100 Subject: New port: Shanling Q1 native - Audio playback works - Touchscreen and buttons work - Bootloader works and is capable of dual boot - Plugins are working - Cabbiev2 theme has been ported - Stable for general usage Thanks to Marc Aarts for porting Cabbiev2 and plugin bitmaps. There's a few minor known issues: - Bootloader must be installed manually using 'usbboot' as there is no support in jztool yet. - Keymaps may be lacking, need further testing and feedback. - Some plugins may not be fully adapted to the screen size and could benefit from further tweaking. - LCD shows abnormal effects under some circumstances: for example, after viewing a mostly black screen an afterimage appears briefly when going back to a brightly-lit screen. Sudden power-off without proper shutdown of the backlight causes a "dissolving" effect. - CW2015 battery reporting driver is buggy, and disabled for now. Battery reporting is currently voltage-based using the AXP192. Change-Id: I635e83f02a880192c5a82cb0861ad3a61c137c3a --- apps/settings_list.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'apps/settings_list.c') diff --git a/apps/settings_list.c b/apps/settings_list.c index c13df734e6..1cdbc4115d 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -242,6 +242,9 @@ static const char graphic_numeric[] = "graphic,numeric"; #define DEFAULT_FONT_HEIGHT 12 #elif LCD_HEIGHT <= 320 #define DEFAULT_FONT_HEIGHT 15 +#elif defined(SHANLING_Q1) + /* 16pt font looks pretty aliased & ugly */ + #define DEFAULT_FONT_HEIGHT 18 #elif LCD_HEIGHT <= 400 #define DEFAULT_FONT_HEIGHT 16 #elif LCD_HEIGHT <= 480 && LCD_WIDTH < 800 @@ -261,7 +264,7 @@ static const char graphic_numeric[] = "graphic,numeric"; #endif #ifdef HAVE_LCD_COLOR - #if DEFAULT_FONT_HEIGHT >= 31 + #if DEFAULT_FONT_HEIGHT >= 31 || defined(SHANLING_Q1) #define DEFAULT_ICONSET "tango_icons.32x32" #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.32x32" #elif DEFAULT_FONT_HEIGHT >= 23 @@ -848,7 +851,11 @@ const struct settings_list settings[] = { #ifdef AUDIOHW_HAVE_FILTER_ROLL_OFF CHOICE_SETTING(F_SOUNDSETTING, roll_off, LANG_FILTER_ROLL_OFF, 0, -#if defined(AUDIOHW_HAVE_SHORT2_ROLL_OFF) +#if defined(AUDIOHW_HAVE_ES9218_ROLL_OFF) + "roll_off", "linear fast,linear slow,minimum fast,minimum slow,apodizing 1,apodizing 2,hybrid fast,brick wall", sound_set_filter_roll_off, + 8, ID2P(LANG_FILTER_LINEAR_FAST), ID2P(LANG_FILTER_LINEAR_SLOW), ID2P(LANG_FILTER_MINIMUM_FAST), ID2P(LANG_FILTER_MINIMUM_SLOW), + ID2P(LANG_FILTER_APODIZING_1), ID2P(LANG_FILTER_APODIZING_2), ID2P(LANG_FILTER_HYBRID_FAST), ID2P(LANG_FILTER_BRICK_WALL)), +#elif defined(AUDIOHW_HAVE_SHORT2_ROLL_OFF) "roll_off", "sharp,slow,short sharp,short slow", sound_set_filter_roll_off, 4, ID2P(LANG_FILTER_SHARP), ID2P(LANG_FILTER_SLOW), ID2P(LANG_FILTER_SHORT_SHARP), ID2P(LANG_FILTER_SHORT_SLOW)), #elif defined(AUDIOHW_HAVE_SHORT_ROLL_OFF) -- cgit v1.2.3