Lines Matching defs:fmt
17 struct device *dev, struct nhlt_fmt *fmt,
22 struct nhlt_fmt_cfg *fmt_config = fmt->fmt_config;
25 dev_dbg(dev, "Format count =%d\n", fmt->fmt_count);
27 for (i = 0; i < fmt->fmt_count; i++) {
28 wfmt = &fmt_config->fmt_ext.fmt;
29 dev_dbg(dev, "ch=%d fmt=%d s_rate=%d\n", wfmt->channels,
55 dev_dbg(dev, "ch=%d fmt=%d s_rate=%d\n", num_channels, s_fmt, s_rate);
86 struct nhlt_fmt *fmt;
104 fmt = (struct nhlt_fmt *)(epnt->config.caps +
106 sp_config = skl_get_specific_cfg(dev, fmt, num_ch,
190 * Queries NHLT for all the fmt configuration for a particular endpoint and
195 struct nhlt_fmt *fmt, u8 id)
213 if (fmt->fmt_count == 0)
216 fmt_cfg = (struct nhlt_fmt_cfg *)fmt->fmt_config;
217 for (i = 0; i < fmt->fmt_count; i++) {
223 channels = wav_fmt->fmt.channels;
224 bps = wav_fmt->fmt.bits_per_sample;
225 fs = wav_fmt->fmt.samples_per_sec;
238 for (j = i; j < fmt->fmt_count; j++) {
242 if ((fs == wav_fmt->fmt.samples_per_sec) &&
243 (bps == wav_fmt->fmt.bits_per_sample)) {
245 wav_fmt->fmt.channels);
268 first_fmt_cfg = (struct nhlt_fmt_cfg *)fmt->fmt_config;
307 struct nhlt_fmt *fmt, u8 id)
316 fmt_cfg = (struct nhlt_fmt_cfg *)fmt->fmt_config;
354 struct nhlt_fmt *fmt;
363 fmt = (struct nhlt_fmt *)(epnt->config.caps
366 skl_get_ssp_clks(skl, ssp_clks, fmt, id);
367 skl_get_mclk(skl, ssp_clks, fmt, id);