blob: 7c21e9972fad1bc3998e6e5dbe42a5e340944775 [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>
5
Takashi Sakamoto59558152015-09-19 11:21:55 +09006#include "amdtp-stream.h"
7
Takashi Sakamoto51c29fd2015-09-19 11:21:56 +09008int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate,
9 unsigned int pcm_channels,
10 unsigned int midi_ports,
11 bool double_pcm_frames);
12
Takashi Sakamotof65be912015-09-19 11:21:58 +090013void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index,
14 unsigned int position);
15
16void amdtp_am824_set_midi_position(struct amdtp_stream *s,
17 unsigned int position);
18
Takashi Sakamotobc8500d2015-09-19 11:21:57 +090019int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s,
20 struct snd_pcm_runtime *runtime);
21
Takashi Sakamoto59558152015-09-19 11:21:55 +090022int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit,
23 enum amdtp_stream_direction dir, enum cip_flags flags);
24#endif