Lines Matching defs:fmt

120 	dev_dbg(skl->dev, "channels = %d\n", iface->inputs[0].fmt.channels);
121 dev_dbg(skl->dev, "s_freq = %d\n", iface->inputs[0].fmt.s_freq);
122 dev_dbg(skl->dev, "ch_cfg = %d\n", iface->inputs[0].fmt.ch_cfg);
124 iface->inputs[0].fmt.valid_bit_depth);
126 dev_dbg(skl->dev, "channels = %d\n", iface->outputs[0].fmt.channels);
127 dev_dbg(skl->dev, "s_freq = %d\n", iface->outputs[0].fmt.s_freq);
129 iface->outputs[0].fmt.valid_bit_depth);
130 dev_dbg(skl->dev, "ch_cfg = %d\n", iface->outputs[0].fmt.ch_cfg);
133 static void skl_tplg_update_chmap(struct skl_module_fmt *fmt, int chs)
147 fmt->ch_map = slot_map;
150 static void skl_tplg_update_params(struct skl_module_fmt *fmt,
154 fmt->s_freq = params->s_freq;
156 fmt->channels = params->ch;
157 skl_tplg_update_chmap(fmt, fmt->channels);
160 fmt->valid_bit_depth = skl_get_bit_depth(params->s_fmt);
166 switch (fmt->valid_bit_depth) {
168 fmt->bit_depth = fmt->valid_bit_depth;
172 fmt->bit_depth = SKL_DEPTH_32BIT;
198 in_fmt = &m_cfg->module->formats[m_cfg->fmt_idx].inputs[0].fmt;
199 out_fmt = &m_cfg->module->formats[m_cfg->fmt_idx].outputs[0].fmt;
243 in_fmt = &mcfg->module->formats[mcfg->fmt_idx].inputs[0].fmt;
244 out_fmt = &mcfg->module->formats[mcfg->fmt_idx].outputs[0].fmt;
303 s_freq = m_iface->inputs[0].fmt.s_freq;
304 s_fmt = m_iface->inputs[0].fmt.valid_bit_depth;
305 s_cont = m_iface->inputs[0].fmt.bit_depth;
306 ch = m_iface->inputs[0].fmt.channels;
313 s_freq = m_iface->outputs[0].fmt.s_freq;
314 s_fmt = m_iface->outputs[0].fmt.valid_bit_depth;
315 s_cont = m_iface->outputs[0].fmt.bit_depth;
316 ch = m_iface->outputs[0].fmt.channels;
319 s_freq = m_iface->inputs[0].fmt.s_freq;
320 s_fmt = m_iface->inputs[0].fmt.valid_bit_depth;
321 s_cont = m_iface->inputs[0].fmt.bit_depth;
322 ch = m_iface->inputs[0].fmt.channels;
340 dev_err(skl->dev, "PCM: ch %d, freq %d, fmt %d/%d\n",
604 struct skl_pipe_fmt *fmt = NULL;
629 fmt = &pconfig->in_fmt;
631 fmt = &pconfig->out_fmt;
634 fmt->channels, fmt->freq, fmt->bps)) {
1616 format = &mconfig->module->formats[mconfig->fmt_idx].inputs[0].fmt;
1618 format = &mconfig->module->formats[mconfig->fmt_idx].outputs[0].fmt;
1831 dev_err(dai->dev, "Blob NULL for id:%d type:%d dirn:%d ch:%d, freq:%d, fmt:%d\n",
1946 struct skl_pipe_fmt *fmt;
1951 fmt = &pipe->configs[conf_idx].in_fmt;
1955 fmt = &pipe->configs[conf_idx].out_fmt;
1967 fmt->freq = tkn_val;
1971 fmt->channels = tkn_val;
1975 fmt->bps = tkn_val;
2203 struct skl_module_iface *fmt,
2208 if (!fmt)
2213 dst_fmt = &fmt->inputs[fmt_idx].fmt;
2217 dst_fmt = &fmt->outputs[fmt_idx].fmt;
2758 dst_fmt[i].fmt.channels = src_fmt[i].channels;
2759 dst_fmt[i].fmt.s_freq = src_fmt[i].freq;
2760 dst_fmt[i].fmt.bit_depth = src_fmt[i].bit_depth;
2761 dst_fmt[i].fmt.valid_bit_depth = src_fmt[i].valid_bit_depth;
2762 dst_fmt[i].fmt.ch_cfg = src_fmt[i].ch_cfg;
2763 dst_fmt[i].fmt.ch_map = src_fmt[i].ch_map;
2764 dst_fmt[i].fmt.interleaving_style =
2766 dst_fmt[i].fmt.sample_type = src_fmt[i].sample_type;
3199 struct skl_module_iface *fmt,
3207 if (!fmt)
3212 dst_fmt = &fmt->inputs[fmt_idx];
3216 dst_fmt = &fmt->outputs[fmt_idx];
3224 mod_fmt = &dst_fmt->fmt;
3291 struct skl_module_iface *fmt = NULL;
3301 fmt = &mod->formats[intf_val_idx];
3393 if (!fmt)
3396 fmt->fmt_idx = tkn_elem->value;
3415 if (!fmt)
3422 if (!fmt)
3437 ret = skl_tplg_manifest_fill_fmt(dev, fmt, tkn_elem,