Home
last modified time | relevance | path

Searched refs:hw_cfg (Results 1 – 16 of 16) sorted by relevance

/linux/sound/hda/codecs/side-codecs/
H A Dcs35l41_hda_property.c246 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg; in generic_dsd_config() local
343 hw_cfg->spk_pos = cfg->channel[cs35l41->index]; in generic_dsd_config()
347 if (cfg->channel[i] == hw_cfg->spk_pos) in generic_dsd_config()
351 hw_cfg->bst_type = CS35L41_INT_BOOST; in generic_dsd_config()
352 hw_cfg->bst_ind = cfg->boost_ind_nanohenry; in generic_dsd_config()
353 hw_cfg->bst_ipk = cfg->boost_peak_milliamp; in generic_dsd_config()
354 hw_cfg->bst_cap = cfg->boost_cap_microfarad; in generic_dsd_config()
355 hw_cfg->gpio1.func = CS35L41_NOT_USED; in generic_dsd_config()
356 hw_cfg->gpio1.valid = true; in generic_dsd_config()
358 hw_cfg->bst_type = CS35L41_EXT_BOOST; in generic_dsd_config()
[all …]
H A Dcs35l41_hda.c651 if (cs35l41->hw_cfg.bst_type == CS35L41_INT_BOOST) in cs35l41_update_mixer()
660 if (cs35l41->hw_cfg.spk_pos == CS35L41_CENTER) { in cs35l41_update_mixer()
697 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST) in cs35l41_hda_play_start()
740 cs35l41_global_enable(dev, reg, cs35l41->hw_cfg.bst_type, 1, in cs35l41_hda_play_done()
753 cs35l41_global_enable(dev, reg, cs35l41->hw_cfg.bst_type, 0, in cs35l41_hda_pause_start()
765 if (cs35l41->hw_cfg.bst_type == CS35L41_EXT_BOOST) in cs35l41_hda_pause_done()
860 if (cs35l41->hw_cfg.spk_pos >= ARRAY_SIZE(channel_name)) in cs35l41_hda_channel_map()
864 channel_name[cs35l41->hw_cfg.spk_pos], in cs35l41_hda_channel_map()
871 if (cs35l41->hw_cfg.spk_pos == CS35L41_CENTER) in cs35l41_hda_channel_map()
874 rx_slot = &cs35l41->hw_cfg.spk_pos; in cs35l41_hda_channel_map()
[all …]
H A Dcs35l41_hda.h67 struct cs35l41_hw_cfg hw_cfg;
65 struct cs35l41_hw_cfg hw_cfg; global() member
/linux/sound/soc/codecs/
H A Dcs35l41.c362 switch (cs35l41->hw_cfg.bst_type) { in cs35l41_boost_enable()
471 if (cs35l41->hw_cfg.bst_type == CS35L41_SHD_BOOST_ACTV || in cs35l41_irq()
472 cs35l41->hw_cfg.bst_type == CS35L41_SHD_BOOST_PASS) { in cs35l41_irq()
521 ret = cs35l41_global_enable(cs35l41->dev, cs35l41->regmap, cs35l41->hw_cfg.bst_type, in cs35l41_main_amp_event()
525 ret = cs35l41_global_enable(cs35l41->dev, cs35l41->regmap, cs35l41->hw_cfg.bst_type, in cs35l41_main_amp_event()
898 struct cs35l41_hw_cfg *hw_cfg = &cs35l41->hw_cfg; in cs35l41_set_pdata() local
901 if (!hw_cfg->valid) in cs35l41_set_pdata()
904 if (hw_cfg->bst_type == CS35L41_EXT_BOOST_NO_VSPK_SWITCH) in cs35l41_set_pdata()
908 ret = cs35l41_init_boost(cs35l41->dev, cs35l41->regmap, hw_cfg); in cs35l41_set_pdata()
1012 cs35l41_handle_pdata(struct device * dev,struct cs35l41_hw_cfg * hw_cfg) cs35l41_handle_pdata() argument
1202 cs35l41_probe(struct cs35l41_private * cs35l41,const struct cs35l41_hw_cfg * hw_cfg) cs35l41_probe() argument
[all...]
H A Dcs35l41.h29 struct cs35l41_hw_cfg hw_cfg; member
38 int cs35l41_probe(struct cs35l41_private *cs35l41, const struct cs35l41_hw_cfg *hw_cfg);
H A Dcs35l41-i2c.c36 struct cs35l41_hw_cfg *hw_cfg = dev_get_platdata(dev); in cs35l41_i2c_probe() local
53 return cs35l41_probe(cs35l41, hw_cfg); in cs35l41_i2c_probe()
H A Dcs35l41-lib.c1141 struct cs35l41_hw_cfg *hw_cfg) in cs35l41_init_boost() argument
1145 switch (hw_cfg->bst_type) { in cs35l41_init_boost()
1150 ret = cs35l41_boost_config(dev, regmap, hw_cfg->bst_ind, in cs35l41_init_boost()
1151 hw_cfg->bst_cap, hw_cfg->bst_ipk); in cs35l41_init_boost()
1172 dev_err(dev, "Boost type %d not supported\n", hw_cfg->bst_type); in cs35l41_init_boost()
1368 int cs35l41_gpio_config(struct regmap *regmap, struct cs35l41_hw_cfg *hw_cfg) in cs35l41_gpio_config() argument
1370 struct cs35l41_gpio_cfg *gpio1 = &hw_cfg->gpio1; in cs35l41_gpio_config()
1371 struct cs35l41_gpio_cfg *gpio2 = &hw_cfg->gpio2; in cs35l41_gpio_config()
/linux/sound/soc/qcom/qdsp6/
H A Daudioreach.c655 struct apm_module_hw_ep_mf_cfg *hw_cfg; in audioreach_display_port_set_media_format()
668 hw_cfg = p; in audioreach_display_port_set_media_format()
669 param_data = &hw_cfg->param_data; in audioreach_display_port_set_media_format()
675 hw_cfg->mf.sample_rate = cfg->sample_rate; in audioreach_codec_dma_set_media_format()
676 hw_cfg->mf.bit_width = cfg->bit_width; in audioreach_codec_dma_set_media_format()
677 hw_cfg->mf.num_channels = cfg->num_channels; in audioreach_codec_dma_set_media_format()
678 hw_cfg->mf.data_format = module->data_format; in audioreach_codec_dma_set_media_format()
713 struct apm_module_hw_ep_mf_cfg *hw_cfg; in audioreach_codec_dma_set_media_format()
728 hw_cfg = p; in audioreach_codec_dma_set_media_format()
729 param_data = &hw_cfg in audioreach_codec_dma_set_media_format()
614 struct apm_module_hw_ep_mf_cfg *hw_cfg; audioreach_display_port_set_media_format() local
682 struct apm_module_hw_ep_mf_cfg *hw_cfg; audioreach_codec_dma_set_media_format() local
1000 struct apm_module_hw_ep_mf_cfg *hw_cfg; audioreach_i2s_set_media_format() local
[all...]
/linux/sound/soc/intel/avs/
H A Ddsp.c163 if (core_id >= adev->hw_cfg.dsp_cores) { in avs_dsp_get_core()
204 if (core_id >= adev->hw_cfg.dsp_cores) { in avs_dsp_put_core()
H A Dloader.c691 ret = avs_ipc_get_hw_config(adev, &adev->hw_cfg); in avs_dsp_alloc_resources()
704 adev->hw_cfg.i2s_caps.ctrl_count = link->slcount; in avs_dsp_alloc_resources()
707 adev->core_refs = devm_kcalloc(adev->dev, adev->hw_cfg.dsp_cores, in avs_dsp_alloc_resources()
H A Dboard_selection.c505 int max_ssps = adev->hw_cfg.i2s_caps.ctrl_count; in avs_register_i2s_test_boards()
559 int num_ssps = adev->hw_cfg.i2s_caps.ctrl_count; in avs_register_i2s_boards()
H A Dpcm.c1489 ssp_count = adev->hw_cfg.i2s_caps.ctrl_count; in avs_register_i2s_component()
/linux/include/sound/
H A Dcs35l41.h913 int cs35l41_gpio_config(struct regmap *regmap, struct cs35l41_hw_cfg *hw_cfg);
922 struct cs35l41_hw_cfg *hw_cfg);
/linux/drivers/net/ethernet/atheros/alx/
H A Dhw.c853 u32 cfg, hw_cfg; in alx_phy_configured() local
857 hw_cfg = alx_get_phy_config(hw); in alx_phy_configured()
859 if (hw_cfg == ALX_DRV_PHY_UNKNOWN) in alx_phy_configured()
862 return cfg == hw_cfg; in alx_phy_configured()
/linux/drivers/net/ethernet/microchip/
H A Dlan743x_main.c41 u32 hw_cfg; in pci11x1x_strap_get_status() local
56 hw_cfg = lan743x_csr_read(adapter, HW_CFG); in pci11x1x_strap_get_status()
60 hw_cfg & HW_CFG_RST_PROTECT_)) || in pci11x1x_strap_get_status()
3959 adapter->hw_cfg = data; in lan743x_pm_suspend()
3985 lan743x_csr_write(adapter, HW_CFG, adapter->hw_cfg); in lan743x_pm_resume()
H A Dlan743x_main.h1094 u32 hw_cfg; member