# mavmic — the Scarlett Solo 4th Gen microphone alone, for mavwaked.
#
# The card's USB capture stream is 4 channels, not 2:
#
#   ch1  PCM 01 <- DSP 1 <- Analogue 1   the line/instrument jack
#   ch2  PCM 02 <- DSP 2 <- Analogue 2   the XLR microphone
#   ch3  PCM 03 <- Mix C  <- PCM 1       loopback of workstation playback, L
#   ch4  PCM 04 <- Mix D  <- PCM 2       loopback of workstation playback, R
#
# plughw asks ALSA for mono and gets a downmix of all four, so half of what
# mavwaked scored was whatever the workstation was playing, at unity gain and
# untouched by the front-panel gain knob. Measured 2026-08-09 with the gain at
# 0 and a show playing: ch1 rms 0.00000, ch2 0.00002, ch3 0.08834, ch4 0.09045.
#
# Air and 48V are named for Line In 2, and both belong to a microphone preamp,
# so Analogue 2 is the XLR input on this card and Analogue 1 is the jack.
#
# This takes slave channel 1 and nothing else. It does not change the card, so
# the loopback stays available to everything else on the box.
pcm.mavmic {
    type plug
    slave {
        pcm "hw:CARD=Gen,DEV=0"
        channels 4
    }
    ttable.0.1 1
}
