crosspad_audio_route
Read or set runtime CrossPad ES8388 audio routing over USB MIDI SysEx, including ADC inputs, DAC outputs, volumes, and mutes; query full state or apply targeted codec changes.
Instructions
[ESP HW] Read or set the runtime audio routing of a CrossPad (the ES8388 codecs' ADC inputs, DAC outputs, volumes and mutes) over USB MIDI SysEx. It is sent as CROSSPAD_CMD_AUDIO_ROUTE 0x1D through the crosspad-hil daemon and works in both USB profiles. action='query' reads the full state; action='set' applies any subset of adc_input, mic_src, dac_output, volume, mute (per-codec fields need codec 0|1). Codec 0 LINE2 is the built-in mics; every other input is the DAC-to-ADC loop, and codec 1 LINE1 is the near-unity path with the better SNR (compresses above ~0.2 FS input). Routing reverts to firmware defaults on device reset; only the named preset is persisted, by the firmware.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "crosspad_audio_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mute | No | Codec output mute. | |
| codec | No | Target codec for adc_input/dac_output/volume/mute (0 = stock mic path, 1 = PCB-loopback codec). | |
| action | Yes | 'set' applies routing changes; 'query' reads the current state. | |
| device | No | Device id (dev_xxxx) or one of its port paths; omit when exactly one CrossPad is connected. | |
| volume | No | Codec output volume 0-100. | |
| mic_src | No | Which codec feeds the USB mic path. | |
| adc_input | No | ADC input mux of `codec`: differential, LINE1 (PCB loop on both codecs) or LINE2 (built-in mics on codec 0, jack on codec 1). | |
| dac_output | No | DAC output route of `codec`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| hint | No | ||
| next | No | ||
| port | No | ||
| sent | No | ||
| tool | No | ||
| error | No | ||
| state | No | ||
| notice | No | ||
| outcome | No | ||
| success | Yes | ||
| elicitation | No | ||
| confirmation | No |