2015-09-19 10:21:55 +08:00
|
|
|
#ifndef SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED
|
|
|
|
#define SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED
|
|
|
|
|
2015-09-19 10:21:57 +08:00
|
|
|
#include <sound/pcm.h>
|
2015-09-19 10:21:59 +08:00
|
|
|
#include <sound/rawmidi.h>
|
2015-09-19 10:21:57 +08:00
|
|
|
|
2015-09-19 10:21:55 +08:00
|
|
|
#include "amdtp-stream.h"
|
|
|
|
|
2015-09-19 10:21:56 +08:00
|
|
|
int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate,
|
|
|
|
unsigned int pcm_channels,
|
|
|
|
unsigned int midi_ports,
|
|
|
|
bool double_pcm_frames);
|
|
|
|
|
2015-09-19 10:21:58 +08:00
|
|
|
void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index,
|
|
|
|
unsigned int position);
|
|
|
|
|
|
|
|
void amdtp_am824_set_midi_position(struct amdtp_stream *s,
|
|
|
|
unsigned int position);
|
|
|
|
|
2015-09-19 10:21:57 +08:00
|
|
|
int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s,
|
|
|
|
struct snd_pcm_runtime *runtime);
|
|
|
|
|
2015-09-19 10:21:59 +08:00
|
|
|
void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port,
|
|
|
|
struct snd_rawmidi_substream *midi);
|
|
|
|
|
2015-09-19 10:21:55 +08:00
|
|
|
int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit,
|
|
|
|
enum amdtp_stream_direction dir, enum cip_flags flags);
|
|
|
|
#endif
|