Lines Matching refs:midi
446 struct hdsp_midi midi[2]; member
1506 hdsp->midi[id].id = id; in snd_hdsp_create_midi()
1507 hdsp->midi[id].rmidi = NULL; in snd_hdsp_create_midi()
1508 hdsp->midi[id].input = NULL; in snd_hdsp_create_midi()
1509 hdsp->midi[id].output = NULL; in snd_hdsp_create_midi()
1510 hdsp->midi[id].hdsp = hdsp; in snd_hdsp_create_midi()
1511 hdsp->midi[id].istimer = 0; in snd_hdsp_create_midi()
1512 hdsp->midi[id].pending = 0; in snd_hdsp_create_midi()
1513 spin_lock_init (&hdsp->midi[id].lock); in snd_hdsp_create_midi()
1516 if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0) in snd_hdsp_create_midi()
1519 sprintf(hdsp->midi[id].rmidi->name, "HDSP MIDI %d", id+1); in snd_hdsp_create_midi()
1520 hdsp->midi[id].rmidi->private_data = &hdsp->midi[id]; in snd_hdsp_create_midi()
1522 snd_rawmidi_set_ops (hdsp->midi[id].rmidi, SNDRV_RAWMIDI_STREAM_OUTPUT, &snd_hdsp_midi_output); in snd_hdsp_create_midi()
1523 snd_rawmidi_set_ops (hdsp->midi[id].rmidi, SNDRV_RAWMIDI_STREAM_INPUT, &snd_hdsp_midi_input); in snd_hdsp_create_midi()
1525 hdsp->midi[id].rmidi->info_flags |= SNDRV_RAWMIDI_INFO_OUTPUT | in snd_hdsp_create_midi()
3867 if (hdsp->midi[0].pending) in hdsp_midi_work()
3868 snd_hdsp_midi_input_read (&hdsp->midi[0]); in hdsp_midi_work()
3869 if (hdsp->midi[1].pending) in hdsp_midi_work()
3870 snd_hdsp_midi_input_read (&hdsp->midi[1]); in hdsp_midi_work()
3914 hdsp->midi[0].pending = 1; in snd_hdsp_interrupt()
3917 snd_hdsp_midi_input_read (&hdsp->midi[0]); in snd_hdsp_interrupt()
3925 hdsp->midi[1].pending = 1; in snd_hdsp_interrupt()
3928 snd_hdsp_midi_input_read (&hdsp->midi[1]); in snd_hdsp_interrupt()
5258 hdsp->midi[0].rmidi = NULL; in snd_hdsp_create()
5259 hdsp->midi[1].rmidi = NULL; in snd_hdsp_create()
5260 hdsp->midi[0].input = NULL; in snd_hdsp_create()
5261 hdsp->midi[1].input = NULL; in snd_hdsp_create()
5262 hdsp->midi[0].output = NULL; in snd_hdsp_create()
5263 hdsp->midi[1].output = NULL; in snd_hdsp_create()
5264 hdsp->midi[0].pending = 0; in snd_hdsp_create()
5265 hdsp->midi[1].pending = 0; in snd_hdsp_create()
5266 spin_lock_init(&hdsp->midi[0].lock); in snd_hdsp_create()
5267 spin_lock_init(&hdsp->midi[1].lock); in snd_hdsp_create()