Lines Matching refs:format

69 static int skl_dsp_prepare(struct device *dev, unsigned int format,
92 ret = snd_hdac_dsp_prepare(stream, format, size, dmab);
438 * PCM format information, which we calculate in driver and resource values
449 struct skl_module_fmt *format = &fmt->inputs[0].fmt;
451 base_cfg->audio_fmt.number_of_channels = format->channels;
453 base_cfg->audio_fmt.s_freq = format->s_freq;
454 base_cfg->audio_fmt.bit_depth = format->bit_depth;
455 base_cfg->audio_fmt.valid_bit_depth = format->valid_bit_depth;
456 base_cfg->audio_fmt.ch_cfg = format->ch_cfg;
457 base_cfg->audio_fmt.sample_type = format->sample_type;
460 format->bit_depth, format->valid_bit_depth,
461 format->ch_cfg);
463 base_cfg->audio_fmt.channel_map = format->ch_map;
465 base_cfg->audio_fmt.interleaving = format->interleaving_style;
474 struct skl_module_fmt *format)
476 pin_fmt->number_of_channels = format->channels;
477 pin_fmt->s_freq = format->s_freq;
478 pin_fmt->bit_depth = format->bit_depth;
479 pin_fmt->valid_bit_depth = format->valid_bit_depth;
480 pin_fmt->ch_cfg = format->ch_cfg;
481 pin_fmt->sample_type = format->sample_type;
482 pin_fmt->channel_map = format->ch_map;
483 pin_fmt->interleaving = format->interleaving_style;
488 * can be followed by a generic extension containing audio format for all
499 struct skl_module_fmt *format;
516 format = &fmt->inputs[pin_res->pin_index].fmt;
517 fill_pin_params(&pin_fmt->audio_fmt, format);
527 format = &fmt->outputs[pin_res->pin_index].fmt;
528 fill_pin_params(&pin_fmt->audio_fmt, format);
733 struct skl_module_fmt *format = &fmt->outputs[0].fmt;
735 out_fmt->number_of_channels = (u8)format->channels;
736 out_fmt->s_freq = format->s_freq;
737 out_fmt->bit_depth = format->bit_depth;
738 out_fmt->valid_bit_depth = format->valid_bit_depth;
739 out_fmt->ch_cfg = format->ch_cfg;
741 out_fmt->channel_map = format->ch_map;
742 out_fmt->interleaving = format->interleaving_style;
743 out_fmt->sample_type = format->sample_type;
745 dev_dbg(skl->dev, "copier out format chan=%d fre=%d bitdepth=%d\n",
746 out_fmt->number_of_channels, format->s_freq, format->bit_depth);
790 * Here we calculate the copier module parameters, like PCM format, output
791 * format, gateway settings
811 * Mic select module take base module configuration and out-format
872 * base module format configuration
1021 * We first calculate the module format, based on module type and then
1044 dev_err(skl->dev, "Failed to set module format ret=%d\n", ret);
1158 struct skl_module_fmt *format;
1190 format = &fmt->inputs[0].fmt;
1191 fill_pin_params(&(pin_fmt.src_fmt), format);
1193 format = &fmt->outputs[src_index].fmt;
1194 fill_pin_params(&(pin_fmt.dst_fmt), format);