Home
last modified time | relevance | path

Searched refs:hmidi (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/sound/pci/rme9652/
Dhdsp.c1307 static int snd_hdsp_midi_output_write (struct hdsp_midi *hmidi) in snd_hdsp_midi_output_write() argument
1317 spin_lock_irqsave (&hmidi->lock, flags); in snd_hdsp_midi_output_write()
1318 if (hmidi->output) { in snd_hdsp_midi_output_write()
1319 if (!snd_rawmidi_transmit_empty (hmidi->output)) { in snd_hdsp_midi_output_write()
1320 n_pending = snd_hdsp_midi_output_possible(hmidi->hdsp, hmidi->id); in snd_hdsp_midi_output_write()
1325 to_write = snd_rawmidi_transmit(hmidi->output, buf, n_pending); in snd_hdsp_midi_output_write()
1328 snd_hdsp_midi_write_byte (hmidi->hdsp, hmidi->id, buf[i]); in snd_hdsp_midi_output_write()
1333 spin_unlock_irqrestore (&hmidi->lock, flags); in snd_hdsp_midi_output_write()
1337 static int snd_hdsp_midi_input_read (struct hdsp_midi *hmidi) in snd_hdsp_midi_input_read() argument
1344 spin_lock_irqsave (&hmidi->lock, flags); in snd_hdsp_midi_input_read()
[all …]
Dhdspm.c1847 static int snd_hdspm_midi_output_write (struct hdspm_midi *hmidi) in snd_hdspm_midi_output_write() argument
1857 spin_lock_irqsave (&hmidi->lock, flags); in snd_hdspm_midi_output_write()
1858 if (hmidi->output && in snd_hdspm_midi_output_write()
1859 !snd_rawmidi_transmit_empty (hmidi->output)) { in snd_hdspm_midi_output_write()
1860 n_pending = snd_hdspm_midi_output_possible (hmidi->hdspm, in snd_hdspm_midi_output_write()
1861 hmidi->id); in snd_hdspm_midi_output_write()
1866 to_write = snd_rawmidi_transmit (hmidi->output, buf, in snd_hdspm_midi_output_write()
1870 snd_hdspm_midi_write_byte (hmidi->hdspm, in snd_hdspm_midi_output_write()
1871 hmidi->id, in snd_hdspm_midi_output_write()
1876 spin_unlock_irqrestore (&hmidi->lock, flags); in snd_hdspm_midi_output_write()
[all …]