Takashi Sakamoto | 5955815 | 2015-09-19 11:21:55 +0900 | [diff] [blame] | 1 | #ifndef SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED |
| 2 | #define SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED |
| 3 | |
Takashi Sakamoto | bc8500d | 2015-09-19 11:21:57 +0900 | [diff] [blame] | 4 | #include <sound/pcm.h> |
| 5 | |
Takashi Sakamoto | 5955815 | 2015-09-19 11:21:55 +0900 | [diff] [blame] | 6 | #include "amdtp-stream.h" |
| 7 | |
Takashi Sakamoto | 51c29fd | 2015-09-19 11:21:56 +0900 | [diff] [blame] | 8 | int 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 Sakamoto | f65be91 | 2015-09-19 11:21:58 +0900 | [diff] [blame^] | 13 | void amdtp_am824_set_pcm_position(struct amdtp_stream *s, unsigned int index, |
| 14 | unsigned int position); |
| 15 | |
| 16 | void amdtp_am824_set_midi_position(struct amdtp_stream *s, |
| 17 | unsigned int position); |
| 18 | |
Takashi Sakamoto | bc8500d | 2015-09-19 11:21:57 +0900 | [diff] [blame] | 19 | int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s, |
| 20 | struct snd_pcm_runtime *runtime); |
| 21 | |
Takashi Sakamoto | 5955815 | 2015-09-19 11:21:55 +0900 | [diff] [blame] | 22 | int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit, |
| 23 | enum amdtp_stream_direction dir, enum cip_flags flags); |
| 24 | #endif |