snd_sof_dsp_get_bar_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_sof_dsp_get_bar_index(9) β€” Kernel API Manual ✨

okay bestie, welcome to the Kernel API Manual page for snd_sof_dsp_get_bar_index β€” it's giving β€œtiny function, very specific job” energy and honestly? iconic πŸŽ€


🌸 NAME 🌸

snd_sof_dsp_get_bar_index β€” Maps a section type with a BAR index πŸ’–


✨ SYNOPSIS ✨

int snd_sof_dsp_get_bar_index (struct snd_sof_dev *sdev , u32 type );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sdev β€” the sof device, periodt πŸ’…
  • type β€” the section type, as described by snd_sof_fw_blk_type ✨

πŸŽ€ DESCRIPTION πŸŽ€

This one returns the corresponding BAR index β€” a positive integer β€” or -EINVAL in case there is no mapping 😭

So like: mapping exists? cute positive integer BAR index. No mapping? -EINVAL, no cap. That's the whole vibe check 🫢


πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./sound/soc/sof/ops.h πŸ‘‘

okay bye bestie β€” this page came from the Kernel API Manual, source chilling at ./sound/soc/sof, dated October 2026 🫢✨

πŸ“¦ where this page comes from