/sound/soc/codecs/ |
D | wl1273.c | 39 struct wl1273_core *core; member 43 static int snd_wl1273_fm_set_i2s_mode(struct wl1273_core *core, in snd_wl1273_fm_set_i2s_mode() argument 46 struct device *dev = &core->client->dev; in snd_wl1273_fm_set_i2s_mode() 53 mutex_lock(&core->lock); in snd_wl1273_fm_set_i2s_mode() 55 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode() 123 dev_dbg(dev, "core->i2s_mode: 0x%04x\n", core->i2s_mode); in snd_wl1273_fm_set_i2s_mode() 126 if (core->i2s_mode != mode) { in snd_wl1273_fm_set_i2s_mode() 127 r = core->write(core, WL1273_I2S_MODE_CONFIG_SET, mode); in snd_wl1273_fm_set_i2s_mode() 131 core->i2s_mode = mode; in snd_wl1273_fm_set_i2s_mode() 132 r = core->write(core, WL1273_AUDIO_ENABLE, in snd_wl1273_fm_set_i2s_mode() [all …]
|
D | si476x.c | 77 struct si476x_core *core = i2c_mfd_cell_to_core(codec_dai->dev); in si476x_codec_set_dai_fmt() local 141 si476x_core_lock(core); in si476x_codec_set_dai_fmt() 147 si476x_core_unlock(core); in si476x_codec_set_dai_fmt() 161 struct si476x_core *core = i2c_mfd_cell_to_core(dai->dev); in si476x_codec_hw_params() local 187 si476x_core_lock(core); in si476x_codec_hw_params() 206 si476x_core_unlock(core); in si476x_codec_hw_params()
|
D | wm5102.c | 38 struct arizona_priv core; member 1875 ret = wm_adsp2_codec_probe(&priv->core.adsp[0], codec); in wm5102_codec_probe() 1889 priv->core.arizona->dapm = dapm; in wm5102_codec_probe() 1894 wm_adsp2_codec_remove(&priv->core.adsp[0], codec); in wm5102_codec_probe() 1903 wm_adsp2_codec_remove(&priv->core.adsp[0], codec); in wm5102_codec_remove() 1905 priv->core.arizona->dapm = NULL; in wm5102_codec_remove() 1928 return priv->core.arizona->regmap; in wm5102_get_regmap() 1963 wm5102->core.arizona = arizona; in wm5102_probe() 1964 wm5102->core.num_inputs = 6; in wm5102_probe() 1966 arizona_init_dvfs(&wm5102->core); in wm5102_probe() [all …]
|
D | wm5110.c | 39 struct arizona_priv core; member 2005 priv->core.arizona->dapm = dapm; in wm5110_codec_probe() 2012 ret = wm_adsp2_codec_probe(&priv->core.adsp[i], codec); in wm5110_codec_probe() 2029 wm_adsp2_codec_remove(&priv->core.adsp[i], codec); in wm5110_codec_probe() 2040 wm_adsp2_codec_remove(&priv->core.adsp[i], codec); in wm5110_codec_remove() 2042 priv->core.arizona->dapm = NULL; in wm5110_codec_remove() 2068 return priv->core.arizona->regmap; in wm5110_get_regmap() 2101 wm5110->core.arizona = arizona; in wm5110_probe() 2102 wm5110->core.num_inputs = 8; in wm5110_probe() 2105 wm5110->core.adsp[i].part = "wm5110"; in wm5110_probe() [all …]
|
D | wmfw.h | 33 u8 core; member 134 __be32 core; member
|
/sound/pci/hda/ |
D | hda_bind.c | 22 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() 24 container_of(drv, struct hda_codec_driver, core); in hda_codec_match() 27 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match() 28 u32 rev_id = codec->core.revision_id; in hda_codec_match() 43 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() 50 if (codec->core.dev.power.power_state.event != PM_EVENT_ON) in hda_codec_unsol_event() 68 err = snd_hdac_device_set_chip_name(&codec->core, name); in snd_hda_codec_set_name() 74 codec->bus->mixer_assigned >= codec->core.addr) { in snd_hda_codec_set_name() 77 codec->core.vendor_name, codec->core.chip_name); in snd_hda_codec_set_name() 78 codec->bus->mixer_assigned = codec->core.addr; in snd_hda_codec_set_name() [all …]
|
D | hda_codec.h | 51 struct hdac_bus core; member 78 #define to_hda_bus(bus) container_of(bus, struct hda_bus, core) 99 struct hdac_driver core; member 184 struct hdac_device core; member 293 #define dev_to_hda_codec(_dev) container_of(_dev, struct hda_codec, core.dev) 294 #define hda_codec_dev(_dev) (&(_dev)->core.dev) 297 list_for_each_entry(c, &(bus)->core.codec_list, core.list) 299 list_for_each_entry_safe(c, n, &(bus)->core.codec_list, core.list) 320 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); in snd_hda_codec_read() 327 return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); in snd_hda_codec_write() [all …]
|
D | hda_hwdep.c | 57 if (verb < codec->core.start_nid || in get_wcap_ioctl() 58 verb >= codec->core.start_nid + codec->core.num_nodes) { in get_wcap_ioctl() 61 verb -= codec->core.start_nid; in get_wcap_ioctl() 62 verb = array_index_nospec(verb, codec->core.num_nodes); in get_wcap_ioctl()
|
D | hda_codec.c | 43 #define codec_in_pm(codec) atomic_read(&(codec)->core.in_pm) 52 ((codec)->core.power_caps & AC_PWRST_EPSS) 54 ((codec)->core.power_caps & AC_PWRST_CLKSTOP) 62 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() 71 mutex_lock(&bus->core.cmd_mutex); in codec_exec_verb() 74 err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr, in codec_exec_verb() 77 mutex_unlock(&bus->core.cmd_mutex); in codec_exec_verb() 325 parm = snd_hdac_read_parm_uncached(&codec->core, nid, AC_PAR_DEVLIST_LEN); in get_num_devices() 356 if (snd_hdac_read(&codec->core, nid, in snd_hda_get_devices() 379 codec->wcaps = kmalloc(codec->core.num_nodes * 4, GFP_KERNEL); in read_widget_caps() [all …]
|
D | hda_sysfs.c | 70 CODEC_INFO_SHOW(vendor_id, core.vendor_id); 71 CODEC_INFO_SHOW(subsystem_id, core.subsystem_id); 72 CODEC_INFO_SHOW(revision_id, core.revision_id); 73 CODEC_INFO_SHOW(afg, core.afg); 74 CODEC_INFO_SHOW(mfg, core.mfg); 75 CODEC_INFO_STR_SHOW(vendor_name, core.vendor_name); 76 CODEC_INFO_STR_SHOW(chip_name, core.chip_name); 193 CODEC_INFO_STORE(vendor_id, core.vendor_id); 194 CODEC_INFO_STORE(subsystem_id, core.subsystem_id); 195 CODEC_INFO_STORE(revision_id, core.revision_id); [all …]
|
D | hda_controller.c | 124 azx_dev->core.bufsize = 0; in azx_pcm_hw_params() 125 azx_dev->core.period_bytes = 0; in azx_pcm_hw_params() 126 azx_dev->core.format_val = 0; in azx_pcm_hw_params() 195 stream_tag = azx_dev->core.stream_tag; in azx_pcm_prepare() 201 azx_dev->core.format_val, substream); in azx_pcm_prepare() 253 sbits |= 1 << azx_dev->core.index; in azx_pcm_trigger() 301 struct snd_pcm_substream *substream = azx_dev->core.substream; in azx_get_position() 311 if (pos >= azx_dev->core.bufsize) in azx_get_position() 353 nsec = timecounter_read(&azx_dev->core.tc); in azx_get_time_info() 527 struct hdac_bus *bus = &_bus->core; in snd_hda_attach_pcm_stream() [all …]
|
D | hda_controller.h | 62 struct hdac_stream core; member 74 #define azx_stream(dev) (&(dev)->core) 75 #define stream_to_azx_dev(s) container_of(s, struct azx_dev, core) 164 #define azx_bus(chip) (&(chip)->bus.core) 165 #define bus_to_azx(_bus) container_of(_bus, struct azx, bus.core)
|
D | hda_local.h | 131 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) 518 for ((nid) = (codec)->core.start_nid; (nid) < (codec)->core.end_nid; (nid)++) 525 if (nid < codec->core.start_nid || in get_wcaps() 526 nid >= codec->core.start_nid + codec->core.num_nodes) in get_wcaps() 528 return codec->wcaps[nid - codec->core.start_nid]; in get_wcaps() 552 if (nid >= codec->core.start_nid && in snd_hda_override_wcaps() 553 nid < codec->core.start_nid + codec->core.num_nodes) in snd_hda_override_wcaps() 554 codec->wcaps[nid - codec->core.start_nid] = val; in snd_hda_override_wcaps() 592 return snd_hdac_override_parm(&codec->core, nid, AC_PAR_PIN_CAP, caps); in snd_hda_override_pin_caps() 684 return snd_hdac_check_power_state(&codec->core, nid, target_state); in snd_hda_check_power_state()
|
D | hda_auto_parser.c | 418 codec->core.chip_name, cfg->line_outs, cfg->line_out_pins[0], in snd_hda_parse_pin_defcfg() 846 codec->core.chip_name, modelname); in apply_fixup() 853 codec->core.chip_name, modelname); in apply_fixup() 860 codec->core.chip_name, modelname); in apply_fixup() 867 codec->core.chip_name, modelname); in apply_fixup() 872 codec->core.chip_name, fix->type); in apply_fixup() 943 if ((codec->core.subsystem_id & 0xffff0000) != (pq->subvendor << 16)) in snd_hda_pick_pin_fixup() 945 if (codec->core.vendor_id != pq->codec) in snd_hda_pick_pin_fixup() 952 codec->core.chip_name, codec->fixup_name); in snd_hda_pick_pin_fixup() 994 codec->core.chip_name); in snd_hda_pick_fixup() [all …]
|
D | hda_controller_trace.h | 27 __entry->idx = (dev)->core.index; 49 __entry->idx = (dev)->core.index; 67 __entry->stream_tag = (azx_dev)->core.stream_tag;
|
D | patch_sigmatel.c | 304 hda_nid_t fg = codec->core.afg; in stac_gpio_set() 393 if (nid == codec->core.afg && power_state == AC_PWRST_D3) in stac_vref_led_power_filter() 438 !(snd_hda_codec_read(codec, codec->core.afg, 0, in stac_update_outputs() 482 snd_hda_codec_write(codec, codec->core.afg, 0, in stac_toggle_power_map() 514 snd_hda_codec_write(codec, codec->core.afg, 0, in jack_update_power() 524 data = snd_hda_codec_read(codec, codec->core.afg, 0, in stac_vref_event() 527 snd_hda_codec_write(codec, codec->core.afg, 0, 0x7e0, in stac_vref_event() 629 dac_mode = snd_hda_codec_read(codec, codec->core.afg, 0, in stac_aloopback_put() 641 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in stac_aloopback_put() 665 if (codec->core.vendor_id != 0x111d7605 && in hp_bnb2011_with_dock() [all …]
|
D | patch_si3054.c | 208 info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg; in si3054_build_pcms() 209 info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = codec->core.mfg; in si3054_build_pcms() 225 if (snd_hdac_regmap_add_vendor_verb(&codec->core, in si3054_init() 230 snd_hda_codec_write(codec, codec->core.mfg, 0, AC_VERB_SET_STREAM_FORMAT, 0); in si3054_init()
|
D | patch_conexant.c | 207 switch (codec->core.vendor_id) { in cx_auto_reboot_notify() 220 snd_hda_codec_set_power_to_all(codec, codec->core.afg, AC_PWRST_D3); in cx_auto_reboot_notify() 221 snd_hda_codec_write(codec, codec->core.afg, 0, in cx_auto_reboot_notify() 336 snd_hdac_regmap_add_vendor_verb(&codec->core, 0x410); in cxt_fixup_headphone_mic() 922 codec_info(codec, "%s: BIOS auto-probing.\n", codec->core.chip_name); in patch_conexant_auto() 937 switch (codec->core.vendor_id) { in patch_conexant_auto() 971 switch (codec->core.subsystem_id >> 16) { in patch_conexant_auto() 992 if (!codec->bus->core.sync_write) { in patch_conexant_auto() 995 codec->bus->core.sync_write = 1; in patch_conexant_auto()
|
D | hda_intel.c | 570 struct snd_pcm_substream *substream = azx_dev->core.substream; in azx_get_delay_from_lpib() 580 if (delay >= azx_dev->core.delay_negative_threshold) in azx_get_delay_from_lpib() 583 delay += azx_dev->core.bufsize; in azx_get_delay_from_lpib() 586 if (delay >= azx_dev->core.period_bytes) { in azx_get_delay_from_lpib() 589 delay, azx_dev->core.period_bytes); in azx_get_delay_from_lpib() 637 struct snd_pcm_substream *substream = azx_dev->core.substream; in azx_position_ok() 642 wallclk = azx_readl(chip, WALLCLK) - azx_dev->core.start_wallclk; in azx_position_ok() 643 if (wallclk < (azx_dev->core.period_wallclk * 2) / 3) in azx_position_ok() 666 if (pos >= azx_dev->core.bufsize) in azx_position_ok() 669 if (WARN_ONCE(!azx_dev->core.period_bytes, in azx_position_ok() [all …]
|
D | patch_realtek.c | 308 switch (codec->core.vendor_id) { in alc_fill_eapd_coef() 458 switch (codec->core.vendor_id) { in alc_auto_init_amp() 524 ass = codec->core.subsystem_id & 0xffff; in alc_auto_parse_customize_define() 529 if (codec->core.vendor_id == 0x10ec0260) in alc_auto_parse_customize_define() 535 codec->core.chip_name, ass); in alc_auto_parse_customize_define() 611 ass = codec->core.subsystem_id & 0xffff; in alc_subsystem_id() 626 if (codec->core.vendor_id == 0x10ec0260) in alc_subsystem_id() 647 ass & 0xffff, codec->core.vendor_id); in alc_subsystem_id() 813 snd_hda_codec_set_power_to_all(codec, codec->core.afg, AC_PWRST_D3); in alc_d3_at_reboot() 814 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_d3_at_reboot() [all …]
|
/sound/soc/ |
D | Makefile | 1 snd-soc-core-objs := soc-core.o soc-dapm.o soc-jack.o soc-cache.o soc-utils.o 2 snd-soc-core-objs += soc-pcm.o soc-io.o soc-devres.o soc-ops.o 3 snd-soc-core-$(CONFIG_SND_SOC_COMPRESS) += soc-compress.o 6 snd-soc-core-objs += soc-topology.o 10 snd-soc-core-objs += soc-generic-dmaengine-pcm.o 14 snd-soc-core-objs += soc-ac97.o 17 obj-$(CONFIG_SND_SOC) += snd-soc-core.o
|
/sound/hda/ |
D | Makefile | 1 snd-hda-core-objs := hda_bus_type.o hdac_bus.o hdac_device.o hdac_sysfs.o \ 4 snd-hda-core-objs += trace.o 8 snd-hda-core-$(CONFIG_SND_HDA_I915) += hdac_i915.o 10 obj-$(CONFIG_SND_HDA_CORE) += snd-hda-core.o
|
/sound/pci/vx222/ |
D | vx222.c | 228 vx->core.ibl.size = ibl[dev]; in snd_vx222_probe() 231 card->shortname, vx->port[0], vx->port[1], vx->core.irq); in snd_vx222_probe() 233 card->shortname, vx->port[0], vx->port[1], vx->core.irq); in snd_vx222_probe() 236 vx->core.dev = &pci->dev; in snd_vx222_probe() 239 if ((err = snd_vx_setup_firmware(&vx->core)) < 0) { in snd_vx222_probe() 265 return snd_vx_suspend(&vx->core); in snd_vx222_suspend() 273 return snd_vx_resume(&vx->core); in snd_vx222_resume()
|
/sound/hda/ext/ |
D | Makefile | 1 snd-hda-ext-core-objs := hdac_ext_bus.o hdac_ext_controller.o hdac_ext_stream.o 3 obj-$(CONFIG_SND_HDA_EXT_CORE) += snd-hda-ext-core.o
|
/sound/soc/intel/atom/sst/ |
D | Makefile | 1 snd-intel-sst-core-objs := sst.o sst_ipc.o sst_stream.o sst_drv_interface.o sst_loader.o sst_pvt.o 5 obj-$(CONFIG_SND_SST_IPC) += snd-intel-sst-core.o
|