ALSA: firewire-lib: move MIDI trigger helper function to AM824 layer
[deliverable/linux.git] / sound / firewire / amdtp-am824.h
CommitLineData
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
9int 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
14void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index,
15 unsigned int position);
16
17void amdtp_am824_set_midi_position(struct amdtp_stream *s,
18 unsigned int position);
19
bc8500da
TS
20int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s,
21 struct snd_pcm_runtime *runtime);
22
03e2a67e
TS
23void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port,
24 struct snd_rawmidi_substream *midi);
25
5955815e
TS
26int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit,
27 enum amdtp_stream_direction dir, enum cip_flags flags);
28#endif
This page took 0.025533 seconds and 5 git commands to generate.