Lines Matching refs:mpu_cmd
671 static int mpu_cmd(int dev, int cmd, int data) in mpu_cmd() function
696 if (mpu_cmd(dev, 0xD0, 0) < 0) in mpu401_prefix_cmd()
703 if (mpu_cmd(dev, 0xDF, 0) < 0) in mpu401_prefix_cmd()
847 mpu_cmd(midi_dev, 0x8B, 0); /* Enable data in stop mode */ in mpu_synth_open()
848 mpu_cmd(midi_dev, 0x34, 0); /* Return timing bytes in stop mode */ in mpu_synth_open()
849 mpu_cmd(midi_dev, 0x87, 0); /* Enable pitch & controller */ in mpu_synth_open()
863 mpu_cmd(midi_dev, 0x15, 0); /* Stop recording, playback and MIDI */ in mpu_synth_close()
864 mpu_cmd(midi_dev, 0x8a, 0); /* Disable data in stopped mode */ in mpu_synth_close()
932 tmp = mpu_cmd(n, 0xAC, 0); in mpu401_chk_version()
939 if ((tmp = mpu_cmd(n, 0xAD, 0)) < 0) { in mpu401_chk_version()
1011 if (mpu_cmd(m, 0xC5, 0) >= 0) /* Set timebase OK */ in attach_mpu401()
1012 if (mpu_cmd(m, 0xE0, 120) >= 0) /* Set tempo OK */ in attach_mpu401()
1173 if (mpu_cmd(dev, UART_MODE_ON, 0) < 0) in set_uart_mode()
1265 if (mpu_cmd(midi_dev, 0xC0 | (hw_val & 0x0f), 0) < 0) in set_timebase()
1289 mpu_cmd(midi_dev, 0x3c, 0); /* Use CLS sync */ in set_timer_mode()
1291 mpu_cmd(midi_dev, 0x3d, 0); /* Use SMPTE sync */ in set_timer_mode()
1295 mpu_cmd(midi_dev, 0x80, 0); /* Use MIDI sync */ in set_timer_mode()
1301 mpu_cmd(midi_dev, 0x82, 0); /* Use MIDI sync */ in set_timer_mode()
1302 mpu_cmd(midi_dev, 0x91, 0); /* Enable ext MIDI ctrl */ in set_timer_mode()
1305 mpu_cmd(midi_dev, 0x81, 0); /* Use FSK sync */ in set_timer_mode()
1311 mpu_cmd(midi_dev, 0x84, 0); /* Disable metronome */ in stop_metronome()
1327 mpu_cmd(midi_dev, 0x84, 0); /* Disable metronome */ in setup_metronome()
1330 mpu_cmd(midi_dev, 0xE4, clks_per_click); in setup_metronome()
1331 mpu_cmd(midi_dev, 0xE6, beats_per_measure); in setup_metronome()
1332 mpu_cmd(midi_dev, 0x83, 0); /* Enable metronome without accents */ in setup_metronome()
1348 mpu_cmd(midi_dev, 0x02, 0); /* Send MIDI start */ in mpu_start_timer()
1354 mpu_cmd(midi_dev, 0x35, 0); /* Enable mode messages to PC */ in mpu_start_timer()
1355 mpu_cmd(midi_dev, 0x38, 0); /* Enable sys common messages to PC */ in mpu_start_timer()
1356 mpu_cmd(midi_dev, 0x39, 0); /* Enable real time messages to PC */ in mpu_start_timer()
1357 mpu_cmd(midi_dev, 0x97, 0); /* Enable system exclusive messages to PC */ in mpu_start_timer()
1372 mpu_cmd(midi_dev, 0xE0, 50); in mpu_timer_open()
1379 mpu_cmd(midi_dev, 0xe7, 0x04); /* Send all clocks to host */ in mpu_timer_open()
1380 mpu_cmd(midi_dev, 0x95, 0); /* Enable clock to host */ in mpu_timer_open()
1390 mpu_cmd(midi_dev, 0x15, 0); /* Stop all */ in mpu_timer_close()
1391 mpu_cmd(midi_dev, 0x94, 0); /* Disable clock to host */ in mpu_timer_close()
1392 mpu_cmd(midi_dev, 0x8c, 0); /* Disable measure end messages to host */ in mpu_timer_close()
1426 mpu_cmd(midi_dev, 0x01, 0); /* Send MIDI stop */ in mpu_timer_event()
1434 mpu_cmd(midi_dev, 0x03, 0); /* Send MIDI continue */ in mpu_timer_event()
1446 if (mpu_cmd(midi_dev, 0xE0, parm) < 0) in mpu_timer_event()
1497 mpu_cmd(midi_dev, 0x3c, 0); /* Use CLS sync */ in mpu_timer_ioctl()
1499 mpu_cmd(midi_dev, 0x3d, 0); /* Use SMPTE sync */ in mpu_timer_ioctl()
1513 mpu_cmd(midi_dev, 0x01, 0); /* Send MIDI stop */ in mpu_timer_ioctl()
1521 mpu_cmd(midi_dev, 0x03, 0); /* Send MIDI continue */ in mpu_timer_ioctl()
1551 if ((ret = mpu_cmd(midi_dev, 0xE0, val)) < 0) in mpu_timer_ioctl()