Lines Matching defs:cfg
196 * @cfg: new configuration for the stream
198 * This API will configure SLIMbus stream with config parameters from cfg.
203 struct slim_stream_config *cfg)
214 num_ports = hweight32(cfg->port_mask);
220 rt->rate = cfg->rate;
221 rt->bps = cfg->bps;
222 rt->direction = cfg->direction;
224 prrate = slim_get_prate_code(cfg->rate);
227 cfg->rate);
231 if (cfg->rate % ctrl->a_framer->superfreq) {
236 if (cfg->direction == SNDRV_PCM_STREAM_PLAYBACK)
244 rt->ratem = cfg->rate/ctrl->a_framer->superfreq;
247 for_each_set_bit(port_id, &cfg->port_mask, SLIM_DEVICE_MAX_PORTS) {
252 port->ch.id = cfg->chs[i];
257 if (cfg->direction == SNDRV_PCM_STREAM_PLAYBACK)