/sound/aoa/soundbus/ |
D | core.c | 40 struct soundbus_driver *drv; in soundbus_probe() local 43 drv = to_soundbus_driver(dev->driver); in soundbus_probe() 46 if (!drv->probe) in soundbus_probe() 51 error = drv->probe(soundbus_dev); in soundbus_probe() 111 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_remove() local 113 if (dev->driver && drv->remove) in soundbus_device_remove() 114 drv->remove(soundbus_dev); in soundbus_device_remove() 123 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_shutdown() local 125 if (dev->driver && drv->shutdown) in soundbus_device_shutdown() 126 drv->shutdown(soundbus_dev); in soundbus_device_shutdown() [all …]
|
D | soundbus.h | 195 #define to_soundbus_driver(drv) container_of(drv,struct soundbus_driver, driver) argument 197 extern int soundbus_register_driver(struct soundbus_driver *drv); 198 extern void soundbus_unregister_driver(struct soundbus_driver *drv);
|
/sound/soc/intel/atom/sst/ |
D | sst.c | 59 struct intel_sst_drv *drv = (struct intel_sst_drv *) context; in intel_sst_interrupt_mrfld() local 63 isr.full = sst_shim_read64(drv->shim, SST_ISRX); in intel_sst_interrupt_mrfld() 67 spin_lock(&drv->ipc_spin_lock); in intel_sst_interrupt_mrfld() 68 header.full = sst_shim_read64(drv->shim, in intel_sst_interrupt_mrfld() 69 drv->ipc_reg.ipcx); in intel_sst_interrupt_mrfld() 71 sst_shim_write64(drv->shim, drv->ipc_reg.ipcx, header.full); in intel_sst_interrupt_mrfld() 75 sst_shim_write64(drv->shim, SST_ISRX, isr.full); in intel_sst_interrupt_mrfld() 76 spin_unlock(&drv->ipc_spin_lock); in intel_sst_interrupt_mrfld() 79 queue_work(drv->post_msg_wq, &drv->ipc_post_msg_wq); in intel_sst_interrupt_mrfld() 85 spin_lock(&drv->ipc_spin_lock); in intel_sst_interrupt_mrfld() [all …]
|
D | sst_pvt.c | 344 int sst_assign_pvt_id(struct intel_sst_drv *drv) in sst_assign_pvt_id() argument 348 spin_lock(&drv->block_lock); in sst_assign_pvt_id() 350 local = ffz(drv->pvt_id); in sst_assign_pvt_id() 351 dev_dbg(drv->dev, "pvt_id assigned --> %d\n", local); in sst_assign_pvt_id() 353 spin_unlock(&drv->block_lock); in sst_assign_pvt_id() 354 dev_err(drv->dev, "PVT _ID error: no free id blocks "); in sst_assign_pvt_id() 358 change_bit(local, &drv->pvt_id); in sst_assign_pvt_id() 359 spin_unlock(&drv->block_lock); in sst_assign_pvt_id()
|
/sound/soc/intel/atom/ |
D | sst-atom-controls.c | 31 static int sst_fill_byte_control(struct sst_data *drv, in sst_fill_byte_control() argument 36 struct snd_sst_bytes_v2 *byte_data = drv->byte_stream; in sst_fill_byte_control() 45 dev_err(&drv->pdev->dev, "command length too big (%u)", len); in sst_fill_byte_control() 55 static int sst_fill_and_send_cmd_unlocked(struct sst_data *drv, in sst_fill_and_send_cmd_unlocked() argument 61 ret = sst_fill_byte_control(drv, ipc_msg, in sst_fill_and_send_cmd_unlocked() 65 return sst->ops->send_byte_stream(sst->dev, drv->byte_stream); in sst_fill_and_send_cmd_unlocked() 73 static int sst_fill_and_send_cmd(struct sst_data *drv, in sst_fill_and_send_cmd() argument 79 mutex_lock(&drv->lock); in sst_fill_and_send_cmd() 80 ret = sst_fill_and_send_cmd_unlocked(drv, ipc_msg, block, in sst_fill_and_send_cmd() 82 mutex_unlock(&drv->lock); in sst_fill_and_send_cmd() [all …]
|
D | sst-mfld-platform-pcm.c | 702 struct sst_data *drv = dev_get_drvdata(platform->dev); in sst_soc_probe() local 704 drv->soc_card = platform->component.card; in sst_soc_probe() 722 struct sst_data *drv; in sst_platform_probe() local 726 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in sst_platform_probe() 727 if (drv == NULL) { in sst_platform_probe() 738 drv->pdata = pdata; in sst_platform_probe() 739 drv->pdev = pdev; in sst_platform_probe() 740 mutex_init(&drv->lock); in sst_platform_probe() 741 dev_set_drvdata(&pdev->dev, drv); in sst_platform_probe() 771 struct sst_data *drv = dev_get_drvdata(dev); in sst_soc_prepare() local [all …]
|
/sound/core/seq/ |
D | seq_midi_emul.c | 47 static void note_off(struct snd_midi_op *ops, void *drv, 54 static void rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, 56 static void nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, 88 void *drv; in snd_midi_process_event() local 108 drv = chanset->private_data; in snd_midi_process_event() 131 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event() 135 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 141 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); in snd_midi_process_event() 145 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event() 148 do_control(ops, drv, chanset, chan, in snd_midi_process_event() [all …]
|
D | seq_device.c | 58 static int snd_seq_bus_match(struct device *dev, struct device_driver *drv) in snd_seq_bus_match() argument 61 struct snd_seq_driver *sdrv = to_seq_drv(drv); in snd_seq_bus_match() 256 int __snd_seq_driver_register(struct snd_seq_driver *drv, struct module *mod) in __snd_seq_driver_register() argument 258 if (WARN_ON(!drv->driver.name || !drv->id)) in __snd_seq_driver_register() 260 drv->driver.bus = &snd_seq_bus_type; in __snd_seq_driver_register() 261 drv->driver.owner = mod; in __snd_seq_driver_register() 262 return driver_register(&drv->driver); in __snd_seq_driver_register() 266 void snd_seq_driver_unregister(struct snd_seq_driver *drv) in snd_seq_driver_unregister() argument 268 driver_unregister(&drv->driver); in snd_seq_driver_unregister()
|
/sound/pci/hda/ |
D | hda_bind.c | 20 static int hda_codec_match(struct hdac_device *dev, struct hdac_driver *drv) in hda_codec_match() argument 24 container_of(drv, struct hda_codec_driver, core); in hda_codec_match() 149 int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, in __hda_codec_driver_register() argument 152 drv->core.driver.name = name; in __hda_codec_driver_register() 153 drv->core.driver.owner = owner; in __hda_codec_driver_register() 154 drv->core.driver.bus = &snd_hda_bus_type; in __hda_codec_driver_register() 155 drv->core.driver.probe = hda_codec_driver_probe; in __hda_codec_driver_register() 156 drv->core.driver.remove = hda_codec_driver_remove; in __hda_codec_driver_register() 157 drv->core.driver.shutdown = hda_codec_driver_shutdown; in __hda_codec_driver_register() 158 drv->core.driver.pm = &hda_codec_driver_pm; in __hda_codec_driver_register() [all …]
|
D | hda_codec.h | 102 int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, 104 #define hda_codec_driver_register(drv) \ argument 105 __hda_codec_driver_register(drv, KBUILD_MODNAME, THIS_MODULE) 106 void hda_codec_driver_unregister(struct hda_codec_driver *drv); 107 #define module_hda_codec_driver(drv) \ argument 108 module_driver(drv, hda_codec_driver_register, \
|
/sound/hda/ |
D | hda_bus_type.c | 23 hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv) in hdac_get_device_id() argument 25 if (drv->id_table) { in hdac_get_device_id() 26 const struct hda_device_id *id = drv->id_table; in hdac_get_device_id() 40 static int hdac_codec_match(struct hdac_device *dev, struct hdac_driver *drv) in hdac_codec_match() argument 42 if (hdac_get_device_id(dev, drv)) in hdac_codec_match() 48 static int hda_bus_match(struct device *dev, struct device_driver *drv) in hda_bus_match() argument 51 struct hdac_driver *hdrv = drv_to_hdac_driver(drv); in hda_bus_match()
|
D | hdac_bus.c | 155 struct hdac_driver *drv; in process_unsol_events() local 169 drv = drv_to_hdac_driver(codec->dev.driver); in process_unsol_events() 170 if (drv->unsol_event) in process_unsol_events() 171 drv->unsol_event(codec, res); in process_unsol_events()
|
/sound/hda/ext/ |
D | hdac_ext_bus.c | 243 int snd_hda_ext_driver_register(struct hdac_ext_driver *drv) in snd_hda_ext_driver_register() argument 245 drv->hdac.type = HDA_DEV_ASOC; in snd_hda_ext_driver_register() 246 drv->hdac.driver.bus = &snd_hda_bus_type; in snd_hda_ext_driver_register() 249 if (drv->probe) in snd_hda_ext_driver_register() 250 drv->hdac.driver.probe = hda_ext_drv_probe; in snd_hda_ext_driver_register() 251 if (drv->remove) in snd_hda_ext_driver_register() 252 drv->hdac.driver.remove = hdac_ext_drv_remove; in snd_hda_ext_driver_register() 253 if (drv->shutdown) in snd_hda_ext_driver_register() 254 drv->hdac.driver.shutdown = hdac_ext_drv_shutdown; in snd_hda_ext_driver_register() 256 return driver_register(&drv->hdac.driver); in snd_hda_ext_driver_register() [all …]
|
/sound/soc/intel/boards/ |
D | cht_bsw_rt5645.c | 411 struct cht_mc_private *drv; in snd_cht_mc_probe() local 418 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_ATOMIC); in snd_cht_mc_probe() 419 if (!drv) in snd_cht_mc_probe() 430 drv->acpi_card = &snd_soc_cards[i]; in snd_cht_mc_probe() 442 sprintf(drv->codec_name, "i2c-%s:00", drv->acpi_card->codec_id); in snd_cht_mc_probe() 447 card->dai_link[i].codec_name = drv->codec_name; in snd_cht_mc_probe() 460 drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); in snd_cht_mc_probe() 461 if (IS_ERR(drv->mclk)) { in snd_cht_mc_probe() 464 PTR_ERR(drv->mclk)); in snd_cht_mc_probe() 465 return PTR_ERR(drv->mclk); in snd_cht_mc_probe() [all …]
|
D | cht_bsw_max98090_ti.c | 293 struct cht_mc_private *drv; in snd_cht_mc_probe() local 295 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_ATOMIC); in snd_cht_mc_probe() 296 if (!drv) in snd_cht_mc_probe() 299 drv->ts3a227e_present = acpi_dev_found("104C227E"); in snd_cht_mc_probe() 300 if (!drv->ts3a227e_present) { in snd_cht_mc_probe() 308 snd_soc_card_set_drvdata(&snd_soc_card_cht, drv); in snd_cht_mc_probe()
|
D | byt-max98090.c | 88 struct byt_max98090_private *drv = snd_soc_card_get_drvdata(card); in byt_max98090_init() local 89 struct snd_soc_jack *jack = &drv->jack; in byt_max98090_init()
|
/sound/soc/sh/rcar/ |
D | core.c | 733 struct snd_soc_dai_driver *rdrv, *drv; in rsnd_dai_probe() local 763 drv = rdrv + dai_i; in rsnd_dai_probe() 770 drv->name = rdai->name; in rsnd_dai_probe() 771 drv->ops = &rsnd_soc_dai_ops; in rsnd_dai_probe() 775 drv->playback.rates = RSND_RATES; in rsnd_dai_probe() 776 drv->playback.formats = RSND_FMTS; in rsnd_dai_probe() 777 drv->playback.channels_min = 2; in rsnd_dai_probe() 778 drv->playback.channels_max = 6; in rsnd_dai_probe() 779 drv->playback.stream_name = rdai->playback.name; in rsnd_dai_probe() 783 drv->capture.rates = RSND_RATES; in rsnd_dai_probe() [all …]
|
/sound/soc/rockchip/ |
D | rk3399_gru_sound.c | 313 struct device_driver *drv; in rockchip_sound_probe() local 339 drv = driver_find("rt5514", &spi_bus_type); in rockchip_sound_probe() 340 if (!drv) { in rockchip_sound_probe() 345 dev = driver_find_device(drv, NULL, NULL, rockchip_sound_match_stub); in rockchip_sound_probe()
|
/sound/soc/codecs/ |
D | adau1977.c | 503 unsigned int ctrl0, ctrl1, drv; in adau1977_set_tdm_slot() local 520 drv = 0; in adau1977_set_tdm_slot() 523 drv |= ADAU1977_SAI_OVERTEMP_DRV_C(i); in adau1977_set_tdm_slot() 572 ADAU1977_SAI_OVERTEMP_DRV_C(3), drv); in adau1977_set_tdm_slot()
|
/sound/ |
D | ac97_bus.c | 87 static int ac97_bus_match(struct device *dev, struct device_driver *drv) in ac97_bus_match() argument
|
/sound/soc/ |
D | soc-core.c | 655 struct snd_soc_dai_driver *drv = dai->driver; in snd_soc_suspend() local 657 if (drv->ops->digital_mute && dai->playback_active) in snd_soc_suspend() 658 drv->ops->digital_mute(dai, 1); in snd_soc_suspend() 827 struct snd_soc_dai_driver *drv = dai->driver; in soc_resume_deferred() local 829 if (drv->ops->digital_mute && dai->playback_active) in soc_resume_deferred() 830 drv->ops->digital_mute(dai, 0); in soc_resume_deferred()
|
D | soc-pcm.c | 2576 struct snd_soc_dai_driver *drv = dai->driver; in soc_dpcm_be_digital_mute() local 2581 if (drv->ops && drv->ops->digital_mute && in soc_dpcm_be_digital_mute() 2583 drv->ops->digital_mute(dai, mute); in soc_dpcm_be_digital_mute()
|
/sound/arm/ |
D | aaci.c | 1099 .drv = {
|