Lines Matching refs:component
279 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in peb2466_lkup_ctrl_put() local
280 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_lkup_ctrl_put()
300 static int peb2466_add_lkup_ctrl(struct snd_soc_component *component, in peb2466_add_lkup_ctrl() argument
320 return snd_soc_add_component_controls(component, &control, 1); in peb2466_add_lkup_ctrl()
380 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in peb2466_tg_freq_get() local
381 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_tg_freq_get()
418 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in peb2466_tg_freq_put() local
419 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_tg_freq_put()
668 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(dai->component); in peb2466_dai_set_tdm_slot()
735 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(dai->component); in peb2466_dai_set_fmt()
757 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(dai->component); in peb2466_dai_hw_params()
795 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(dai->component); in peb2466_dai_startup()
934 static int peb2466_fw_parse_thfilter(struct snd_soc_component *component, in peb2466_fw_parse_thfilter() argument
937 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_fw_parse_thfilter()
942 dev_info(component->dev, "fw TH filter: mask %x, %*phN\n", *data, in peb2466_fw_parse_thfilter()
983 static int peb2466_fw_parse_imr1filter(struct snd_soc_component *component, in peb2466_fw_parse_imr1filter() argument
986 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_fw_parse_imr1filter()
991 dev_info(component->dev, "fw IM/R1 filter: mask %x, %*phN\n", *data, in peb2466_fw_parse_imr1filter()
1026 static int peb2466_fw_parse_frxfilter(struct snd_soc_component *component, in peb2466_fw_parse_frxfilter() argument
1029 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_fw_parse_frxfilter()
1034 dev_info(component->dev, "fw FRX filter: mask %x, %*phN\n", *data, in peb2466_fw_parse_frxfilter()
1064 static int peb2466_fw_parse_frrfilter(struct snd_soc_component *component, in peb2466_fw_parse_frrfilter() argument
1067 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_fw_parse_frrfilter()
1072 dev_info(component->dev, "fw FRR filter: mask %x, %*phN\n", *data, in peb2466_fw_parse_frrfilter()
1102 static int peb2466_fw_parse_axfilter(struct snd_soc_component *component, in peb2466_fw_parse_axfilter() argument
1105 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_fw_parse_axfilter()
1110 dev_info(component->dev, "fw AX filter: mask %x, %*phN\n", *data, in peb2466_fw_parse_axfilter()
1140 static int peb2466_fw_parse_arfilter(struct snd_soc_component *component, in peb2466_fw_parse_arfilter() argument
1143 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_fw_parse_arfilter()
1148 dev_info(component->dev, "fw AR filter: mask %x, %*phN\n", *data, in peb2466_fw_parse_arfilter()
1185 static int peb2466_fw_parse_axtable(struct snd_soc_component *component, in peb2466_fw_parse_axtable() argument
1188 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_fw_parse_axtable()
1218 dev_err(component->dev, "fw AX table lng %u invalid\n", lng); in peb2466_fw_parse_axtable()
1227 dev_err(component->dev, "fw AX table index %u out of table[%u]\n", in peb2466_fw_parse_axtable()
1232 dev_info(component->dev, in peb2466_fw_parse_axtable()
1273 ret = peb2466_add_lkup_ctrl(component, lkup_ctrl, in peb2466_fw_parse_axtable()
1289 static int peb2466_fw_parse_artable(struct snd_soc_component *component, in peb2466_fw_parse_artable() argument
1292 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_fw_parse_artable()
1322 dev_err(component->dev, "fw AR table lng %u invalid\n", lng); in peb2466_fw_parse_artable()
1331 dev_err(component->dev, "fw AR table index %u out of table[%u]\n", in peb2466_fw_parse_artable()
1336 dev_info(component->dev, in peb2466_fw_parse_artable()
1377 ret = peb2466_add_lkup_ctrl(component, lkup_ctrl, in peb2466_fw_parse_artable()
1390 int (*parse)(struct snd_soc_component *component,
1438 static int peb2466_fw_parse(struct snd_soc_component *component, in peb2466_fw_parse() argument
1472 dev_err(component->dev, "fw size %zu, exp at least 4\n", left); in peb2466_fw_parse()
1479 dev_err(component->dev, "fw magic 0x%04x exp 0x2466\n", val16); in peb2466_fw_parse()
1488 dev_err(component->dev, "fw magic 0x%04x exp 0x0100\n", val16); in peb2466_fw_parse()
1496 dev_err(component->dev, "fw %td/%zu left %zu, exp at least 6\n", in peb2466_fw_parse()
1505 dev_err(component->dev, "fw %td/%zu tag 0x%04x unknown\n", in peb2466_fw_parse()
1510 dev_err(component->dev, "fw %td/%zu tag 0x%04x lng %u, exp [%u;%u]\n", in peb2466_fw_parse()
1517 dev_err(component->dev, "fw %td/%zu tag 0x%04x lng %u, left %zu\n", in peb2466_fw_parse()
1523 ret = tag_def->parse(component, tag, lng, buf); in peb2466_fw_parse()
1525 dev_err(component->dev, "fw %td/%zu tag 0x%04x lng %u parse failed\n", in peb2466_fw_parse()
1536 static int peb2466_load_coeffs(struct snd_soc_component *component, const char *fw_name) in peb2466_load_coeffs() argument
1541 ret = request_firmware(&fw, fw_name, component->dev); in peb2466_load_coeffs()
1545 ret = peb2466_fw_parse(component, fw->data, fw->size); in peb2466_load_coeffs()
1551 static int peb2466_component_probe(struct snd_soc_component *component) in peb2466_component_probe() argument
1553 struct peb2466 *peb2466 = snd_soc_component_get_drvdata(component); in peb2466_component_probe()
1567 return peb2466_load_coeffs(component, firmware_name); in peb2466_component_probe()