diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-09-19 04:21:58 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-09-29 12:48:36 +0200 |
commit | f65be911c0e13fab28919e17c9fa00c38dc4ff2f (patch) | |
tree | c525b5eea0fe8faf62e811d9fb4aa4e5147ae18f /sound/firewire/amdtp-am824.h | |
parent | ALSA: firewire-lib: move PCM substream constraint to AM824 layer (diff) | |
download | linux-f65be911c0e13fab28919e17c9fa00c38dc4ff2f.tar.xz linux-f65be911c0e13fab28919e17c9fa00c38dc4ff2f.zip |
ALSA: firewire-lib: add helper functions to set positions of data channels
In IEC 61883-6, several types of data are available in AM824 format. The
data is transferred in each data channel. The position of data channel in
data block differs depending on model.
Current implementation has an array to map the index of data channel in an
data block to the position of actual data channel. The implementation
allows each driver to access the mapping directly.
In later commit, the mapping is in specific structure pushed into an
opaque pointer. Helper functions are required.
This commit adds the helper functions for this purpose. In IEC 61883-6,
AM824 format supports many data types, while this specification easily
causes over-engineering. Current AM824 implementation is allowed to handle
two types of data, Multi Bit Linear Audio data (=PCM samples) and MIDI
conformant data (=MIDI messages).
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp-am824.h')
-rw-r--r-- | sound/firewire/amdtp-am824.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/firewire/amdtp-am824.h b/sound/firewire/amdtp-am824.h index 4aaed9048d82..7c21e9972fad 100644 --- a/sound/firewire/amdtp-am824.h +++ b/sound/firewire/amdtp-am824.h @@ -10,6 +10,12 @@ int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate, unsigned int midi_ports, bool double_pcm_frames); +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); + int amdtp_am824_add_pcm_hw_constraints(struct amdtp_stream *s, struct snd_pcm_runtime *runtime); |