/sound/aoa/soundbus/ |
D | core.c | 39 struct soundbus_driver *drv; in soundbus_probe() local 42 drv = to_soundbus_driver(dev->driver); in soundbus_probe() 45 if (!drv->probe) in soundbus_probe() 50 error = drv->probe(soundbus_dev); in soundbus_probe() 110 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_remove() local 112 if (dev->driver && drv->remove) in soundbus_device_remove() 113 drv->remove(soundbus_dev); in soundbus_device_remove() 120 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_shutdown() local 122 if (dev->driver && drv->shutdown) in soundbus_device_shutdown() 123 drv->shutdown(soundbus_dev); in soundbus_device_shutdown() [all …]
|
D | soundbus.h | 194 #define to_soundbus_driver(drv) container_of(drv,struct soundbus_driver, driver) argument 196 extern int soundbus_register_driver(struct soundbus_driver *drv); 197 extern void soundbus_unregister_driver(struct soundbus_driver *drv);
|
/sound/soc/intel/atom/ |
D | sst-atom-controls.c | 23 static int sst_fill_byte_control(struct sst_data *drv, in sst_fill_byte_control() argument 28 struct snd_sst_bytes_v2 *byte_data = drv->byte_stream; in sst_fill_byte_control() 37 dev_err(&drv->pdev->dev, "command length too big (%u)", len); in sst_fill_byte_control() 47 static int sst_fill_and_send_cmd_unlocked(struct sst_data *drv, in sst_fill_and_send_cmd_unlocked() argument 53 WARN_ON(!mutex_is_locked(&drv->lock)); in sst_fill_and_send_cmd_unlocked() 55 ret = sst_fill_byte_control(drv, ipc_msg, in sst_fill_and_send_cmd_unlocked() 59 return sst->ops->send_byte_stream(sst->dev, drv->byte_stream); in sst_fill_and_send_cmd_unlocked() 72 static int sst_fill_and_send_cmd(struct sst_data *drv, in sst_fill_and_send_cmd() argument 78 mutex_lock(&drv->lock); in sst_fill_and_send_cmd() 79 ret = sst_fill_and_send_cmd_unlocked(drv, ipc_msg, block, in sst_fill_and_send_cmd() [all …]
|
D | sst-mfld-platform-pcm.c | 688 struct sst_data *drv = dev_get_drvdata(component->dev); in sst_soc_probe() local 690 drv->soc_card = component->card; in sst_soc_probe() 696 struct sst_data *drv = dev_get_drvdata(component->dev); in sst_soc_remove() local 698 drv->soc_card = NULL; in sst_soc_remove() 715 struct sst_data *drv; in sst_platform_probe() local 719 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in sst_platform_probe() 720 if (drv == NULL) { in sst_platform_probe() 731 drv->pdata = pdata; in sst_platform_probe() 732 drv->pdev = pdev; in sst_platform_probe() 733 mutex_init(&drv->lock); in sst_platform_probe() [all …]
|
/sound/soc/intel/atom/sst/ |
D | sst.c | 52 struct intel_sst_drv *drv = (struct intel_sst_drv *) context; in intel_sst_interrupt_mrfld() local 56 isr.full = sst_shim_read64(drv->shim, SST_ISRX); in intel_sst_interrupt_mrfld() 60 spin_lock(&drv->ipc_spin_lock); in intel_sst_interrupt_mrfld() 61 header.full = sst_shim_read64(drv->shim, in intel_sst_interrupt_mrfld() 62 drv->ipc_reg.ipcx); in intel_sst_interrupt_mrfld() 64 sst_shim_write64(drv->shim, drv->ipc_reg.ipcx, header.full); in intel_sst_interrupt_mrfld() 68 sst_shim_write64(drv->shim, SST_ISRX, isr.full); in intel_sst_interrupt_mrfld() 69 spin_unlock(&drv->ipc_spin_lock); in intel_sst_interrupt_mrfld() 72 queue_work(drv->post_msg_wq, &drv->ipc_post_msg_wq); in intel_sst_interrupt_mrfld() 78 spin_lock(&drv->ipc_spin_lock); in intel_sst_interrupt_mrfld() [all …]
|
D | sst_pvt.c | 335 int sst_assign_pvt_id(struct intel_sst_drv *drv) in sst_assign_pvt_id() argument 339 spin_lock(&drv->block_lock); in sst_assign_pvt_id() 341 local = ffz(drv->pvt_id); in sst_assign_pvt_id() 342 dev_dbg(drv->dev, "pvt_id assigned --> %d\n", local); in sst_assign_pvt_id() 344 spin_unlock(&drv->block_lock); in sst_assign_pvt_id() 345 dev_err(drv->dev, "PVT _ID error: no free id blocks "); in sst_assign_pvt_id() 349 change_bit(local, &drv->pvt_id); in sst_assign_pvt_id() 350 spin_unlock(&drv->block_lock); in sst_assign_pvt_id()
|
/sound/hda/ext/ |
D | hdac_ext_bus.c | 116 int snd_hda_ext_driver_register(struct hdac_driver *drv) in snd_hda_ext_driver_register() argument 118 drv->type = HDA_DEV_ASOC; in snd_hda_ext_driver_register() 119 drv->driver.bus = &snd_hda_bus_type; in snd_hda_ext_driver_register() 122 if (drv->probe) in snd_hda_ext_driver_register() 123 drv->driver.probe = hda_ext_drv_probe; in snd_hda_ext_driver_register() 124 if (drv->remove) in snd_hda_ext_driver_register() 125 drv->driver.remove = hdac_ext_drv_remove; in snd_hda_ext_driver_register() 126 if (drv->shutdown) in snd_hda_ext_driver_register() 127 drv->driver.shutdown = hdac_ext_drv_shutdown; in snd_hda_ext_driver_register() 129 return driver_register(&drv->driver); in snd_hda_ext_driver_register() [all …]
|
/sound/core/seq/ |
D | seq_midi_emul.c | 33 static void note_off(const struct snd_midi_op *ops, void *drv, 40 static void rpn(const struct snd_midi_op *ops, void *drv, 43 static void nrpn(const struct snd_midi_op *ops, void *drv, 77 void *drv; in snd_midi_process_event() local 97 drv = chanset->private_data; in snd_midi_process_event() 120 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event() 124 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 130 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); in snd_midi_process_event() 134 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 137 do_control(ops, drv, chanset, chan, in snd_midi_process_event() [all …]
|
/sound/pci/hda/ |
D | hda_bind.c | 22 static int hda_codec_match(struct hdac_device *dev, struct hdac_driver *drv) in hda_codec_match() argument 26 container_of(drv, struct hda_codec_driver, core); in hda_codec_match() 180 int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, in __hda_codec_driver_register() argument 183 drv->core.driver.name = name; in __hda_codec_driver_register() 184 drv->core.driver.owner = owner; in __hda_codec_driver_register() 185 drv->core.driver.bus = &snd_hda_bus_type; in __hda_codec_driver_register() 186 drv->core.driver.probe = hda_codec_driver_probe; in __hda_codec_driver_register() 187 drv->core.driver.remove = hda_codec_driver_remove; in __hda_codec_driver_register() 188 drv->core.driver.shutdown = hda_codec_driver_shutdown; in __hda_codec_driver_register() 189 drv->core.driver.pm = &hda_codec_driver_pm; in __hda_codec_driver_register() [all …]
|
/sound/hda/ |
D | hda_bus_type.c | 24 hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv) in hdac_get_device_id() argument 26 if (drv->id_table) { in hdac_get_device_id() 27 const struct hda_device_id *id = drv->id_table; in hdac_get_device_id() 41 static int hdac_codec_match(struct hdac_device *dev, struct hdac_driver *drv) in hdac_codec_match() argument 43 if (hdac_get_device_id(dev, drv)) in hdac_codec_match() 49 static int hda_bus_match(struct device *dev, struct device_driver *drv) in hda_bus_match() argument 52 struct hdac_driver *hdrv = drv_to_hdac_driver(drv); in hda_bus_match()
|
D | hdac_bus.c | 173 struct hdac_driver *drv; in snd_hdac_bus_process_unsol_events() local 189 drv = drv_to_hdac_driver(codec->dev.driver); in snd_hdac_bus_process_unsol_events() 190 if (drv->unsol_event) in snd_hdac_bus_process_unsol_events() 191 drv->unsol_event(codec, res); in snd_hdac_bus_process_unsol_events()
|
/sound/core/ |
D | seq_device.c | 43 static int snd_seq_bus_match(struct device *dev, struct device_driver *drv) in snd_seq_bus_match() argument 46 struct snd_seq_driver *sdrv = to_seq_drv(drv); in snd_seq_bus_match() 248 int __snd_seq_driver_register(struct snd_seq_driver *drv, struct module *mod) in __snd_seq_driver_register() argument 250 if (WARN_ON(!drv->driver.name || !drv->id)) in __snd_seq_driver_register() 252 drv->driver.bus = &snd_seq_bus_type; in __snd_seq_driver_register() 253 drv->driver.owner = mod; in __snd_seq_driver_register() 254 return driver_register(&drv->driver); in __snd_seq_driver_register() 258 void snd_seq_driver_unregister(struct snd_seq_driver *drv) in snd_seq_driver_unregister() argument 260 driver_unregister(&drv->driver); in snd_seq_driver_unregister()
|
/sound/soc/meson/ |
D | axg-tdm-formatter.c | 18 const struct axg_tdm_formatter_driver *drv; member 119 ret = formatter->drv->ops->prepare(formatter->map, in axg_tdm_formatter_enable() 120 formatter->drv->quirks, in axg_tdm_formatter_enable() 137 formatter->drv->ops->enable(formatter->map); in axg_tdm_formatter_enable() 149 formatter->drv->ops->disable(formatter->map); in axg_tdm_formatter_disable() 191 struct axg_tdm_stream *ts = formatter->drv->ops->get_stream(w); in axg_tdm_formatter_power_up() 265 const struct axg_tdm_formatter_driver *drv; in axg_tdm_formatter_probe() local 269 drv = of_device_get_match_data(dev); in axg_tdm_formatter_probe() 270 if (!drv) { in axg_tdm_formatter_probe() 279 formatter->drv = drv; in axg_tdm_formatter_probe() [all …]
|
D | axg-spdifin.c | 408 struct snd_soc_dai_driver *drv; in axg_spdifin_get_dai_drv() local 411 drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); in axg_spdifin_get_dai_drv() 412 if (!drv) in axg_spdifin_get_dai_drv() 415 drv->name = "SPDIF Input"; in axg_spdifin_get_dai_drv() 416 drv->ops = &axg_spdifin_ops; in axg_spdifin_get_dai_drv() 417 drv->probe = axg_spdifin_dai_probe; in axg_spdifin_get_dai_drv() 418 drv->remove = axg_spdifin_dai_remove; in axg_spdifin_get_dai_drv() 419 drv->capture.stream_name = "Capture"; in axg_spdifin_get_dai_drv() 420 drv->capture.channels_min = 1; in axg_spdifin_get_dai_drv() 421 drv->capture.channels_max = 2; in axg_spdifin_get_dai_drv() [all …]
|
/sound/soc/intel/boards/ |
D | cht_bsw_max98090_ti.c | 534 struct cht_mc_private *drv; in snd_cht_mc_probe() local 540 drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); in snd_cht_mc_probe() 541 if (!drv) in snd_cht_mc_probe() 546 drv->quirks = (unsigned long)dmi_id->driver_data; in snd_cht_mc_probe() 548 drv->ts3a227e_present = acpi_dev_found("104C227E"); in snd_cht_mc_probe() 549 if (!drv->ts3a227e_present) { in snd_cht_mc_probe() 571 snd_soc_card_set_drvdata(&snd_soc_card_cht, drv); in snd_cht_mc_probe() 573 if (drv->quirks & QUIRK_PMC_PLT_CLK_0) in snd_cht_mc_probe() 578 drv->mclk = devm_clk_get(dev, mclk_name); in snd_cht_mc_probe() 579 if (IS_ERR(drv->mclk)) { in snd_cht_mc_probe() [all …]
|
D | cht_bsw_rt5672.c | 449 struct cht_mc_private *drv; in snd_cht_mc_probe() local 457 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in snd_cht_mc_probe() 458 if (!drv) in snd_cht_mc_probe() 461 strcpy(drv->codec_name, RT5672_I2C_DEFAULT); in snd_cht_mc_probe() 474 snprintf(drv->codec_name, sizeof(drv->codec_name), in snd_cht_mc_probe() 477 cht_dailink[dai_index].codecs->name = drv->codec_name; in snd_cht_mc_probe() 483 drv->use_ssp0 = true; in snd_cht_mc_probe() 497 drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); in snd_cht_mc_probe() 498 if (IS_ERR(drv->mclk)) { in snd_cht_mc_probe() 501 PTR_ERR(drv->mclk)); in snd_cht_mc_probe() [all …]
|
D | cht_bsw_rt5645.c | 535 struct cht_mc_private *drv; in snd_cht_mc_probe() local 545 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in snd_cht_mc_probe() 546 if (!drv) in snd_cht_mc_probe() 557 drv->acpi_card = &snd_soc_cards[i]; in snd_cht_mc_probe() 569 sprintf(drv->codec_name, "i2c-%s:00", drv->acpi_card->codec_id); in snd_cht_mc_probe() 575 card->dai_link[i].codecs->name = drv->codec_name; in snd_cht_mc_probe() 669 drv->mclk = devm_clk_get(&pdev->dev, mclk_name); in snd_cht_mc_probe() 670 if (IS_ERR(drv->mclk)) { in snd_cht_mc_probe() 672 mclk_name, PTR_ERR(drv->mclk)); in snd_cht_mc_probe() 673 return PTR_ERR(drv->mclk); in snd_cht_mc_probe() [all …]
|
D | cht_bsw_nau8824.c | 249 struct cht_mc_private *drv; in snd_cht_mc_probe() local 255 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in snd_cht_mc_probe() 256 if (!drv) in snd_cht_mc_probe() 258 snd_soc_card_set_drvdata(&snd_soc_card_cht, drv); in snd_cht_mc_probe()
|
/sound/soc/sof/ |
D | nocodec.c | 23 struct snd_soc_dai_driver *drv, in sof_nocodec_bes_setup() argument 30 if (!drv || !links || !card) in sof_nocodec_bes_setup() 56 links[i].cpus->dai_name = drv[i].name; in sof_nocodec_bes_setup() 60 if (drv[i].playback.channels_min) in sof_nocodec_bes_setup() 62 if (drv[i].capture.channels_min) in sof_nocodec_bes_setup()
|
/sound/soc/sof/intel/ |
D | hda-dai.c | 776 if (strstr(ops->drv[i].name, "SSP")) { in hda_set_dai_drv_ops() 777 ops->drv[i].ops = &ipc3_ssp_dai_ops; in hda_set_dai_drv_ops() 781 if (strstr(ops->drv[i].name, "iDisp") || in hda_set_dai_drv_ops() 782 strstr(ops->drv[i].name, "Analog") || in hda_set_dai_drv_ops() 783 strstr(ops->drv[i].name, "Digital")) in hda_set_dai_drv_ops() 784 ops->drv[i].ops = &ipc3_hda_dai_ops; in hda_set_dai_drv_ops() 793 if (strstr(ops->drv[i].name, "DMIC")) { in hda_set_dai_drv_ops() 794 ops->drv[i].ops = &ipc4_dmic_dai_ops; in hda_set_dai_drv_ops() 797 if (strstr(ops->drv[i].name, "SSP")) { in hda_set_dai_drv_ops() 798 ops->drv[i].ops = &ipc4_ssp_dai_ops; in hda_set_dai_drv_ops() [all …]
|
/sound/ac97/ |
D | bus.c | 191 int snd_ac97_codec_driver_register(struct ac97_codec_driver *drv) in snd_ac97_codec_driver_register() argument 193 drv->driver.bus = &ac97_bus_type; in snd_ac97_codec_driver_register() 194 return driver_register(&drv->driver); in snd_ac97_codec_driver_register() 204 void snd_ac97_codec_driver_unregister(struct ac97_codec_driver *drv) in snd_ac97_codec_driver_unregister() argument 206 driver_unregister(&drv->driver); in snd_ac97_codec_driver_unregister() 473 static int ac97_bus_match(struct device *dev, struct device_driver *drv) in ac97_bus_match() argument 476 struct ac97_codec_driver *adrv = to_ac97_driver(drv); in ac97_bus_match()
|
/sound/soc/sh/rcar/ |
D | core.c | 1343 struct snd_soc_dai_driver *drv; in __rsnd_dai_probe() local 1349 drv = rsnd_daidrv_get(priv, dai_i); in __rsnd_dai_probe() 1356 drv->name = rdai->name; in __rsnd_dai_probe() 1357 drv->ops = &rsnd_soc_dai_ops; in __rsnd_dai_probe() 1358 drv->pcm_new = rsnd_pcm_new; in __rsnd_dai_probe() 1362 drv->playback.rates = RSND_RATES; in __rsnd_dai_probe() 1363 drv->playback.formats = RSND_FMTS; in __rsnd_dai_probe() 1364 drv->playback.channels_min = 2; in __rsnd_dai_probe() 1365 drv->playback.channels_max = 8; in __rsnd_dai_probe() 1366 drv->playback.stream_name = io_playback->name; in __rsnd_dai_probe() [all …]
|
/sound/soc/fsl/ |
D | imx-audio-rpmsg.c | 117 .drv.name = "imx_audio_rpmsg", 118 .drv.owner = THIS_MODULE,
|
/sound/soc/codecs/ |
D | adau1977.c | 499 unsigned int ctrl0, ctrl1, drv; in adau1977_set_tdm_slot() local 516 drv = 0; in adau1977_set_tdm_slot() 519 drv |= ADAU1977_SAI_OVERTEMP_DRV_C(i); in adau1977_set_tdm_slot() 568 ADAU1977_SAI_OVERTEMP_DRV_C(3), drv); in adau1977_set_tdm_slot()
|
/sound/ |
D | ac97_bus.c | 83 static int ac97_bus_match(struct device *dev, struct device_driver *drv) in ac97_bus_match() argument
|