/** * struct fsl_asrc_m2m_cap - capability data * @fmt_in: input sample format * @fmt_out: output sample format * @chan_min: minimum channel number * @chan_max: maximum channel number * @rate_in: minimum rate * @rate_out: maximum rete
*/ struct fsl_asrc_m2m_cap {
u64 fmt_in;
u64 fmt_out; int chan_min; int chan_max; constunsignedint *rate_in; int rate_in_count; constunsignedint *rate_out; int rate_out_count;
};
/** * fsl_asrc_pair: ASRC Pair common data * * @asrc: pointer to its parent module * @error: error record * @index: pair index (ASRC_PAIR_A, ASRC_PAIR_B, ASRC_PAIR_C) * @channels: occupied channel number * @desc: input and output dma descriptors * @dma_chan: inputer and output DMA channels * @dma_data: private dma data * @pos: hardware pointer position * @req_dma_chan: flag to release dev_to_dev chan * @private: pair private area * @complete: dma task complete * @sample_format: format of m2m * @rate: rate of m2m * @buf_len: buffer length of m2m * @dma_buffer: buffer pointers * @first_convert: start of conversion * @ratio_mod_flag: flag for new ratio modifier * @ratio_mod: ratio modification
*/ struct fsl_asrc_pair { struct fsl_asrc *asrc; unsignedint error;
int asrc_rate;
snd_pcm_format_t asrc_format; bool use_edma;
struct dma_chan *(*get_dma_channel)(struct fsl_asrc_pair *pair, bool dir); int (*request_pair)(int channels, struct fsl_asrc_pair *pair); void (*release_pair)(struct fsl_asrc_pair *pair); int (*get_fifo_addr)(u8 dir, enum asrc_pair_index index); int (*m2m_get_cap)(struct fsl_asrc_m2m_cap *cap);
int (*m2m_prepare)(struct fsl_asrc_pair *pair); int (*m2m_start)(struct fsl_asrc_pair *pair); int (*m2m_unprepare)(struct fsl_asrc_pair *pair); int (*m2m_stop)(struct fsl_asrc_pair *pair);
int (*m2m_calc_out_len)(struct fsl_asrc_pair *pair, int input_buffer_length); int (*m2m_get_maxburst)(u8 dir, struct fsl_asrc_pair *pair); int (*m2m_pair_suspend)(struct fsl_asrc_pair *pair); int (*m2m_pair_resume)(struct fsl_asrc_pair *pair); int (*m2m_set_ratio_mod)(struct fsl_asrc_pair *pair, int val);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.