dsp_chn_alloc
error = dsp_chn_alloc(d, &priv->wrch, PCMDIR_PLAY, flags, td);
error = dsp_chn_alloc(d, &priv->rdch, PCMDIR_REC, flags, td);