clang-format in src/sound/
This commit is contained in:
@@ -1786,7 +1786,7 @@ mpu401_standalone_init(const device_t *info)
|
||||
base = 0; /* Tell mpu401_init() that this is the MCA variant. */
|
||||
/* According to @6c0f.adf, the IRQ is supposed to be fixed to 2.
|
||||
This is only true for earlier models. Later ones have selectable IRQ. */
|
||||
irq = device_get_config_int("irq");
|
||||
irq = device_get_config_int("irq");
|
||||
} else {
|
||||
base = device_get_config_hex16("base");
|
||||
irq = device_get_config_int("irq");
|
||||
@@ -1806,7 +1806,7 @@ mpu401_standalone_close(void *priv)
|
||||
}
|
||||
|
||||
static const device_config_t mpu401_standalone_config[] = {
|
||||
// clang-format off
|
||||
// clang-format off
|
||||
{
|
||||
.name = "base",
|
||||
.description = "MPU-401 Address",
|
||||
@@ -1910,11 +1910,11 @@ static const device_config_t mpu401_standalone_config[] = {
|
||||
.default_int = 1
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
static const device_config_t mpu401_standalone_mca_config[] = {
|
||||
// clang-format off
|
||||
// clang-format off
|
||||
{
|
||||
.name = "irq",
|
||||
.description = "MPU-401 IRQ",
|
||||
@@ -1958,33 +1958,33 @@ static const device_config_t mpu401_standalone_mca_config[] = {
|
||||
.default_int = 1
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
const device_t mpu401_device = {
|
||||
.name = "Roland MPU-IPC-T",
|
||||
.name = "Roland MPU-IPC-T",
|
||||
.internal_name = "mpu401",
|
||||
.flags = DEVICE_ISA,
|
||||
.local = 0,
|
||||
.init = mpu401_standalone_init,
|
||||
.close = mpu401_standalone_close,
|
||||
.reset = NULL,
|
||||
.flags = DEVICE_ISA,
|
||||
.local = 0,
|
||||
.init = mpu401_standalone_init,
|
||||
.close = mpu401_standalone_close,
|
||||
.reset = NULL,
|
||||
{ .available = NULL },
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
.config = mpu401_standalone_config
|
||||
.force_redraw = NULL,
|
||||
.config = mpu401_standalone_config
|
||||
};
|
||||
|
||||
const device_t mpu401_mca_device = {
|
||||
.name = "Roland MPU-IMC",
|
||||
.name = "Roland MPU-IMC",
|
||||
.internal_name = "mpu401_mca",
|
||||
.flags = DEVICE_MCA,
|
||||
.local = 0,
|
||||
.init = mpu401_standalone_init,
|
||||
.close = mpu401_standalone_close,
|
||||
.reset = NULL,
|
||||
.flags = DEVICE_MCA,
|
||||
.local = 0,
|
||||
.init = mpu401_standalone_init,
|
||||
.close = mpu401_standalone_close,
|
||||
.reset = NULL,
|
||||
{ .available = NULL },
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
.config = mpu401_standalone_mca_config
|
||||
.force_redraw = NULL,
|
||||
.config = mpu401_standalone_mca_config
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user