STRUCT SND_SOC_ACPI_CODECS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct snd_soc_acpi_codecs(9)

okay so you're in the Kernel API Manual, section 9, and the star of the show is struct snd_soc_acpi_codecs πŸŽ€


✨ NAME ✨

struct snd_soc_acpi_codecs β€” bestie, this is the struct that holds the secondary codec info, y'know, the extras that aren't the one you already matched 🫢. That data gets handed off to the quirk function so it can match up against the devices that ACPI actually detected. it's giving "supporting cast, but make it essential" πŸ‘‘


🌸 SYNOPSIS 🌸

struct snd_soc_acpi_codecs {
    int num_codecs;
    u8 codecs[SND_SOC_ACPI_MAX_CODECS][ACPI_ID_LEN];
 };

look at her. so compact. so iconic. literally the whole vibe in two fields πŸ’œ


πŸ¦‹ Members πŸ¦‹

  • num_codecs β€” the number of secondary codecs chillin' in this platform. like, how many plus-ones are we bringing πŸ”₯
  • codecs β€” this is the one holding the codec IDs, no cap. it's a 2D array: SND_SOC_ACPI_MAX_CODECS rows of ACPI_ID_LEN β€” so it's a whole lil roster of IDs, and every single one is exactly ACPI_ID_LEN wide πŸ’…

🌈 SEE ALSO 🌈

  • Kernel file ./include/sound/soc-acpi.h
  • struct snd_soc_acpi_mach_params(9)
  • struct snd_soc_acpi_endpoint(9)
  • struct snd_soc_acpi_adr_device(9)
  • struct snd_soc_acpi_link_adr(9)
  • struct snd_soc_acpi_mach(9)

the whole friend group fr fr β€” go read them all, you'll be obsessed 🧚


ngl bestie, if you're matching ACPI-detected devices against secondary codecs, this struct is your main character. go off πŸ‘‘

sign-off szn: this little beauty lives in ./include/sound, and this edition dropped October 2026 β€” catch you in struct snd_soc_acpi_codecs(9) again soon, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from