Commit | Line | Data |
---|---|---|
5955815e TS |
1 | #ifndef SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED |
2 | #define SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED | |
3 | ||
bc8500da | 4 | #include <sound/pcm.h> |
03e2a67e | 5 | #include <sound/rawmidi.h> |
bc8500da | 6 | |
5955815e TS |
7 | #include "amdtp-stream.h" |
8 | ||
51c29fd2 TS |
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 | ||
f65be911 TS |
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 | ||
bc8500da TS |
20 | int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s, |
21 | struct snd_pcm_runtime *runtime); | |
22 | ||
03e2a67e TS |
23 | void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port, |
24 | struct snd_rawmidi_substream *midi); | |
25 | ||
5955815e TS |
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 |