sdvxhook: code-format

This commit is contained in:
Will Xyen
2020-09-13 19:46:16 -07:00
parent 164d56b6eb
commit 2d1c09d4e6
9 changed files with 17 additions and 12 deletions
+5 -1
View File
@@ -322,7 +322,11 @@ bool aciodrv_send_and_recv(struct ac_io_message *msg, int resp_size)
int send_size = offsetof(struct ac_io_message, cmd.raw) + msg->cmd.nbytes; int send_size = offsetof(struct ac_io_message, cmd.raw) + msg->cmd.nbytes;
#ifdef AC_IO_MSG_LOG #ifdef AC_IO_MSG_LOG
log_info("Beginning send on %d: %04x (%d b)", msg->addr, msg->cmd.code, send_size); log_info(
"Beginning send on %d: %04x (%d b)",
msg->addr,
msg->cmd.code,
send_size);
#endif #endif
if (aciodrv_device_send((uint8_t *) msg, send_size) <= 0) { if (aciodrv_device_send((uint8_t *) msg, send_size) <= 0) {
return false; return false;
+1 -1
View File
@@ -6,10 +6,10 @@
#include "aciodrv/device.h" #include "aciodrv/device.h"
#include "aciotest/bi2a-sdvx.h"
#include "aciotest/handler.h" #include "aciotest/handler.h"
#include "aciotest/icca.h" #include "aciotest/icca.h"
#include "aciotest/kfca.h" #include "aciotest/kfca.h"
#include "aciotest/bi2a-sdvx.h"
#include "util/log.h" #include "util/log.h"
-1
View File
@@ -160,7 +160,6 @@ static const struct light_def ddr_lights[] = {
{0x2A, IDS_DDR_HD_P2_SPEAKER_W_G}, {0x2A, IDS_DDR_HD_P2_SPEAKER_W_G},
{0x2B, IDS_DDR_HD_P2_SPEAKER_W_B}, {0x2B, IDS_DDR_HD_P2_SPEAKER_W_B},
// EXTIO // EXTIO
{0x1E, IDS_DDR_P1_UP}, {0x1E, IDS_DDR_P1_UP},
{0x1D, IDS_DDR_P1_DOWN}, {0x1D, IDS_DDR_P1_DOWN},
+2 -1
View File
@@ -122,7 +122,8 @@ static void kfca_amp_control(const struct ac_io_message *req)
// bytes 0-4: main, headphone, unused, subwoofer // bytes 0-4: main, headphone, unused, subwoofer
if (!sdvx_io_set_amp_volume(req->cmd.raw[0], req->cmd.raw[1], req->cmd.raw[3])) { if (!sdvx_io_set_amp_volume(
req->cmd.raw[0], req->cmd.raw[1], req->cmd.raw[3])) {
log_warning("Unable to set amp volume?"); log_warning("Unable to set amp volume?");
} }
+3 -1
View File
@@ -28,7 +28,9 @@ static bool poll_delay;
static bool force_headphones_on; static bool force_headphones_on;
void bio2_emu_bi2a_init( void bio2_emu_bi2a_init(
struct bio2emu_port *bio2_emu, bool disable_poll_limiter, bool force_headphones) struct bio2emu_port *bio2_emu,
bool disable_poll_limiter,
bool force_headphones)
{ {
bio2emu_port_init(bio2_emu); bio2emu_port_init(bio2_emu);
+3 -3
View File
@@ -5,11 +5,11 @@
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include "bio2emu/emu.h"
#include "bio2/bi2a-sdvx.h" #include "bio2/bi2a-sdvx.h"
#include "bio2emu/emu.h"
void bio2_emu_bi2a_init(
void bio2_emu_bi2a_init(struct bio2emu_port *in, bool disable_poll_limiter, bool force_headphones); struct bio2emu_port *in, bool disable_poll_limiter, bool force_headphones);
void bio2_emu_bi2a_dispatch_request( void bio2_emu_bi2a_dispatch_request(
struct bio2emu_port *bio2port, const struct ac_io_message *req); struct bio2emu_port *bio2port, const struct ac_io_message *req);
-1
View File
@@ -4,7 +4,6 @@
#include "util/log.h" #include "util/log.h"
SDVXIO_KFCA_CONFIG_KFCA_H
#define SDVXIO_KFCA_CONFIG_KFCA_PORT_KEY "kfca.port" #define SDVXIO_KFCA_CONFIG_KFCA_PORT_KEY "kfca.port"
#define SDVXIO_KFCA_CONFIG_KFCA_BAUD_KEY "kfca.baud" #define SDVXIO_KFCA_CONFIG_KFCA_BAUD_KEY "kfca.baud"