/sound/soc/qcom/qdsp6/ |
D | q6core.c | 72 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/ |
D | wl1273.c | 25 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 …]
|
D | cs47l15.c | 42 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() 1382 cs47l15->core.madera = madera; in cs47l15_probe() [all …]
|
D | cs47l24.c | 36 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 …]
|
D | cs47l35.c | 36 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() 1662 cs47l35->core.madera = madera; in cs47l35_probe() [all …]
|
D | si476x.c | 68 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()
|
D | cs47l92.c | 36 struct madera_priv core; member 60 struct madera_priv *priv = &cs47l92->core; in cs47l92_put_demux() 147 struct madera_priv *priv = &cs47l92->core; in cs47l92_adsp_power_ev() 161 ret = madera_set_adsp_clk(&cs47l92->core, w->shift, freq); in cs47l92_adsp_power_ev() 179 struct madera_priv *priv = &cs47l92->core; in cs47l92_outclk_ev() 1845 struct madera_priv *priv = &cs47l92->core; in cs47l92_open() 1864 struct madera_priv *priv = &cs47l92->core; in cs47l92_adsp2_irq() 1887 struct madera *madera = cs47l92->core.madera; in cs47l92_component_probe() 1914 return wm_adsp2_component_probe(&cs47l92->core.adsp[0], component); in cs47l92_component_probe() 1920 struct madera *madera = cs47l92->core.madera; in cs47l92_component_remove() [all …]
|
D | wm5102.c | 37 struct arizona_priv core; member 1928 return wm_adsp_compr_open(&priv->core.adsp[0], stream); in wm5102_open() 1934 struct arizona *arizona = priv->core.arizona; in wm5102_adsp2_irq() 1937 ret = wm_adsp_compr_handle_irq(&priv->core.adsp[0]); in wm5102_adsp2_irq() 1950 struct arizona *arizona = priv->core.arizona; in wm5102_component_probe() 1955 ret = wm_adsp2_component_probe(&priv->core.adsp[0], component); in wm5102_component_probe() 1972 priv->core.arizona->dapm = dapm; in wm5102_component_probe() 1977 wm_adsp2_component_remove(&priv->core.adsp[0], component); in wm5102_component_probe() 1986 wm_adsp2_component_remove(&priv->core.adsp[0], component); in wm5102_component_remove() 1988 priv->core.arizona->dapm = NULL; in wm5102_component_remove() [all …]
|
D | cs47l90.c | 36 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() 2523 cs47l90->core.madera = madera; in cs47l90_probe() [all …]
|
/sound/pci/hda/ |
D | hda_bind.c | 24 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 …]
|
D | hda_codec.c | 27 #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 …]
|
D | hda_sysfs.c | 71 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 …]
|
D | hda_hwdep.c | 44 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()
|
D | hda_local.h | 118 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) 140 #define snd_hda_regmap_sync(codec) snd_hdac_regmap_sync(&(codec)->core) 439 for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++) 447 codec->core.dev.power.power_state = PMSG_ON; in snd_hda_codec_allow_unsol_events() 455 if (nid < codec->core.start_nid || in get_wcaps() 456 nid >= codec->core.start_nid + codec->core.num_nodes) in get_wcaps() 458 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps() 482 if (nid >= codec->core.start_nid && in snd_hda_override_wcaps() 483 nid < codec->core.start_nid + codec->core.num_nodes) in snd_hda_override_wcaps() 484 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps() [all …]
|
D | hda_controller.c | 120 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 …]
|
D | hda_controller.h | 57 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) 154 #define azx_bus(chip) (&(chip)->bus.core) 155 #define bus_to_azx(_bus) container_of(_bus, struct azx, bus.core)
|
/sound/soc/sof/intel/ |
D | hda-codec.c | 42 snd_hdac_codec_modalias(&codec->core, alias, sizeof(alias)); in request_codec_module() 48 dev_dbg(&codec->core.dev, "loading codec module: %s\n", mod); in request_codec_module() 59 ret = snd_hdac_device_register(&codec->core); in hda_codec_load_module() 61 dev_err(&codec->core.dev, "failed to register hdac device\n"); in hda_codec_load_module() 62 put_device(&codec->core.dev); in hda_codec_load_module() 86 mask |= BIT(codec->core.addr); in hda_codec_jack_wake_enable() 104 pm_request_resume(&codec->core.dev); in hda_codec_jack_check() 130 codec->core.type = type; in hda_codec_device_init() 151 mutex_lock(&hbus->core.cmd_mutex); in hda_codec_probe() 152 snd_hdac_bus_send_cmd(&hbus->core, hda_cmd); in hda_codec_probe() [all …]
|
D | tgl.c | 25 static int tgl_dsp_core_get(struct snd_sof_dev *sdev, int core) in tgl_dsp_core_get() argument 30 if (core == SOF_DSP_PRIMARY_CORE) in tgl_dsp_core_get() 31 return hda_dsp_enable_core(sdev, BIT(core)); in tgl_dsp_core_get() 34 return pm_ops->set_core_state(sdev, core, true); in tgl_dsp_core_get() 39 static int tgl_dsp_core_put(struct snd_sof_dev *sdev, int core) in tgl_dsp_core_put() argument 44 if (core == SOF_DSP_PRIMARY_CORE) in tgl_dsp_core_put() 45 return hda_dsp_core_reset_power_down(sdev, BIT(core)); in tgl_dsp_core_put() 48 return pm_ops->set_core_state(sdev, core, false); in tgl_dsp_core_put()
|
/sound/soc/ |
D | Makefile | 2 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 21 snd-soc-core-objs += soc-generic-dmaengine-pcm.o 25 snd-soc-core-objs += soc-ac97.o 34 obj-$(CONFIG_SND_SOC) += snd-soc-core.o
|
/sound/hda/ |
D | Makefile | 2 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/soc/sof/ |
D | ops.h | 90 static inline int snd_sof_dsp_core_get(struct snd_sof_dev *sdev, int core) in snd_sof_dsp_core_get() argument 92 if (core > sdev->num_cores - 1) { in snd_sof_dsp_core_get() 93 dev_err(sdev->dev, "invalid core id: %d for num_cores: %d\n", core, in snd_sof_dsp_core_get() 102 if (sdev->dsp_core_ref_count[core] > 0) { in snd_sof_dsp_core_get() 103 sdev->dsp_core_ref_count[core]++; in snd_sof_dsp_core_get() 108 ret = sof_ops(sdev)->core_get(sdev, core); in snd_sof_dsp_core_get() 113 sdev->dsp_core_ref_count[core]++; in snd_sof_dsp_core_get() 116 sdev->enabled_cores_mask |= BIT(core); in snd_sof_dsp_core_get() 118 dev_dbg(sdev->dev, "Core %d powered up\n", core); in snd_sof_dsp_core_get() 124 static inline int snd_sof_dsp_core_put(struct snd_sof_dev *sdev, int core) in snd_sof_dsp_core_put() argument [all …]
|
D | ipc4-mtrace.c | 510 u32 slot_desc_type_offset, type, core; in sof_mtrace_find_core_slots() local 520 core = type & SOF_MTRACE_SLOT_CORE_MASK; in sof_mtrace_find_core_slots() 522 if (core >= sdev->num_cores) { in sof_mtrace_find_core_slots() 524 core, i); in sof_mtrace_find_core_slots() 528 core_data = &priv->cores[core]; in sof_mtrace_find_core_slots() 537 dev_dbg(sdev->dev, "slot%d is used for core%u\n", i, core); in sof_mtrace_find_core_slots() 539 sof_ipc4_mtrace_update_pos(sdev, core); in sof_mtrace_find_core_slots() 612 int sof_ipc4_mtrace_update_pos(struct snd_sof_dev *sdev, int core) in sof_ipc4_mtrace_update_pos() argument 621 if (core >= sdev->num_cores) in sof_ipc4_mtrace_update_pos() 624 core_data = &priv->cores[core]; in sof_ipc4_mtrace_update_pos() [all …]
|
/sound/soc/intel/avs/ |
D | skl.c | 47 int skl_log_buffer_offset(struct avs_dev *adev, u32 core) in skl_log_buffer_offset() argument 49 return core * avs_log_buffer_size(adev); in skl_log_buffer_offset() 53 #define FW_REGS_DBG_LOG_WP(core) (0x30 + 0x4 * core) argument 69 write = readl(avs_sram_addr(adev, AVS_FW_REGS_WINDOW) + FW_REGS_DBG_LOG_WP(msg->log.core)); in skl_log_buffer_status() 74 buf = avs_log_buffer_addr(adev, msg->log.core) + offset; in skl_log_buffer_status()
|
D | core.c | 47 avs_hda_update_config_dword(&adev->base.core, AZX_PCIREG_PGCTL, in avs_hda_power_gating_enable() 61 avs_hdac_clock_gating_enable(&adev->base.core, enable); in avs_hda_clock_gating_enable() 69 snd_hdac_chip_updatel(&adev->base.core, VS_EM2, AZX_VS_EM2_L1SEN, value); in avs_hda_l1sen_enable() 184 struct hdac_bus *bus = &adev->base.core; in avs_hda_probe_work() 319 struct hdac_bus *bus = &adev->base.core; in avs_hdac_acquire_irq() 360 ret = snd_hdac_ext_bus_init(&bus->core, dev, NULL, &soc_hda_ext_bus_ops); in avs_bus_init() 364 bus->core.use_posbuf = 1; in avs_bus_init() 365 bus->core.bdl_pos_adj = 0; in avs_bus_init() 366 bus->core.sync_write = 1; in avs_bus_init() 423 bus = &adev->base.core; in avs_pci_probe() [all …]
|
/sound/pci/vx222/ |
D | vx222.c | 183 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()
|