blob: 65e6093a44609ce5534e62808bd433286735e5e8 [file] [log] [blame]
Takashi Sakamoto59558152015-09-19 11:21:55 +09001#ifndef SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED
2#define SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED
3
Takashi Sakamotobc8500d2015-09-19 11:21:57 +09004#include <sound/pcm.h>
Takashi Sakamoto03e2a672015-09-19 11:21:59 +09005#include <sound/rawmidi.h>
Takashi Sakamotobc8500d2015-09-19 11:21:57 +09006
Takashi Sakamoto59558152015-09-19 11:21:55 +09007#include "amdtp-stream.h"
8
Takashi Sakamoto51c29fd2015-09-19 11:21:56 +09009int 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 Sakamotof65be912015-09-19 11:21:58 +090014void 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
Takashi Sakamotobc8500d2015-09-19 11:21:57 +090020int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s,
21 struct snd_pcm_runtime *runtime);
22
Takashi Sakamoto03e2a672015-09-19 11:21:59 +090023void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port,
24 struct snd_rawmidi_substream *midi);
25
Takashi Sakamoto59558152015-09-19 11:21:55 +090026int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit,
27 enum amdtp_stream_direction dir, enum cip_flags flags);
28#endif