/sound/pci/hda/ |
D | hda_generic.c | 251 static bool is_nid_contained(struct nid_path *path, hda_nid_t nid) in is_nid_contained() argument 253 return find_idx_in_nid_list(nid, path->path, path->depth) >= 0; in is_nid_contained() 261 struct nid_path *path; in get_nid_path() local 264 snd_array_for_each(&spec->paths, i, path) { in get_nid_path() 265 if (path->depth <= 0) in get_nid_path() 267 if ((!from_nid || path->path[0] == from_nid) && in get_nid_path() 268 (!to_nid || path->path[path->depth - 1] == to_nid)) { in get_nid_path() 270 (anchor_nid > 0 && is_nid_contained(path, anchor_nid)) || in get_nid_path() 271 (anchor_nid < 0 && !is_nid_contained(path, anchor_nid))) in get_nid_path() 272 return path; in get_nid_path() [all …]
|
D | patch_analog.c | 754 struct nid_path *path; in ad1988_auto_smux_enum_put() local 763 path = snd_hda_get_path_from_idx(codec, in ad1988_auto_smux_enum_put() 765 if (path) in ad1988_auto_smux_enum_put() 766 snd_hda_activate_path(codec, path, false, true); in ad1988_auto_smux_enum_put() 767 path = snd_hda_get_path_from_idx(codec, spec->smux_paths[val]); in ad1988_auto_smux_enum_put() 768 if (path) in ad1988_auto_smux_enum_put() 769 snd_hda_activate_path(codec, path, true, true); in ad1988_auto_smux_enum_put() 795 struct nid_path *path; in ad1988_auto_init() local 796 path = snd_hda_get_path_from_idx(codec, spec->smux_paths[i]); in ad1988_auto_init() 797 if (path) in ad1988_auto_init() [all …]
|
D | hda_generic.h | 43 hda_nid_t path[MAX_NID_PATH_DEPTH]; member 314 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path); 319 void snd_hda_activate_path(struct hda_codec *codec, struct nid_path *path,
|
D | patch_conexant.c | 481 struct nid_path *path; in olpc_xo_update_mic_pins() local 505 path = snd_hda_get_path_from_idx(codec, cur_input); in olpc_xo_update_mic_pins() 506 if (path) in olpc_xo_update_mic_pins() 507 snd_hda_activate_path(codec, path, true, false); in olpc_xo_update_mic_pins() 510 path = snd_hda_get_path_from_idx(codec, cur_input); in olpc_xo_update_mic_pins() 511 if (path) in olpc_xo_update_mic_pins() 512 snd_hda_activate_path(codec, path, false, false); in olpc_xo_update_mic_pins()
|
/sound/soc/intel/avs/ |
D | path.c | 40 avs_path_find_pipeline(struct avs_path *path, u32 template_id) in avs_path_find_pipeline() argument 44 list_for_each_entry(ppl, &path->ppl_list, node) in avs_path_find_pipeline() 55 struct avs_path *path; in avs_path_find_path() local 72 list_for_each_entry(path, &adev->path_list, node) { in avs_path_find_path() 73 if (path->template->owner == template) { in avs_path_find_path() 75 return path; in avs_path_find_path() 717 static int avs_path_init(struct avs_dev *adev, struct avs_path *path, in avs_path_init() argument 722 path->owner = adev; in avs_path_init() 723 path->template = template; in avs_path_init() 724 path->dma_id = dma_id; in avs_path_init() [all …]
|
D | path.h | 61 void avs_path_free(struct avs_path *path); 66 int avs_path_bind(struct avs_path *path); 67 int avs_path_unbind(struct avs_path *path); 68 int avs_path_reset(struct avs_path *path); 69 int avs_path_pause(struct avs_path *path); 70 int avs_path_run(struct avs_path *path, int trigger);
|
D | pcm.c | 23 struct avs_path *path; member 86 struct avs_path *path; in avs_dai_hw_params() local 104 path = avs_path_create(adev, dma_id, data->template, fe_hw_params, be_hw_params); in avs_dai_hw_params() 105 if (IS_ERR(path)) { in avs_dai_hw_params() 106 ret = PTR_ERR(path); in avs_dai_hw_params() 111 data->path = path; in avs_dai_hw_params() 139 if (!data->path) in avs_dai_prepare() 142 ret = avs_path_reset(data->path); in avs_dai_prepare() 148 ret = avs_path_pause(data->path); in avs_dai_prepare() 175 if (data->path) in avs_dai_nonhda_be_hw_params() [all …]
|
D | topology.c | 1240 struct avs_tplg_path *path; in avs_tplg_path_create() local 1244 path = devm_kzalloc(comp->card->dev, sizeof(*path), GFP_KERNEL); in avs_tplg_path_create() 1245 if (!path) in avs_tplg_path_create() 1248 path->owner = owner; in avs_tplg_path_create() 1249 INIT_LIST_HEAD(&path->ppl_list); in avs_tplg_path_create() 1250 INIT_LIST_HEAD(&path->node); in avs_tplg_path_create() 1263 ret = avs_parse_tokens(comp, path, parsers, num_parsers, tuples, offset); in avs_tplg_path_create() 1277 pipeline = avs_tplg_pipeline_create(comp, path, tuples, esize); in avs_tplg_path_create() 1284 list_add_tail(&pipeline->node, &path->ppl_list); in avs_tplg_path_create() 1289 return path; in avs_tplg_path_create() [all …]
|
D | apl.c | 174 struct avs_path *path; in apl_lp_streaming() local 178 list_for_each_entry(path, &adev->path_list, node) { in apl_lp_streaming() 181 list_for_each_entry(ppl, &path->ppl_list, node) { in apl_lp_streaming()
|
D | Makefile | 4 topology.o path.o pcm.o board_selection.o
|
/sound/soc/ |
D | soc-dapm.c | 509 struct snd_soc_dapm_path *path) in dapm_kcontrol_add_path() argument 513 list_add_tail(&path->list_kcontrol, &data->paths); in dapm_kcontrol_add_path() 534 #define dapm_kcontrol_for_each_path(path, kcontrol) \ argument 535 list_for_each_entry(path, dapm_kcontrol_get_path_list(kcontrol), \ 750 struct snd_soc_dapm_path *path, const char *control_name, in dapm_connect_mux() argument 777 path->name = e->texts[i]; in dapm_connect_mux() 778 path->connect = (i == item); in dapm_connect_mux() 833 struct snd_soc_dapm_path *path, const char *control_name) in dapm_connect_mixer() argument 838 for (i = 0; i < path->sink->num_kcontrols; i++) { in dapm_connect_mixer() 839 if (!strcmp(control_name, path->sink->kcontrol_news[i].name)) { in dapm_connect_mixer() [all …]
|
/sound/xen/ |
D | xen_snd_front_cfg.c | 151 const char *path, struct snd_pcm_hardware *pcm_hw) in cfg_hw_rates() argument 187 const char *path, struct snd_pcm_hardware *pcm_hw) in cfg_formats() argument 239 static void cfg_read_pcm_hw(const char *path, in cfg_read_pcm_hw() argument 254 val = xenbus_read_unsigned(path, XENSND_FIELD_CHANNELS_MIN, 0); in cfg_read_pcm_hw() 258 val = xenbus_read_unsigned(path, XENSND_FIELD_CHANNELS_MAX, 0); in cfg_read_pcm_hw() 262 list = xenbus_read(XBT_NIL, path, XENSND_FIELD_SAMPLE_RATES, &len); in cfg_read_pcm_hw() 264 cfg_hw_rates(list, len, path, pcm_hw); in cfg_read_pcm_hw() 268 list = xenbus_read(XBT_NIL, path, XENSND_FIELD_SAMPLE_FORMATS, &len); in cfg_read_pcm_hw() 270 cfg_formats(list, len, path, pcm_hw); in cfg_read_pcm_hw() 274 buf_sz = xenbus_read_unsigned(path, XENSND_FIELD_BUFFER_SIZE, 0); in cfg_read_pcm_hw() [all …]
|
/sound/soc/codecs/ |
D | wm8958-dsp2.c | 188 static void wm8958_dsp_start_mbc(struct snd_soc_component *component, int path) in wm8958_dsp_start_mbc() argument 228 path << WM8958_MBC_SEL_SHIFT | in wm8958_dsp_start_mbc() 232 static void wm8958_dsp_start_vss(struct snd_soc_component *component, int path) in wm8958_dsp_start_vss() argument 276 if (wm8994->mbc_ena[path]) in wm8958_dsp_start_vss() 278 if (wm8994->hpf2_ena[path]) in wm8958_dsp_start_vss() 280 if (wm8994->hpf1_ena[path]) in wm8958_dsp_start_vss() 282 if (wm8994->vss_ena[path]) in wm8958_dsp_start_vss() 290 path << WM8958_MBC_SEL_SHIFT | WM8958_MBC_ENA); in wm8958_dsp_start_vss() 293 static void wm8958_dsp_start_enh_eq(struct snd_soc_component *component, int path) in wm8958_dsp_start_enh_eq() argument 321 path << WM8958_MBC_SEL_SHIFT | WM8958_MBC_ENA); in wm8958_dsp_start_enh_eq() [all …]
|
D | lpass-wsa-macro.c | 1343 int path, in wsa_macro_enable_softclip_clk() argument 1347 (path * WSA_MACRO_RX_SOFTCLIP_OFFSET); in wsa_macro_enable_softclip_clk() 1348 u8 softclip_mux_mask = (1 << path); in wsa_macro_enable_softclip_clk() 1349 u8 softclip_mux_value = (1 << path); in wsa_macro_enable_softclip_clk() 1352 if (wsa->softclip_clk_users[path] == 0) { in wsa_macro_enable_softclip_clk() 1361 wsa->softclip_clk_users[path]++; in wsa_macro_enable_softclip_clk() 1363 wsa->softclip_clk_users[path]--; in wsa_macro_enable_softclip_clk() 1364 if (wsa->softclip_clk_users[path] == 0) { in wsa_macro_enable_softclip_clk() 1377 int path, int event) in wsa_macro_config_softclip() argument 1383 if (path == WSA_MACRO_COMP1) in wsa_macro_config_softclip() [all …]
|
/sound/core/ |
D | misc.c | 41 static const char *sanity_file_name(const char *path) in sanity_file_name() argument 43 if (*path == '/') in sanity_file_name() 44 return strrchr(path, '/') + 1; in sanity_file_name() 46 return path; in sanity_file_name() 51 void __snd_printk(unsigned int level, const char *path, int line, in __snd_printk() argument 87 printk(verbose_fmt, sanity_file_name(path), line, &vaf); in __snd_printk()
|
/sound/drivers/vx/ |
D | vx_hwdep.c | 56 char path[32]; in snd_vx_setup_firmware() local 60 sprintf(path, "vx/%s", fw_files[chip->type][i]); in snd_vx_setup_firmware() 61 if (request_firmware(&fw, path, chip->dev)) { in snd_vx_setup_firmware() 62 snd_printk(KERN_ERR "vx: can't load firmware %s\n", path); in snd_vx_setup_firmware()
|
/sound/soc/sh/rcar/ |
D | cmd.c | 31 static const u32 path[] = { in rsnd_cmd_init() local 41 if (ARRAY_SIZE(path) < rsnd_mod_id(mod) + 1) in rsnd_cmd_init() 59 data |= path[rsnd_mod_id(src)]; in rsnd_cmd_init() 64 data |= path[rsnd_mod_id(src)]; in rsnd_cmd_init() 84 data = path[rsnd_mod_id(src)] | in rsnd_cmd_init()
|
/sound/soc/qcom/qdsp6/ |
D | q6adm.h | 19 struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, 24 int q6adm_matrix_map(struct device *dev, int path,
|
D | q6adm.c | 322 int port_id, int path, int topology, in q6adm_device_open() argument 347 open->mode_of_operation = path; in q6adm_device_open() 383 struct q6copp *q6adm_open(struct device *dev, int port_id, int path, int rate, in q6adm_open() argument 422 ret = q6adm_device_open(adm, copp, port_id, path, topology, in q6adm_open() 459 int q6adm_matrix_map(struct device *dev, int path, in q6adm_matrix_map() argument 492 switch (path) { in q6adm_matrix_map() 500 dev_err(dev, "Wrong path set[%d]\n", path); in q6adm_matrix_map()
|
/sound/pci/pcxhr/ |
D | pcxhr_hwdep.c | 368 char path[32]; in pcxhr_setup_firmware() local 377 sprintf(path, "pcxhr/%s", fw_files[fw_set][i]); in pcxhr_setup_firmware() 378 if (request_firmware(&fw_entry, path, &mgr->pci->dev)) { in pcxhr_setup_firmware() 381 path); in pcxhr_setup_firmware()
|
/sound/pci/mixart/ |
D | mixart_hwdep.c | 562 char path[32]; in snd_mixart_setup_firmware() local 568 sprintf(path, "mixart/%s", fw_files[i]); in snd_mixart_setup_firmware() 569 if (request_firmware(&fw_entry, path, &mgr->pci->dev)) { in snd_mixart_setup_firmware() 571 "miXart: can't load firmware %s\n", path); in snd_mixart_setup_firmware()
|
/sound/soc/rockchip/ |
D | rockchip_pdm.c | 547 unsigned int path[PDM_PATH_MAX]; in rockchip_pdm_path_parse() local 556 path, cnt); in rockchip_pdm_path_parse() 561 if (path[i] >= PDM_PATH_MAX) in rockchip_pdm_path_parse() 564 val |= PDM_PATH(i, path[i]); in rockchip_pdm_path_parse()
|
/sound/soc/tegra/ |
D | tegra210_sfc.c | 3126 unsigned int channels, audio_bits, path; in tegra210_sfc_set_audio_cif() local 3150 path = SFC_RX_PATH; in tegra210_sfc_set_audio_cif() 3152 path = SFC_TX_PATH; in tegra210_sfc_set_audio_cif() 3154 cif_conf.stereo_conv = sfc->stereo_to_mono[path]; in tegra210_sfc_set_audio_cif() 3155 cif_conf.mono_conv = sfc->mono_to_stereo[path]; in tegra210_sfc_set_audio_cif()
|
D | tegra210_i2s.c | 604 unsigned int sample_size, channels, srate, val, reg, path; in tegra210_i2s_hw_params() local 651 path = I2S_RX_PATH; in tegra210_i2s_hw_params() 653 path = I2S_TX_PATH; in tegra210_i2s_hw_params() 671 cif_conf.mono_conv = i2s->mono_to_stereo[path]; in tegra210_i2s_hw_params() 672 cif_conf.stereo_conv = i2s->stereo_to_mono[path]; in tegra210_i2s_hw_params()
|
D | tegra210_admaif.c | 272 unsigned int reg, path; in tegra_admaif_hw_params() local 303 path = ADMAIF_TX_PATH; in tegra_admaif_hw_params() 306 path = ADMAIF_RX_PATH; in tegra_admaif_hw_params() 310 cif_conf.mono_conv = admaif->mono_to_stereo[path][dai->id]; in tegra_admaif_hw_params() 311 cif_conf.stereo_conv = admaif->stereo_to_mono[path][dai->id]; in tegra_admaif_hw_params()
|