Lines Matching refs:midi
999 struct hdspm_midi midi[4]; member
1813 return hdspm_read(hdspm, hdspm->midi[id].dataIn); in snd_hdspm_midi_read_byte()
1820 return hdspm_write(hdspm, hdspm->midi[id].dataOut, val); in snd_hdspm_midi_write_byte()
1825 return hdspm_read(hdspm, hdspm->midi[id].statusIn) & 0xFF; in snd_hdspm_midi_input_available()
1832 fifo_bytes_used = hdspm_read(hdspm, hdspm->midi[id].statusOut) & 0xFF; in snd_hdspm_midi_output_possible()
2060 hdspm->midi[id].id = id; in snd_hdspm_create_midi()
2061 hdspm->midi[id].hdspm = hdspm; in snd_hdspm_create_midi()
2062 spin_lock_init (&hdspm->midi[id].lock); in snd_hdspm_create_midi()
2067 hdspm->midi[0].dataIn = HDSPM_midiDataIn2; in snd_hdspm_create_midi()
2068 hdspm->midi[0].statusIn = HDSPM_midiStatusIn2; in snd_hdspm_create_midi()
2069 hdspm->midi[0].dataOut = HDSPM_midiDataOut2; in snd_hdspm_create_midi()
2070 hdspm->midi[0].statusOut = HDSPM_midiStatusOut2; in snd_hdspm_create_midi()
2071 hdspm->midi[0].ie = HDSPM_Midi2InterruptEnable; in snd_hdspm_create_midi()
2072 hdspm->midi[0].irq = HDSPM_midi2IRQPending; in snd_hdspm_create_midi()
2074 hdspm->midi[0].dataIn = HDSPM_midiDataIn0; in snd_hdspm_create_midi()
2075 hdspm->midi[0].statusIn = HDSPM_midiStatusIn0; in snd_hdspm_create_midi()
2076 hdspm->midi[0].dataOut = HDSPM_midiDataOut0; in snd_hdspm_create_midi()
2077 hdspm->midi[0].statusOut = HDSPM_midiStatusOut0; in snd_hdspm_create_midi()
2078 hdspm->midi[0].ie = HDSPM_Midi0InterruptEnable; in snd_hdspm_create_midi()
2079 hdspm->midi[0].irq = HDSPM_midi0IRQPending; in snd_hdspm_create_midi()
2082 hdspm->midi[1].dataIn = HDSPM_midiDataIn1; in snd_hdspm_create_midi()
2083 hdspm->midi[1].statusIn = HDSPM_midiStatusIn1; in snd_hdspm_create_midi()
2084 hdspm->midi[1].dataOut = HDSPM_midiDataOut1; in snd_hdspm_create_midi()
2085 hdspm->midi[1].statusOut = HDSPM_midiStatusOut1; in snd_hdspm_create_midi()
2086 hdspm->midi[1].ie = HDSPM_Midi1InterruptEnable; in snd_hdspm_create_midi()
2087 hdspm->midi[1].irq = HDSPM_midi1IRQPending; in snd_hdspm_create_midi()
2090 hdspm->midi[2].dataIn = HDSPM_midiDataIn2; in snd_hdspm_create_midi()
2091 hdspm->midi[2].statusIn = HDSPM_midiStatusIn2; in snd_hdspm_create_midi()
2092 hdspm->midi[2].dataOut = HDSPM_midiDataOut2; in snd_hdspm_create_midi()
2093 hdspm->midi[2].statusOut = HDSPM_midiStatusOut2; in snd_hdspm_create_midi()
2094 hdspm->midi[2].ie = HDSPM_Midi2InterruptEnable; in snd_hdspm_create_midi()
2095 hdspm->midi[2].irq = HDSPM_midi2IRQPending; in snd_hdspm_create_midi()
2098 hdspm->midi[2].dataIn = HDSPM_midiDataIn2; in snd_hdspm_create_midi()
2099 hdspm->midi[2].statusIn = HDSPM_midiStatusIn2; in snd_hdspm_create_midi()
2100 hdspm->midi[2].dataOut = -1; in snd_hdspm_create_midi()
2101 hdspm->midi[2].statusOut = -1; in snd_hdspm_create_midi()
2102 hdspm->midi[2].ie = HDSPM_Midi2InterruptEnable; in snd_hdspm_create_midi()
2103 hdspm->midi[2].irq = HDSPM_midi2IRQPendingAES; in snd_hdspm_create_midi()
2106 hdspm->midi[3].dataIn = HDSPM_midiDataIn3; in snd_hdspm_create_midi()
2107 hdspm->midi[3].statusIn = HDSPM_midiStatusIn3; in snd_hdspm_create_midi()
2108 hdspm->midi[3].dataOut = -1; in snd_hdspm_create_midi()
2109 hdspm->midi[3].statusOut = -1; in snd_hdspm_create_midi()
2110 hdspm->midi[3].ie = HDSPM_Midi3InterruptEnable; in snd_hdspm_create_midi()
2111 hdspm->midi[3].irq = HDSPM_midi3IRQPending; in snd_hdspm_create_midi()
2127 &hdspm->midi[id].rmidi); in snd_hdspm_create_midi()
2131 snprintf(hdspm->midi[id].rmidi->name, in snd_hdspm_create_midi()
2132 sizeof(hdspm->midi[id].rmidi->name), in snd_hdspm_create_midi()
2134 hdspm->midi[id].rmidi->private_data = &hdspm->midi[id]; in snd_hdspm_create_midi()
2136 snd_rawmidi_set_ops(hdspm->midi[id].rmidi, in snd_hdspm_create_midi()
2139 snd_rawmidi_set_ops(hdspm->midi[id].rmidi, in snd_hdspm_create_midi()
2143 hdspm->midi[id].rmidi->info_flags |= in snd_hdspm_create_midi()
2152 &hdspm->midi[id].rmidi); in snd_hdspm_create_midi()
2156 snprintf(hdspm->midi[id].rmidi->name, in snd_hdspm_create_midi()
2157 sizeof(hdspm->midi[id].rmidi->name), in snd_hdspm_create_midi()
2159 hdspm->midi[id].rmidi->private_data = &hdspm->midi[id]; in snd_hdspm_create_midi()
2161 snd_rawmidi_set_ops(hdspm->midi[id].rmidi, in snd_hdspm_create_midi()
2165 hdspm->midi[id].rmidi->info_flags |= SNDRV_RAWMIDI_INFO_INPUT; in snd_hdspm_create_midi()
2178 if (hdspm->midi[i].pending) in hdspm_midi_work()
2179 snd_hdspm_midi_input_read(&hdspm->midi[i]); in hdspm_midi_work()
5391 int i, audio, midi, schedule = 0; in snd_hdspm_interrupt() local
5397 midi = status & (HDSPM_midi0IRQPending | HDSPM_midi1IRQPending | in snd_hdspm_interrupt()
5417 if (!audio && !midi) in snd_hdspm_interrupt()
5432 if (midi) { in snd_hdspm_interrupt()
5436 hdspm->midi[i].statusIn) & 0xff) && in snd_hdspm_interrupt()
5437 (status & hdspm->midi[i].irq)) { in snd_hdspm_interrupt()
5441 hdspm->control_register &= ~hdspm->midi[i].ie; in snd_hdspm_interrupt()
5444 hdspm->midi[i].pending = 1; in snd_hdspm_interrupt()