12 May
2015
12 May
'15
8:42 p.m.
On Mon, May 11, 2015 at 06:24:42PM +0800, Zidan Wang wrote:
if (!sai->is_slave_mode) {
ret = fsl_sai_set_bclk(cpu_dai, tx,slot_width = sai->slot_width;
2 * word_width * params_rate(params));
if (ret)sai->slots * slot_width * params_rate(params));
This seems to make TDM configuration mandatory which seems like a step back - if it's been set up then of course we need to use it but if it's not been configured we should be able to just infer something from hw_params as we have been doing. Checking to see if the relevant values have been set and falling back to using hw_params seems better.
Otherwise this looks good.