Home
last modified time | relevance | path

Searched refs:core (Results 1 – 25 of 74) sorted by relevance

123

/sound/soc/qcom/qdsp6/
Dq6core.c72 struct q6core *core = dev_get_drvdata(&adev->dev); in q6core_callback() local
83 core->get_version_supported = false; in q6core_callback()
84 core->resp_received = true; in q6core_callback()
88 core->fwk_version_supported = false; in q6core_callback()
89 core->resp_received = true; in q6core_callback()
93 core->get_state_supported = false; in q6core_callback()
94 core->resp_received = true; in q6core_callback()
104 core->fwk_version = kmemdup(data->payload, in q6core_callback()
108 if (!core->fwk_version) in q6core_callback()
111 core->fwk_version_supported = true; in q6core_callback()
[all …]
/sound/soc/codecs/
Dwl1273.c25 struct wl1273_core *core; member
29 static int snd_wl1273_fm_set_i2s_mode(struct wl1273_core *core, in snd_wl1273_fm_set_i2s_mode() argument
32 struct device *dev = &core->client->dev; in snd_wl1273_fm_set_i2s_mode()
39 mutex_lock(&core->lock); in snd_wl1273_fm_set_i2s_mode()
41 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode()
109 dev_dbg(dev, "core->i2s_mode: 0x%04x\n", core->i2s_mode); in snd_wl1273_fm_set_i2s_mode()
112 if (core->i2s_mode != mode) { in snd_wl1273_fm_set_i2s_mode()
113 r = core->write(core, WL1273_I2S_MODE_CONFIG_SET, mode); in snd_wl1273_fm_set_i2s_mode()
117 core->i2s_mode = mode; in snd_wl1273_fm_set_i2s_mode()
118 r = core->write(core, WL1273_AUDIO_ENABLE, in snd_wl1273_fm_set_i2s_mode()
[all …]
Dcs47l15.c42 struct madera_priv core; member
74 struct madera_priv *priv = &cs47l15->core; in cs47l15_adsp_power_ev()
88 ret = madera_set_adsp_clk(&cs47l15->core, w->shift, freq); in cs47l15_adsp_power_ev()
1241 struct madera_priv *priv = &cs47l15->core; in cs47l15_open()
1260 struct madera_priv *priv = &cs47l15->core; in cs47l15_adsp2_irq()
1280 struct madera *madera = cs47l15->core.madera; in cs47l15_component_probe()
1307 wm_adsp2_component_probe(&cs47l15->core.adsp[0], component); in cs47l15_component_probe()
1315 struct madera *madera = cs47l15->core.madera; in cs47l15_component_remove()
1321 wm_adsp2_component_remove(&cs47l15->core.adsp[0], component); in cs47l15_component_remove()
1383 cs47l15->core.madera = madera; in cs47l15_probe()
[all …]
Dcs47l24.c36 struct arizona_priv core; member
1076 struct arizona *arizona = priv->core.arizona; in cs47l24_open()
1090 return wm_adsp_compr_open(&priv->core.adsp[n_adsp], stream); in cs47l24_open()
1096 struct arizona *arizona = priv->core.arizona; in cs47l24_adsp2_irq()
1102 ret = wm_adsp_compr_handle_irq(&priv->core.adsp[i]); in cs47l24_adsp2_irq()
1106 info.core = i; in cs47l24_adsp2_irq()
1125 struct arizona *arizona = priv->core.arizona; in cs47l24_component_probe()
1138 ret = wm_adsp2_component_probe(&priv->core.adsp[1], component); in cs47l24_component_probe()
1142 ret = wm_adsp2_component_probe(&priv->core.adsp[2], component); in cs47l24_component_probe()
1157 wm_adsp2_component_remove(&priv->core.adsp[1], component); in cs47l24_component_probe()
[all …]
Dcs47l35.c36 struct madera_priv core; member
92 struct madera_priv *priv = &cs47l35->core; in cs47l35_adsp_power_ev()
109 ret = madera_set_adsp_clk(&cs47l35->core, w->shift, freq); in cs47l35_adsp_power_ev()
1505 struct madera_priv *priv = &cs47l35->core; in cs47l35_open()
1526 struct madera_priv *priv = &cs47l35->core; in cs47l35_adsp2_irq()
1559 struct madera *madera = cs47l35->core.madera; in cs47l35_component_probe()
1587 wm_adsp2_component_probe(&cs47l35->core.adsp[i], component); in cs47l35_component_probe()
1595 struct madera *madera = cs47l35->core.madera; in cs47l35_component_remove()
1603 wm_adsp2_component_remove(&cs47l35->core.adsp[i], component); in cs47l35_component_remove()
1663 cs47l35->core.madera = madera; in cs47l35_probe()
[all …]
Dsi476x.c68 struct si476x_core *core = i2c_mfd_cell_to_core(codec_dai->dev); in si476x_codec_set_dai_fmt() local
132 si476x_core_lock(core); in si476x_codec_set_dai_fmt()
138 si476x_core_unlock(core); in si476x_codec_set_dai_fmt()
152 struct si476x_core *core = i2c_mfd_cell_to_core(dai->dev); in si476x_codec_hw_params() local
178 si476x_core_lock(core); in si476x_codec_hw_params()
197 si476x_core_unlock(core); in si476x_codec_hw_params()
Dcs47l92.c36 struct madera_priv core; member
60 struct madera_priv *priv = &cs47l92->core; in cs47l92_put_demux()
141 struct madera_priv *priv = &cs47l92->core; in cs47l92_adsp_power_ev()
155 ret = madera_set_adsp_clk(&cs47l92->core, w->shift, freq); in cs47l92_adsp_power_ev()
173 struct madera_priv *priv = &cs47l92->core; in cs47l92_outclk_ev()
1839 struct madera_priv *priv = &cs47l92->core; in cs47l92_open()
1858 struct madera_priv *priv = &cs47l92->core; in cs47l92_adsp2_irq()
1881 struct madera *madera = cs47l92->core.madera; in cs47l92_component_probe()
1908 return wm_adsp2_component_probe(&cs47l92->core.adsp[0], component); in cs47l92_component_probe()
1914 struct madera *madera = cs47l92->core.madera; in cs47l92_component_remove()
[all …]
Dwm5102.c37 struct arizona_priv core; member
1915 return wm_adsp_compr_open(&priv->core.adsp[0], stream); in wm5102_open()
1921 struct arizona *arizona = priv->core.arizona; in wm5102_adsp2_irq()
1924 ret = wm_adsp_compr_handle_irq(&priv->core.adsp[0]); in wm5102_adsp2_irq()
1937 struct arizona *arizona = priv->core.arizona; in wm5102_component_probe()
1942 ret = wm_adsp2_component_probe(&priv->core.adsp[0], component); in wm5102_component_probe()
1959 priv->core.arizona->dapm = dapm; in wm5102_component_probe()
1964 wm_adsp2_component_remove(&priv->core.adsp[0], component); in wm5102_component_probe()
1973 wm_adsp2_component_remove(&priv->core.adsp[0], component); in wm5102_component_remove()
1975 priv->core.arizona->dapm = NULL; in wm5102_component_remove()
[all …]
Dcs47l90.c36 struct madera_priv core; member
116 struct madera_priv *priv = &cs47l90->core; in cs47l90_adsp_power_ev()
130 ret = madera_set_adsp_clk(&cs47l90->core, w->shift, freq); in cs47l90_adsp_power_ev()
2366 struct madera_priv *priv = &cs47l90->core; in cs47l90_open()
2387 struct madera_priv *priv = &cs47l90->core; in cs47l90_adsp2_irq()
2416 struct madera *madera = cs47l90->core.madera; in cs47l90_component_probe()
2443 wm_adsp2_component_probe(&cs47l90->core.adsp[i], component); in cs47l90_component_probe()
2451 struct madera *madera = cs47l90->core.madera; in cs47l90_component_remove()
2459 wm_adsp2_component_remove(&cs47l90->core.adsp[i], component); in cs47l90_component_remove()
2524 cs47l90->core.madera = madera; in cs47l90_probe()
[all …]
Dcs47l85.c36 struct madera_priv core; member
116 struct madera_priv *priv = &cs47l85->core; in cs47l85_adsp_power_ev()
133 ret = madera_set_adsp_clk(&cs47l85->core, w->shift, freq); in cs47l85_adsp_power_ev()
2447 struct madera_priv *priv = &cs47l85->core; in cs47l85_open()
2468 struct madera_priv *priv = &cs47l85->core; in cs47l85_adsp2_irq()
2497 struct madera *madera = cs47l85->core.madera; in cs47l85_component_probe()
2524 wm_adsp2_component_probe(&cs47l85->core.adsp[i], component); in cs47l85_component_probe()
2532 struct madera *madera = cs47l85->core.madera; in cs47l85_component_remove()
2540 wm_adsp2_component_remove(&cs47l85->core.adsp[i], component); in cs47l85_component_remove()
2609 cs47l85->core.madera = madera; in cs47l85_probe()
[all …]
Dwm5110.c38 struct arizona_priv core; member
2249 struct arizona *arizona = priv->core.arizona; in wm5110_open()
2263 return wm_adsp_compr_open(&priv->core.adsp[n_adsp], stream); in wm5110_open()
2269 struct arizona *arizona = priv->core.arizona; in wm5110_adsp2_irq()
2275 ret = wm_adsp_compr_handle_irq(&priv->core.adsp[i]); in wm5110_adsp2_irq()
2279 info.core = i; in wm5110_adsp2_irq()
2298 struct arizona *arizona = priv->core.arizona; in wm5110_component_probe()
2312 ret = wm_adsp2_component_probe(&priv->core.adsp[i], component); in wm5110_component_probe()
2329 wm_adsp2_component_remove(&priv->core.adsp[i], component); in wm5110_component_probe()
2340 wm_adsp2_component_remove(&priv->core.adsp[i], component); in wm5110_component_remove()
[all …]
/sound/pci/hda/
Dhda_bind.c24 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match()
26 container_of(drv, struct hda_codec_driver, core); in hda_codec_match()
29 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match()
30 u32 rev_id = codec->core.revision_id; in hda_codec_match()
45 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event()
52 if (codec->core.dev.power.power_state.event != PM_EVENT_ON) in hda_codec_unsol_event()
70 err = snd_hdac_device_set_chip_name(&codec->core, name); in snd_hda_codec_set_name()
76 codec->bus->mixer_assigned >= codec->core.addr) { in snd_hda_codec_set_name()
79 codec->core.vendor_name, codec->core.chip_name); in snd_hda_codec_set_name()
80 codec->bus->mixer_assigned = codec->core.addr; in snd_hda_codec_set_name()
[all …]
Dhda_hwdep.c44 if (verb < codec->core.start_nid || in get_wcap_ioctl()
45 verb >= codec->core.start_nid + codec->core.num_nodes) { in get_wcap_ioctl()
48 verb -= codec->core.start_nid; in get_wcap_ioctl()
49 verb = array_index_nospec(verb, codec->core.num_nodes); in get_wcap_ioctl()
Dhda_codec.c27 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core)
28 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core)
30 ((codec)->core.power_caps & AC_PWRST_EPSS)
32 ((codec)->core.power_caps & AC_PWRST_CLKSTOP)
40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb()
49 mutex_lock(&bus->core.cmd_mutex); in codec_exec_verb()
52 err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr, in codec_exec_verb()
55 mutex_unlock(&bus->core.cmd_mutex); in codec_exec_verb()
309 parm = snd_hdac_read_parm_uncached(&codec->core, nid, AC_PAR_DEVLIST_LEN); in snd_hda_get_num_devices()
341 if (snd_hdac_read(&codec->core, nid, in snd_hda_get_devices()
[all …]
Dhda_local.h118 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx)
142 #define snd_hda_regmap_sync(codec) snd_hdac_regmap_sync(&(codec)->core)
441 for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++)
449 codec->core.dev.power.power_state = PMSG_ON; in snd_hda_codec_allow_unsol_events()
457 if (nid < codec->core.start_nid || in get_wcaps()
458 nid >= codec->core.start_nid + codec->core.num_nodes) in get_wcaps()
460 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps()
484 if (nid >= codec->core.start_nid && in snd_hda_override_wcaps()
485 nid < codec->core.start_nid + codec->core.num_nodes) in snd_hda_override_wcaps()
486 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps()
[all …]
Dhda_sysfs.c71 CODEC_INFO_SHOW(vendor_id, core.vendor_id);
72 CODEC_INFO_SHOW(subsystem_id, core.subsystem_id);
73 CODEC_INFO_SHOW(revision_id, core.revision_id);
74 CODEC_INFO_SHOW(afg, core.afg);
75 CODEC_INFO_SHOW(mfg, core.mfg);
76 CODEC_INFO_STR_SHOW(vendor_name, core.vendor_name);
77 CODEC_INFO_STR_SHOW(chip_name, core.chip_name);
194 CODEC_INFO_STORE(vendor_id, core.vendor_id);
195 CODEC_INFO_STORE(subsystem_id, core.subsystem_id);
196 CODEC_INFO_STORE(revision_id, core.revision_id);
[all …]
Dhda_controller.c120 azx_dev->core.bufsize = 0; in azx_pcm_hw_params()
121 azx_dev->core.period_bytes = 0; in azx_pcm_hw_params()
122 azx_dev->core.format_val = 0; in azx_pcm_hw_params()
187 stream_tag = azx_dev->core.stream_tag; in azx_pcm_prepare()
193 azx_dev->core.format_val, substream); in azx_pcm_prepare()
245 sbits |= 1 << azx_dev->core.index; in azx_pcm_trigger()
293 struct snd_pcm_substream *substream = azx_dev->core.substream; in azx_get_position()
303 if (pos >= azx_dev->core.bufsize) in azx_get_position()
391 (azx_dev->core.stream_tag - 1); in azx_get_sync_time()
506 nsec = timecounter_read(&azx_dev->core.tc); in azx_get_time_info()
[all …]
Dhda_controller.h57 struct hdac_stream core; member
68 #define azx_stream(dev) (&(dev)->core)
69 #define stream_to_azx_dev(s) container_of(s, struct azx_dev, core)
153 #define azx_bus(chip) (&(chip)->bus.core)
154 #define bus_to_azx(_bus) container_of(_bus, struct azx, bus.core)
Dhda_auto_parser.c414 codec->core.chip_name, cfg->line_outs, cfg->line_out_pins[0], in snd_hda_parse_pin_defcfg()
843 codec->core.chip_name, modelname); in __snd_hda_apply_fixup()
850 codec->core.chip_name, modelname); in __snd_hda_apply_fixup()
857 codec->core.chip_name, modelname); in __snd_hda_apply_fixup()
864 codec->core.chip_name, modelname); in __snd_hda_apply_fixup()
869 codec->core.chip_name, fix->type); in __snd_hda_apply_fixup()
945 if ((codec->core.subsystem_id & 0xffff0000) != (pq->subvendor << 16)) in snd_hda_pick_pin_fixup()
947 if (codec->core.vendor_id != pq->codec) in snd_hda_pick_pin_fixup()
954 codec->core.chip_name, codec->fixup_name); in snd_hda_pick_pin_fixup()
999 codec->core.chip_name); in snd_hda_pick_fixup()
[all …]
Dhda_controller_trace.h28 __entry->idx = (dev)->core.index;
50 __entry->idx = (dev)->core.index;
68 __entry->stream_tag = (azx_dev)->core.stream_tag;
/sound/soc/sof/intel/
Dhda-codec.c40 snd_hdac_codec_modalias(&codec->core, alias, sizeof(alias)); in request_codec_module()
46 dev_dbg(&codec->core.dev, "loading codec module: %s\n", mod); in request_codec_module()
76 mask |= BIT(codec->core.addr); in hda_codec_jack_wake_enable()
94 pm_request_resume(&codec->core.dev); in hda_codec_jack_check()
126 mutex_lock(&hbus->core.cmd_mutex); in hda_codec_probe()
127 snd_hdac_bus_send_cmd(&hbus->core, hda_cmd); in hda_codec_probe()
128 snd_hdac_bus_get_response(&hbus->core, address, &resp); in hda_codec_probe()
129 mutex_unlock(&hbus->core.cmd_mutex); in hda_codec_probe()
141 hdev = &hda_priv->codec.core; in hda_codec_probe()
148 ret = snd_hdac_ext_bus_device_init(&hbus->core, address, hdev, type); in hda_codec_probe()
[all …]
/sound/soc/
DMakefile2 snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-utils.o soc-dai.o soc-component.o
3 snd-soc-core-objs += soc-pcm.o soc-devres.o soc-ops.o soc-link.o soc-card.o
4 snd-soc-core-$(CONFIG_SND_SOC_COMPRESS) += soc-compress.o
7 snd-soc-core-objs += soc-topology.o
16 snd-soc-core-objs += soc-generic-dmaengine-pcm.o
20 snd-soc-core-objs += soc-ac97.o
29 obj-$(CONFIG_SND_SOC) += snd-soc-core.o
/sound/hda/
DMakefile2 snd-hda-core-objs := hda_bus_type.o hdac_bus.o hdac_device.o hdac_sysfs.o \
5 snd-hda-core-objs += trace.o
9 snd-hda-core-$(CONFIG_SND_HDA_COMPONENT) += hdac_component.o
10 snd-hda-core-$(CONFIG_SND_HDA_I915) += hdac_i915.o
12 obj-$(CONFIG_SND_HDA_CORE) += snd-hda-core.o
/sound/pci/vx222/
Dvx222.c183 vx->core.ibl.size = ibl[dev]; in snd_vx222_probe()
186 card->shortname, vx->port[0], vx->port[1], vx->core.irq); in snd_vx222_probe()
188 card->shortname, vx->port[0], vx->port[1], vx->core.irq); in snd_vx222_probe()
191 vx->core.dev = &pci->dev; in snd_vx222_probe()
194 err = snd_vx_setup_firmware(&vx->core); in snd_vx222_probe()
213 return snd_vx_suspend(&vx->core); in snd_vx222_suspend()
221 return snd_vx_resume(&vx->core); in snd_vx222_resume()
/sound/hda/ext/
DMakefile2 snd-hda-ext-core-objs := hdac_ext_bus.o hdac_ext_controller.o hdac_ext_stream.o
4 obj-$(CONFIG_SND_HDA_EXT_CORE) += snd-hda-ext-core.o

123