amdtp_am824_midi_trigger(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ amdtp_am824_midi_trigger ✨

okay so this is a page straight out of the Kernel API Manual β€” yes, the kernel has a manual, and yes, it's kind of iconic πŸ’… this one is all about amdtp_am824_midi_trigger, and bestie, it's literally the start/stop button for playback and capture with a MIDI device 🎹


🌸 NAME 🌸

amdtp_am824_midi_trigger β€” start/stop playback/capture with a MIDI device

so like, that's the whole vibe: you're triggering MIDI transmission on or off 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void amdtp_am824_midi_trigger (struct amdtp_stream *s , unsigned int
port , struct snd_rawmidi_substream *midi );

copy it exactly, no cap πŸ“‹


πŸ’– ARGUMENTS πŸ’–

  • s β€” the AMDTP stream, aka the main character of this whole situation ✨
  • port β€” index of MIDI port, like which door we're knocking on πŸšͺ
  • midi β€” the MIDI device to be started, or NULL to stop the current device. yeah, NULL is the "we're done here" signal πŸ™ˆ

πŸŽ€ DESCRIPTION πŸŽ€

Call this function on a running isochronous stream to enable the actual transmission of MIDI data πŸ”₯ lowkey that's the whole point β€” if the stream isn't running, this isn't the move, iykyk.

This function should be called from the MIDI device's .trigger callback ⭐ like, that's its home, that's where it belongs, that's its main character energy πŸ‘‘

fr fr: port is just an index, and passing NULL as midi is the designated way to stop whatever device is currently going β€” don't overthink it πŸ“

🌈 SEE ALSO 🌈

the whole friend group, all accounted for πŸ’œ


and that's the page! 🌸 brought to you by the fine folks over at ./sound/firewire, dated October 2026 β€” mwah, slay, periodt πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from