Files
uno-q-audio-synth/system/asound-i2s.conf
T
david 8cd796e3dd Initial commit: Arduino Uno Q USB Audio Synth project
- USB gadget (UAC1 + MIDI) with boot persistence
- USB host mode with auto-detection
- Pure Data synth patch with ALSA + UDP netreceive MIDI input
- MIDI rawmidi-to-UDP bridge (midi-bridge.py)
- LED matrix visualization (led-matrix-viz.py via arduino-router RPC)
- MCU sketch for LED matrix control (Arduino_RouterBridge + ArduinoGraphics)
- Conftest/OPA Rego policy validation suite for .pd files
- gen_synth_pd.py: programmatic .pd file generator
- System services: midi-bridge, led-matrix-viz, pd-synth-auto, usb-role-detect
- Justfile with deploy, enable, diagnostic recipes
- Diagnostic script (diag.sh)
2026-06-22 22:46:36 -07:00

69 lines
1.4 KiB
Plaintext

# ALSA configuration for I2S DAC (e.g. PCM5102, PCM5242, MAX98357)
# Installed alongside asound.conf — activate via:
# sudo mv /etc/asound.conf /etc/asound.conf.bak
# sudo cp /etc/asound-i2s.conf /etc/asound.conf
#
# The I2S interface on the Qualcomm DragonWing typically appears as:
# hw:0,0 (Primary MI2S — default audio path)
# hw:MI2S,0 (Named MI2S device)
#
# Find available devices: aplay -l
# Default PCM — try common I2S device names
pcm.!default {
type plug
slave {
pcm "hw:I2S,0"
format S16_LE
channels 2
rate 48000
}
hint.description "I2S DAC (48kHz stereo)"
}
# Fallback: try hw:0,0 if named device not found
pcm.i2s-default {
type plug
slave {
pcm "hw:0,0"
format S16_LE
channels 2
rate 48000
}
}
# Software volume control (I2S DACs typically have no hardware mixer)
pcm.i2s-softvol {
type softvol
slave.pcm "hw:I2S,0"
control {
name "I2S Playback Volume"
card I2S
}
min_dB -51.0
max_dB 0.0
resolution 256
}
# Direct hardware access (bypass plug/softvol for low latency)
pcm.i2s-direct {
type plug
slave {
pcm "hw:I2S,0"
format S16_LE
channels 2
rate 48000
}
}
# Loopback test (no I2S hardware connected)
pcm.loopback {
type plug
slave {
pcm "hw:Loopback,0,0"
format S16_LE
channels 2
rate 48000
}
}