@Darmur @timothyjward If you are just interested in the Card’s id
and name
as set by the driver, you could just parse the drivers directly from the raspberrypi/linux
kernel tree…
Of course you can improve the regex, but here is a simple list to get started with.
allo-boss-dac.c: dai->name = "BossDAC";
allo-boss-dac.c: dai->stream_name = "Boss DAC HiFi [Master]";
allo-boss-dac.c: .name = "Boss DAC",
allo-boss-dac.c: .stream_name = "Boss DAC HiFi",
allo-boss-dac.c: .name = "BossDAC",
allo-boss-dac.c: .name = "snd-allo-boss-dac",
allo-boss2-dac.c: .name = "allo-cs43130",
allo-boss2-dac.c: .stream_name = "Playback",
allo-boss2-dac.c: .name = "allo-cs43198",
allo-katana-codec.c: .name = "allo-katana-codec",
allo-katana-codec.c: .stream_name = "Playback",
allo-katana-codec.c: .name = "allo-katana-codec",
allo-piano-dac-plus.c: .dai_name = "pcm512x-hifi",
allo-piano-dac-plus.c: .dai_name = "pcm512x-hifi",
allo-piano-dac-plus.c: .name = "PianoDACPlus",
allo-piano-dac-plus.c: .stream_name = "PianoDACPlus",
allo-piano-dac-plus.c: .name = "PianoDACPlus",
allo-piano-dac-plus.c: .name = "snd-allo-piano-dac-plus",
allo-piano-dac.c: .name = "Piano DAC",
allo-piano-dac.c: .stream_name = "Piano DAC HiFi",
allo-piano-dac.c: .name = "PianoDAC",
allo-piano-dac.c: .name = "snd-allo-piano-dac",
audioinjector-isolated-soundcard.c: .name = "AudioInjector ISO",
audioinjector-isolated-soundcard.c: .stream_name = "AI-HIFI",
audioinjector-isolated-soundcard.c: .name = "audioinjector-isolated-soundcard",
audioinjector-isolated-soundcard.c: .name = "audioinjector-isolated",
audioinjector-octo-soundcard.c: .name = "AudioInjector Octo",
audioinjector-octo-soundcard.c: .stream_name = "AudioInject-HIFI",
audioinjector-octo-soundcard.c: .name = "audioinjector-octo-soundcard",
audioinjector-octo-soundcard.c: .name = "audioinjector-octo",
audioinjector-pi-soundcard.c: .name = "AudioInjector audio",
audioinjector-pi-soundcard.c: .stream_name = "AudioInjector audio",
audioinjector-pi-soundcard.c: .name = "audioinjector-pi-soundcard",
audioinjector-pi-soundcard.c: .name = "audioinjector-stereo",
audiosense-pi.c: .name = "TLV320AIC3204 Audio",
audiosense-pi.c: .stream_name = "TLV320AIC3204 Hifi Audio",
audiosense-pi.c: .name = "audiosense-pi",
audiosense-pi.c: .driver_name = "audiosense-pi",
audiosense-pi.c: .name = "audiosense-snd-card",
digidac1-soundcard.c: .name = "RRA DigiDAC1",
digidac1-soundcard.c: .stream_name = "RRA DigiDAC1 HiFi",
digidac1-soundcard.c: .name = "RRA DigiDAC11",
digidac1-soundcard.c: .stream_name = "RRA DigiDAC11 HiFi",
digidac1-soundcard.c: .name = "digidac1-soundcard",
digidac1-soundcard.c: .name = "digidac1-audio",
dionaudio_loco-v2.c: .name = "DionAudio LOCO-V2",
dionaudio_loco-v2.c: .stream_name = "DionAudio LOCO-V2 DAC-AMP",
dionaudio_loco-v2.c: .name = "Dion Audio LOCO-V2",
dionaudio_loco-v2.c: .name = "snd-rpi-dionaudio-loco-v2",
dionaudio_loco.c: .name = "DionAudio LOCO",
dionaudio_loco.c: .stream_name = "DionAudio LOCO DAC-AMP",
dionaudio_loco.c: .name = "snd_rpi_dionaudio_loco",
dionaudio_loco.c: .name = "snd-dionaudio-loco",
fe-pi-audio.c: .name = "FE-PI",
fe-pi-audio.c: .stream_name = "Fe-Pi HiFi",
fe-pi-audio.c: .name = "Fe-Pi Audio",
fe-pi-audio.c: .name = "snd-fe-pi-audio",
googlevoicehat-codec.c: .name = "voicehat-hifi",
googlevoicehat-codec.c: .stream_name = "HiFi Capture",
googlevoicehat-codec.c: .stream_name = "HiFi Playback",
googlevoicehat-codec.c: .name = "voicehat-codec",
hifiberry_dacplus.c: dai->name = "HiFiBerry DAC+ Pro";
hifiberry_dacplus.c: dai->stream_name = "HiFiBerry DAC+ Pro HiFi";
hifiberry_dacplus.c: .name = "HiFiBerry DAC+",
hifiberry_dacplus.c: .stream_name = "HiFiBerry DAC+ HiFi",
hifiberry_dacplus.c: .name = "tpa6130a2.1-0060",
hifiberry_dacplus.c: .name = "snd_rpi_hifiberry_dacplus",
hifiberry_dacplus.c: .driver_name = "HifiberryDacp",
hifiberry_dacplus.c: .name = "status",
hifiberry_dacplus.c: .name = "snd-rpi-hifiberry-dacplus",
hifiberry_dacplusadc.c: dai->name = "HiFiBerry ADCDAC+ Pro";
hifiberry_dacplusadc.c: dai->stream_name = "HiFiBerry ADCDAC+ Pro HiFi";
hifiberry_dacplusadc.c: .name = "HiFiBerry DAC+ADC",
hifiberry_dacplusadc.c: .stream_name = "HiFiBerry DAC+ADC HiFi",
hifiberry_dacplusadc.c: .name = "snd_rpi_hifiberry_dacplusadc",
hifiberry_dacplusadc.c: .driver_name = "HifiberryDacpAdc",
hifiberry_dacplusadc.c: .name = "snd-rpi-hifiberry-dacplusadc",
hifiberry_dacplusadcpro.c: dai->name = "HiFiBerry DAC+ADC Pro";
hifiberry_dacplusadcpro.c: dai->stream_name = "HiFiBerry DAC+ADC Pro HiFi";
hifiberry_dacplusadcpro.c: .name = "HiFiBerry DAC+ADC PRO",
hifiberry_dacplusadcpro.c: .stream_name = "HiFiBerry DAC+ADC PRO HiFi",
hifiberry_dacplusadcpro.c: .name = "snd_rpi_hifiberry_dacplusadcpro",
hifiberry_dacplusadcpro.c: .driver_name = "HifiberryDacpAdcPro",
hifiberry_dacplusadcpro.c: .name = "snd-rpi-hifiberry-dacplusadcpro",
hifiberry_dacplusdsp.c: .name = "dacplusdsp-hifi",
hifiberry_dacplusdsp.c: .stream_name = "DAC+DSP Capture",
hifiberry_dacplusdsp.c: .stream_name = "DACP+DSP Playback",
hifiberry_dacplusdsp.c: .name = "hifiberry-dacplusdsp-codec",
hifiberry_dacplushd.c: dai->name = "HiFiBerry DAC+ HD";
hifiberry_dacplushd.c: dai->stream_name = "HiFiBerry DAC+ HD HiFi";
hifiberry_dacplushd.c: .name = "HiFiBerry DAC+ HD",
hifiberry_dacplushd.c: .stream_name = "HiFiBerry DAC+ HD HiFi",
hifiberry_dacplushd.c: .name = "snd_rpi_hifiberry_dacplushd",
hifiberry_dacplushd.c: .driver_name = "HifiberryDacplusHD",
hifiberry_dacplushd.c: .name = "snd-rpi-hifiberry-dacplushd",
i-sabre-q2m.c: .name = "I-Sabre Q2M",
i-sabre-q2m.c: .stream_name = "I-Sabre Q2M DAC",
i-sabre-q2m.c: .name = "I-Sabre Q2M DAC",
i-sabre-q2m.c: dai->name = "I-Sabre Q2M";
i-sabre-q2m.c: dai->stream_name = "I-Sabre Q2M DAC";
i-sabre-q2m.c: .name = "snd-rpi-i-sabre-q2m",
iqaudio-codec.c: dai->stream_name = "IQaudIO CODEC HiFi v1.2";
iqaudio-codec.c: .name = "snd-rpi-iqaudio-codec",
iqaudio-dac.c: dai->name = "IQaudIO DAC";
iqaudio-dac.c: dai->stream_name = "IQaudIO DAC HiFi";
iqaudio-dac.c: .name = "snd-rpi-iqaudio-dac",
justboom-both.c: .name = "JustBoom Digi",
justboom-both.c: .stream_name = "JustBoom Digi HiFi",
justboom-both.c: .name = "snd_rpi_justboom_both",
justboom-both.c: .driver_name = "JustBoomBoth",
justboom-both.c: .name = "snd-rpi-justboom-both",
justboom-dac.c: .name = "JustBoom DAC",
justboom-dac.c: .stream_name = "JustBoom DAC HiFi",
justboom-dac.c: .name = "snd_rpi_justboom_dac",
justboom-dac.c: .driver_name = "JustBoomDac",
justboom-dac.c: .name = "snd-rpi-justboom-dac",
pifi-40.c: .dai_name = "tas571x-hifi",
pifi-40.c: .dai_name = "tas571x-hifi",
pifi-40.c: .name = "PiFi40",
pifi-40.c: .stream_name = "PiFi40",
pifi-40.c: .name = "PiFi40",
pifi-40.c: .name = "snd-pifi-40",
pisound.c: strcpy(g_rmidi->name, "pisound MIDI ");
pisound.c: .name = "PCM Playback Switch",
pisound.c: .name = "PCM Playback Volume",
pisound.c: .name = "pisound",
pisound.c: .stream_name = "pisound",
pisound.c: .name = "pisound",
pisound.c: .name = "snd-rpi-pisound",
rpi-cirrus.c: .name = "WM5102",
rpi-cirrus.c: .stream_name = "WM5102 AiFi",
rpi-cirrus.c: .name = "WM5102 SPDIF",
rpi-cirrus.c: .stream_name = "SPDIF Tx/Rx",
rpi-cirrus.c: .name = "RPi-Cirrus",
rpi-cirrus.c: .driver_name = "RPiCirrus",
rpi-cirrus.c: .name = "snd-rpi-cirrus",
rpi-proto.c: .name = "WM8731",
rpi-proto.c: .stream_name = "WM8731 HiFi",
rpi-proto.c: .name = "snd_rpi_proto",
rpi-proto.c: .name = "snd-rpi-proto",
rpi-simple-soundcard.c: .name = "adau1977",
rpi-simple-soundcard.c: .stream_name = "ADAU1977",
rpi-simple-soundcard.c: .card_name = "snd_rpi_adau1977_adc",
rpi-simple-soundcard.c: .name = "Google voiceHAT SoundCard",
rpi-simple-soundcard.c: .stream_name = "Google voiceHAT SoundCard HiFi",
rpi-simple-soundcard.c: .card_name = "snd_rpi_googlevoicehat_soundcard",
rpi-simple-soundcard.c: .name = "Hifiberry DAC+DSP SoundCard",
rpi-simple-soundcard.c: .stream_name = "Hifiberry DAC+DSP SoundCard HiFi",
rpi-simple-soundcard.c: .card_name = "snd_rpi_hifiberrydacplusdsp_soundcard",
rpi-simple-soundcard.c: .name = "HifiBerry AMP",
rpi-simple-soundcard.c: .stream_name = "HifiBerry AMP HiFi",
rpi-simple-soundcard.c: .card_name = "snd_rpi_hifiberry_amp",
rpi-simple-soundcard.c: .name = "HifiBerry DAC",
rpi-simple-soundcard.c: .stream_name = "HifiBerry DAC HiFi",
rpi-simple-soundcard.c: .card_name = "snd_rpi_hifiberry_dac",
rpi-simple-soundcard.c: .name = "RPi-DAC",
rpi-simple-soundcard.c: .stream_name = "RPi-DAC HiFi",
rpi-simple-soundcard.c: .card_name = "snd_rpi_rpi_dac",
rpi-simple-soundcard.c: .name = "MerusAmp",
rpi-simple-soundcard.c: .stream_name = "Merus Audio Amp",
rpi-simple-soundcard.c: .card_name = "snd_rpi_merus_amp",
rpi-simple-soundcard.c: .driver_name = "RPi-simple",
rpi-simple-soundcard.c: .name = "snd-rpi-simple",
rpi-wm8804-soundcard.c: .name = "JustBoom Digi",
rpi-wm8804-soundcard.c: .stream_name = "JustBoom Digi HiFi",
rpi-wm8804-soundcard.c: .card_name = "snd_rpi_justboom_digi",
rpi-wm8804-soundcard.c: .name = "IQAudIO Digi",
rpi-wm8804-soundcard.c: .stream_name = "IQAudIO Digi HiFi",
rpi-wm8804-soundcard.c: .card_name = "IQAudIODigi",
rpi-wm8804-soundcard.c: .card_name_dt = "wm8804-digi,card-name",
rpi-wm8804-soundcard.c: .dai_name_dt = "wm8804-digi,dai-name",
rpi-wm8804-soundcard.c: .dai_stream_name_dt = "wm8804-digi,dai-stream-name",
rpi-wm8804-soundcard.c: .name = "Allo DigiOne",
rpi-wm8804-soundcard.c: .stream_name = "Allo DigiOne HiFi",
rpi-wm8804-soundcard.c: .card_name = "snd_allo_digione",
rpi-wm8804-soundcard.c: .name = "HifiBerry Digi",
rpi-wm8804-soundcard.c: .stream_name = "HifiBerry Digi HiFi",
rpi-wm8804-soundcard.c: snd_hifiberry_digi_dai->name = "HiFiBerry Digi+ Pro";
rpi-wm8804-soundcard.c: snd_hifiberry_digi_dai->stream_name = "HiFiBerry Digi+ Pro HiFi";
rpi-wm8804-soundcard.c: .card_name = "snd_rpi_hifiberry_digi",
rpi-wm8804-soundcard.c: .driver_name = "RPi-WM8804",
rpi-wm8804-soundcard.c: if (!dai->codecs->dai_name)
rpi-wm8804-soundcard.c: dai->codecs->dai_name = "wm8804-spdif";
rpi-wm8804-soundcard.c: if (!dai->codecs->name)
rpi-wm8804-soundcard.c: dai->codecs->name = "wm8804.1-003b";
rpi-wm8804-soundcard.c: .name = "snd-rpi-wm8804",