ALSA UCM2 sound device survey

I’ve got a (mostly) complete ALSA UCM2 config written for my old imx8mq Reform, but I’m curious what the impact of this would be on users of other SoCs. From the .dts files it looks like the same config might also get applied to LS1028A and imx8mp.

If you have a non-imx8mq Reform and you want to help me figure this out, please post the output of these commands:

cat /proc/device-tree/model
cat /proc/asound/cards
amixer -c 0 controls

1 Like

Here are the outputs for ls1028a, booted from a freshly obtained, unmodified system image:

cat /proc/device-tree/model
MNT Reform 2 with LS1028A Module
 cat /proc/asound/cards
 0 [wm8960audio    ]: fsl-asoc-card - wm8960-audio
                      wm8960-audio
 amixer -c 0 controls
numid=12,iface=MIXER,name='Headphone Playback ZC Switch'
numid=11,iface=MIXER,name='Headphone Playback Volume'
numid=17,iface=MIXER,name='PCM Playback -6dB Switch'
numid=58,iface=MIXER,name='Mono Output Mixer Left Switch'
numid=59,iface=MIXER,name='Mono Output Mixer Right Switch'
numid=41,iface=MIXER,name='ADC Data Output Select'
numid=19,iface=MIXER,name='ADC High Pass Filter Switch'
numid=36,iface=MIXER,name='ADC PCM Capture Volume'
numid=18,iface=MIXER,name='ADC Polarity'
numid=2,iface=MIXER,name='Capture Volume ZC Switch'
numid=3,iface=MIXER,name='Capture Switch'
numid=1,iface=MIXER,name='Capture Volume'
numid=10,iface=MIXER,name='Playback Volume'
numid=23,iface=MIXER,name='3D Filter Lower Cut-Off'
numid=22,iface=MIXER,name='3D Filter Upper Cut-Off'
numid=25,iface=MIXER,name='3D Switch'
numid=24,iface=MIXER,name='3D Volume'
numid=33,iface=MIXER,name='ALC Attack'
numid=32,iface=MIXER,name='ALC Decay'
numid=26,iface=MIXER,name='ALC Function'
numid=30,iface=MIXER,name='ALC Hold Time'
numid=27,iface=MIXER,name='ALC Max Gain'
numid=29,iface=MIXER,name='ALC Min Gain'
numid=31,iface=MIXER,name='ALC Mode'
numid=28,iface=MIXER,name='ALC Target'
numid=21,iface=MIXER,name='DAC Deemphasis Switch'
numid=43,iface=MIXER,name='DAC Filter Characteristics'
numid=42,iface=MIXER,name='DAC Mono Mix'
numid=20,iface=MIXER,name='DAC Polarity'
numid=46,iface=MIXER,name='Left Boost Mixer LINPUT1 Switch'
numid=44,iface=MIXER,name='Left Boost Mixer LINPUT2 Switch'
numid=45,iface=MIXER,name='Left Boost Mixer LINPUT3 Switch'
numid=9,iface=MIXER,name='Left Input Boost Mixer LINPUT1 Volume'
numid=5,iface=MIXER,name='Left Input Boost Mixer LINPUT2 Volume'
numid=4,iface=MIXER,name='Left Input Boost Mixer LINPUT3 Volume'
numid=50,iface=MIXER,name='Left Input Mixer Boost Switch'
numid=54,iface=MIXER,name='Left Output Mixer Boost Bypass Switch'
numid=37,iface=MIXER,name='Left Output Mixer Boost Bypass Volume'
numid=53,iface=MIXER,name='Left Output Mixer LINPUT3 Switch'
numid=38,iface=MIXER,name='Left Output Mixer LINPUT3 Volume'
numid=52,iface=MIXER,name='Left Output Mixer PCM Playback Switch'
numid=35,iface=MIXER,name='Noise Gate Switch'
numid=34,iface=MIXER,name='Noise Gate Threshold'
numid=49,iface=MIXER,name='Right Boost Mixer RINPUT1 Switch'
numid=47,iface=MIXER,name='Right Boost Mixer RINPUT2 Switch'
numid=48,iface=MIXER,name='Right Boost Mixer RINPUT3 Switch'
numid=8,iface=MIXER,name='Right Input Boost Mixer RINPUT1 Volume'
numid=7,iface=MIXER,name='Right Input Boost Mixer RINPUT2 Volume'
numid=6,iface=MIXER,name='Right Input Boost Mixer RINPUT3 Volume'
numid=51,iface=MIXER,name='Right Input Mixer Boost Switch'
numid=57,iface=MIXER,name='Right Output Mixer Boost Bypass Switch'
numid=39,iface=MIXER,name='Right Output Mixer Boost Bypass Volume'
numid=55,iface=MIXER,name='Right Output Mixer PCM Playback Switch'
numid=56,iface=MIXER,name='Right Output Mixer RINPUT3 Switch'
numid=40,iface=MIXER,name='Right Output Mixer RINPUT3 Volume'
numid=16,iface=MIXER,name='Speaker AC Volume'
numid=15,iface=MIXER,name='Speaker DC Volume'
numid=13,iface=MIXER,name='Speaker Playback Volume'
numid=14,iface=MIXER,name='Speaker Playback ZC Switch'

Hope that helps :slight_smile:

1 Like

I guess we’re the last two still using Freescale chips. :smiley:
That confirms it. The UCM changes for imx8mq will also affect ls1028a.

When I can figure out how to build reform-tools and test packaging this I’ll send a MR.

Nope, I still have imx8mq, imx8m+ and ls1028a here but the new semester started so I’m swamped with work, which is why i haven’t replied yet, sorry!
This is also why I haven’t yet commented on the work of @kaybarkbark but it’s on my todo list!

Please file a MR early. If you didn’t test it yet, just mark it as draft. But filing what you have early makes sure that your work doesn’t get lost and isn’t forgotten but tracked somewhere.

2 Likes

Better late than never.

1 Like

Here’s my Reform with RK3588

$ cat /proc/device-tree/model
MNT Reform 2 with RCORE-DSI RK3588 Module
$  cat /proc/asound/cards
 0 [hdmi1          ]: simple-card - hdmi1
                      hdmi1
 1 [rk3588wm8960   ]: rk3588-wm8960 - rk3588-wm8960
                      rk3588-wm8960
$  amixer -c 0 controls
numid=4,iface=PCM,name='ELD'
numid=3,iface=PCM,name='IEC958 Playback Default'
numid=2,iface=PCM,name='IEC958 Playback Mask'
numid=1,iface=PCM,name='Playback Channel Map'
1 Like

This is for imx8m+ pocket reform:

$ cat /proc/device-tree/model
MNT Pocket Reform with i.MX8MP Module
$ cat /proc/asound/cards
 0 [tlv320aic3100  ]: simple-card - tlv320aic3100
                      tlv320aic3100
 1 [Modem          ]: simple-card - Modem
                      Modem
$ amixer -c 0 controls
numid=18,iface=MIXER,name='Mic PGA Capture Volume'
numid=15,iface=MIXER,name='ADC Fine Capture Volume'
numid=16,iface=MIXER,name='ADC Capture Switch'
numid=17,iface=MIXER,name='ADC Capture Volume'
numid=29,iface=MIXER,name='DAC Left Input'
numid=22,iface=MIXER,name='DAC Playback Volume'
numid=30,iface=MIXER,name='DAC Right Input'
numid=25,iface=MIXER,name='HP Analog Playback Volume'
numid=23,iface=MIXER,name='HP Driver Playback Switch'
numid=24,iface=MIXER,name='HP Driver Playback Volume'
numid=31,iface=MIXER,name='HP Left Switch'
numid=26,iface=MIXER,name='HP Output Driver Power-On time'
numid=27,iface=MIXER,name='HP Output Driver Ramp-up step'
numid=32,iface=MIXER,name='HP Right Switch'
numid=36,iface=MIXER,name='MIC1LM M-Terminal'
numid=35,iface=MIXER,name='MIC1LM P-Terminal'
numid=33,iface=MIXER,name='MIC1LP P-Terminal'
numid=34,iface=MIXER,name='MIC1RP P-Terminal'
numid=37,iface=MIXER,name='Output Left From Left DAC'
numid=38,iface=MIXER,name='Output Left From MIC1LP'
numid=39,iface=MIXER,name='Output Left From MIC1RP'
numid=41,iface=MIXER,name='Output Right From MIC1RP'
numid=40,iface=MIXER,name='Output Right From Right DAC'
numid=13,iface=MIXER,name='Receive Bit Counter'
numid=11,iface=MIXER,name='Receive Bit Counter Reset Switch'
numid=14,iface=MIXER,name='Receive Latched Timestamp Counter'
numid=8,iface=MIXER,name='Receive Timestamp Control Switch'
numid=12,iface=MIXER,name='Receive Timestamp Counter'
numid=9,iface=MIXER,name='Receive Timestamp Increment'
numid=10,iface=MIXER,name='Receive Timestamp Reset Switch'
numid=21,iface=MIXER,name='Speaker Analog Playback Volume'
numid=19,iface=MIXER,name='Speaker Driver Playback Switch'
numid=20,iface=MIXER,name='Speaker Driver Playback Volume'
numid=42,iface=MIXER,name='Speaker Switch'
numid=6,iface=MIXER,name='Transmit Bit Counter'
numid=4,iface=MIXER,name='Transmit Bit Counter Reset Switch'
numid=7,iface=MIXER,name='Transmit Latched Timestamp Counter'
numid=1,iface=MIXER,name='Transmit Timestamp Control Switch'
numid=5,iface=MIXER,name='Transmit Timestamp Counter'
numid=2,iface=MIXER,name='Transmit Timestamp Increment'
numid=3,iface=MIXER,name='Transmit Timestamp Reset Switch'
numid=28,iface=MIXER,name='Volume Soft Stepping'