fix some of the red introduced in e43726d

Change-Id: Id1abb0dd11f8a8e79a80fc54e58a5a22706a03ad
This commit is contained in:
Solomon Peachy 2020-10-01 12:53:42 -04:00
parent e43726df2c
commit 6d47dc9a88
6 changed files with 5 additions and 13 deletions

View File

@ -2525,7 +2525,7 @@ static const struct {
{ "Screendump", dbg_screendump },
#endif
{ "Skin Engine RAM usage", dbg_skin_engine },
#if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SONY_NWZ_LINUX) || defined(AGPTEK_ROCKER) || defined(XDUOO_X3II) || defined(XDUOO_X20) && !defined(SIMULATOR)
#if ((CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SONY_NWZ_LINUX) || defined(AGPTEK_ROCKER) || defined(XDUOO_X3II) || defined(XDUOO_X20)) && !defined(SIMULATOR)
{ "View HW info", dbg_hw_info },
#endif
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)

View File

@ -416,7 +416,7 @@ void audiohw_set_volume(int vol_l, int vol_r)
printf(" set driver volume %d (%d dB)\n", drv_vol, curve->level[drv_vol] / 10);
nwz_set_driver_vol(drv_vol);
printf(" set digital volume %d dB\n", vol / 10);
pcm_alsa_set_digital_volume(vol / 10);
pcm_alsa_set_digital_volume(vol / 10, vol / 10);
}
void audiohw_close(void)

View File

@ -17,9 +17,6 @@
#define CONFIG_PLATFORM (PLATFORM_HOSTED)
#endif
/* define this if you have a colour LCD */
#define HAVE_LCD_COLOR

View File

@ -17,9 +17,6 @@
#define CONFIG_PLATFORM (PLATFORM_HOSTED)
#endif
/* define this if you have a colour LCD */
#define HAVE_LCD_COLOR
@ -84,6 +81,7 @@
/* We have usb power and can detect usb but it is handled by Linux */
#define HAVE_USB_POWER
#define AUDIOHW_HAVE_SET_OUTPUT
#endif
#define CONFIG_BATTERY_MEASURE PERCENTAGE_MEASURE
@ -119,8 +117,6 @@
/* HW codec is flexible */
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
#define AUDIOHW_HAVE_SET_OUTPUT
/* Battery */
#define BATTERY_CAPACITY_DEFAULT 2400 /* default battery capacity */
#define BATTERY_CAPACITY_MIN 2400 /* min. capacity selectable */

View File

@ -81,6 +81,7 @@
/* We have usb power and can detect usb but it is handled by Linux */
#define HAVE_USB_POWER
#define AUDIOHW_HAVE_SET_OUTPUT
#endif
#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
@ -116,8 +117,6 @@
/* HW codec is flexible */
#define HW_SAMPR_CAPS SAMPR_CAP_ALL_192
#define AUDIOHW_HAVE_SET_OUTPUT
/* Battery */
#define BATTERY_CAPACITY_DEFAULT 2000 /* default battery capacity */
#define BATTERY_CAPACITY_MIN 2000 /* min. capacity selectable */

View File

@ -369,7 +369,7 @@ bool dbg_hw_info_audio(void)
{
case VOL:
vol += inc ? 1 : -1;
pcm_alsa_set_digital_volume(vol);
pcm_alsa_set_digital_volume(vol, vol);
break;
case ACOUSTIC:
audiohw_enable_acoustic(!audiohw_acoustic_enabled());