onboard audio: JMISC HPH wiring, UCM fix, update scripts for git deploy
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
# 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user