Takashi Sakamoto | 5955815 | 2015-09-19 11:21:55 +0900 | [diff] [blame] | 1 | #ifndef SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED |
| 2 | #define SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED |
| 3 | |
Takashi Sakamoto | bc8500d | 2015-09-19 11:21:57 +0900 | [diff] [blame] | 4 | #include <sound/pcm.h> |
Takashi Sakamoto | 03e2a67 | 2015-09-19 11:21:59 +0900 | [diff] [blame^] | 5 | #include <sound/rawmidi.h> |
Takashi Sakamoto | bc8500d | 2015-09-19 11:21:57 +0900 | [diff] [blame] | 6 | |
Takashi Sakamoto | 5955815 | 2015-09-19 11:21:55 +0900 | [diff] [blame] | 7 | #include "amdtp-stream.h" |
| 8 | |
Takashi Sakamoto | 51c29fd | 2015-09-19 11:21:56 +0900 | [diff] [blame] | 9 | int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate, |
| 10 | unsigned int pcm_channels, |
| 11 | unsigned int midi_ports, |
| 12 | bool double_pcm_frames); |
| 13 | |
Takashi Sakamoto | f65be91 | 2015-09-19 11:21:58 +0900 | [diff] [blame] | 14 | void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index, |
| 15 | unsigned int position); |
| 16 | |
| 17 | void amdtp_am824_set_midi_position(struct amdtp_stream *s, |
| 18 | unsigned int position); |
| 19 | |
Takashi Sakamoto | bc8500d | 2015-09-19 11:21:57 +0900 | [diff] [blame] | 20 | int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s, |
| 21 | struct snd_pcm_runtime *runtime); |
| 22 | |
Takashi Sakamoto | 03e2a67 | 2015-09-19 11:21:59 +0900 | [diff] [blame^] | 23 | void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port, |
| 24 | struct snd_rawmidi_substream *midi); |
| 25 | |
Takashi Sakamoto | 5955815 | 2015-09-19 11:21:55 +0900 | [diff] [blame] | 26 | int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit, |
| 27 | enum amdtp_stream_direction dir, enum cip_flags flags); |
| 28 | #endif |