Lines Matching refs:pcfg

1241 	union afe_port_config *pcfg = &port->port_cfg;
1243 pcfg->slim_cfg.sb_cfg_minor_version = AFE_API_VERSION_SLIMBUS_CONFIG;
1244 pcfg->slim_cfg.sample_rate = cfg->sample_rate;
1245 pcfg->slim_cfg.bit_width = cfg->bit_width;
1246 pcfg->slim_cfg.num_channels = cfg->num_channels;
1247 pcfg->slim_cfg.data_format = cfg->data_format;
1248 pcfg->slim_cfg.shared_ch_mapping[0] = cfg->ch_mapping[0];
1249 pcfg->slim_cfg.shared_ch_mapping[1] = cfg->ch_mapping[1];
1250 pcfg->slim_cfg.shared_ch_mapping[2] = cfg->ch_mapping[2];
1251 pcfg->slim_cfg.shared_ch_mapping[3] = cfg->ch_mapping[3];
1266 union afe_port_config *pcfg = &port->port_cfg;
1268 pcfg->tdm_cfg.tdm_cfg_minor_version = AFE_API_VERSION_TDM_CONFIG;
1269 pcfg->tdm_cfg.num_channels = cfg->num_channels;
1270 pcfg->tdm_cfg.sample_rate = cfg->sample_rate;
1271 pcfg->tdm_cfg.bit_width = cfg->bit_width;
1272 pcfg->tdm_cfg.data_format = cfg->data_format;
1273 pcfg->tdm_cfg.sync_mode = cfg->sync_mode;
1274 pcfg->tdm_cfg.sync_src = cfg->sync_src;
1275 pcfg->tdm_cfg.nslots_per_frame = cfg->nslots_per_frame;
1277 pcfg->tdm_cfg.slot_width = cfg->slot_width;
1278 pcfg->tdm_cfg.slot_mask = cfg->slot_mask;
1302 union afe_port_config *pcfg = &port->port_cfg;
1304 pcfg->hdmi_multi_ch.hdmi_cfg_minor_version =
1306 pcfg->hdmi_multi_ch.datatype = cfg->datatype;
1307 pcfg->hdmi_multi_ch.channel_allocation = cfg->channel_allocation;
1308 pcfg->hdmi_multi_ch.sample_rate = cfg->sample_rate;
1309 pcfg->hdmi_multi_ch.bit_width = cfg->bit_width;
1322 union afe_port_config *pcfg = &port->port_cfg;
1326 pcfg->i2s_cfg.i2s_cfg_minor_version = AFE_API_VERSION_I2S_CONFIG;
1327 pcfg->i2s_cfg.sample_rate = cfg->sample_rate;
1328 pcfg->i2s_cfg.bit_width = cfg->bit_width;
1329 pcfg->i2s_cfg.data_format = AFE_LINEAR_PCM_DATA;
1333 pcfg->i2s_cfg.ws_src = AFE_PORT_CONFIG_I2S_WS_SRC_INTERNAL;
1337 pcfg->i2s_cfg.ws_src = AFE_PORT_CONFIG_I2S_WS_SRC_EXTERNAL;
1352 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_SD0;
1355 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_SD1;
1358 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_SD2;
1361 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_SD3;
1371 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_QUAD01;
1374 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_QUAD23;
1384 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_6CHS;
1394 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_8CHS;
1410 switch (pcfg->i2s_cfg.channel_mode) {
1414 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_SD0;
1417 pcfg->i2s_cfg.channel_mode = AFE_PORT_I2S_SD2;
1422 pcfg->i2s_cfg.mono_stereo = AFE_PORT_I2S_STEREO;
1424 pcfg->i2s_cfg.mono_stereo = AFE_PORT_I2S_MONO;
1429 if (pcfg->i2s_cfg.channel_mode < AFE_PORT_I2S_QUAD01) {
1436 if (pcfg->i2s_cfg.channel_mode < AFE_PORT_I2S_6CHS) {
1443 if (pcfg->i2s_cfg.channel_mode < AFE_PORT_I2S_8CHS) {
1466 union afe_port_config *pcfg = &port->port_cfg;
1467 struct afe_param_id_cdc_dma_cfg *dma_cfg = &pcfg->dma_cfg;