Re: [RFC PATCH v2 1/7] ASoC: fsl_asrc: define functions for memory to memory usage

2023-08-01 Thread Daniel Baluta
> +static int fsl_asrc_m2m_check_format(u8 dir, u32 rate, u32 channels, u32 > format) > +{ > + u64 support_format = FSL_ASRC_FORMATS; > + > + if (channels < 1 || channels > 10) > + return -EINVAL; > + > + if (rate < 5512 || rate > 192000) > + return -E

[RFC PATCH v2 1/7] ASoC: fsl_asrc: define functions for memory to memory usage

2023-07-24 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage. m2m_start_part_one: first part of the start steps m2m_start_part_two: second part of the start steps m2m_stop_part_one: first part of stop steps m2m_stop_part_two: second part of stop steps m2m_check_format: check f