#ifndef SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED #define SOUND_FIREWIRE_AMDTP_AM824_H_INCLUDED #include <sound/pcm.h> #include <sound/rawmidi.h> #include "amdtp-stream.h" #define AM824_IN_PCM_FORMAT_BITS SNDRV_PCM_FMTBIT_S32 #define AM824_OUT_PCM_FORMAT_BITS (SNDRV_PCM_FMTBIT_S16 | \ SNDRV_PCM_FMTBIT_S32) /* * This module supports maximum 64 PCM channels for one PCM stream * This is for our convenience. */ #define AM824_MAX_CHANNELS_FOR_PCM 64 /* * AMDTP packet can include channels for MIDI conformant data. * Each MIDI conformant data channel includes 8 MPX-MIDI data stream. * Each MPX-MIDI data stream includes one data stream from/to MIDI ports. * * This module supports maximum 1 MIDI conformant data channels. * Then this AMDTP packets can transfer maximum 8 MIDI data streams. */ #define AM824_MAX_CHANNELS_FOR_MIDI 1 int amdtp_am824_set_parameters(struct amdtp_stream *s, unsigned int rate, unsigned int pcm_channels, 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); void amdtp_am824_set_pcm_format(struct amdtp_stream *s, snd_pcm_format_t format); void amdtp_am824_midi_trigger(struct amdtp_stream *s, unsigned int port, struct snd_rawmidi_substream *midi); int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit, enum amdtp_stream_direction dir, enum cip_flags flags); #endif active' href='/cgit.cgi/linux/net-next.git/log/net/rds/af_rds.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/rds/af_rds.c?h=nds-private-remove&id=9b256714979fad61ae11d90b53cf67dd5e6484eb'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/rds/af_rds.c?h=nds-private-remove&id=9b256714979fad61ae11d90b53cf67dd5e6484eb'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/rds/af_rds.c?h=nds-private-remove&id=9b256714979fad61ae11d90b53cf67dd5e6484eb'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/rds/af_rds.c'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='9b256714979fad61ae11d90b53cf67dd5e6484eb'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=9b256714979fad61ae11d90b53cf67dd5e6484eb'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&id=9b256714979fad61ae11d90b53cf67dd5e6484eb'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/rds?h=nds-private-remove&id=9b256714979fad61ae11d90b53cf67dd5e6484eb'>rds</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/rds/af_rds.c?h=nds-private-remove&id=9b256714979fad61ae11d90b53cf67dd5e6484eb'>af_rds.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/rds/af_rds.c?h=nds-private-remove&id=9b256714979fad61ae11d90b53cf67dd5e6484eb&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>