Home
last modified time | relevance | path

Searched refs:drv (Results 1 – 25 of 37) sorted by relevance

12

/sound/aoa/soundbus/
Dcore.c39 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()
122 struct soundbus_driver * drv = to_soundbus_driver(dev->driver); in soundbus_device_shutdown() local
124 if (dev->driver && drv->shutdown) in soundbus_device_shutdown()
125 drv->shutdown(soundbus_dev); in soundbus_device_shutdown()
[all …]
Dsoundbus.h194 #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/
Dsst-atom-controls.c23 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 …]
Dsst-mfld-platform-pcm.c678 struct sst_data *drv = dev_get_drvdata(component->dev); in sst_soc_probe() local
680 drv->soc_card = component->card; in sst_soc_probe()
686 struct sst_data *drv = dev_get_drvdata(component->dev); in sst_soc_remove() local
688 drv->soc_card = NULL; in sst_soc_remove()
704 struct sst_data *drv; in sst_platform_probe() local
708 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in sst_platform_probe()
709 if (drv == NULL) { in sst_platform_probe()
720 drv->pdata = pdata; in sst_platform_probe()
721 drv->pdev = pdev; in sst_platform_probe()
722 mutex_init(&drv->lock); in sst_platform_probe()
[all …]
/sound/soc/intel/atom/sst/
Dsst.c52 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 …]
Dsst_pvt.c335 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/core/seq/
Dseq_midi_emul.c33 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/hda/ext/
Dhdac_ext_bus.c169 int snd_hda_ext_driver_register(struct hdac_driver *drv) in snd_hda_ext_driver_register() argument
171 drv->type = HDA_DEV_ASOC; in snd_hda_ext_driver_register()
172 drv->driver.bus = &snd_hda_bus_type; in snd_hda_ext_driver_register()
175 if (drv->probe) in snd_hda_ext_driver_register()
176 drv->driver.probe = hda_ext_drv_probe; in snd_hda_ext_driver_register()
177 if (drv->remove) in snd_hda_ext_driver_register()
178 drv->driver.remove = hdac_ext_drv_remove; in snd_hda_ext_driver_register()
179 if (drv->shutdown) in snd_hda_ext_driver_register()
180 drv->driver.shutdown = hdac_ext_drv_shutdown; in snd_hda_ext_driver_register()
182 return driver_register(&drv->driver); in snd_hda_ext_driver_register()
[all …]
/sound/pci/hda/
Dhda_bind.c21 static int hda_codec_match(struct hdac_device *dev, struct hdac_driver *drv) in hda_codec_match() argument
25 container_of(drv, struct hda_codec_driver, core); in hda_codec_match()
176 int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, in __hda_codec_driver_register() argument
179 drv->core.driver.name = name; in __hda_codec_driver_register()
180 drv->core.driver.owner = owner; in __hda_codec_driver_register()
181 drv->core.driver.bus = &snd_hda_bus_type; in __hda_codec_driver_register()
182 drv->core.driver.probe = hda_codec_driver_probe; in __hda_codec_driver_register()
183 drv->core.driver.remove = hda_codec_driver_remove; in __hda_codec_driver_register()
184 drv->core.driver.shutdown = hda_codec_driver_shutdown; in __hda_codec_driver_register()
185 drv->core.driver.pm = &hda_codec_driver_pm; in __hda_codec_driver_register()
[all …]
/sound/hda/
Dhda_bus_type.c24 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()
Dhdac_bus.c172 struct hdac_driver *drv; in snd_hdac_bus_process_unsol_events() local
188 drv = drv_to_hdac_driver(codec->dev.driver); in snd_hdac_bus_process_unsol_events()
189 if (drv->unsol_event) in snd_hdac_bus_process_unsol_events()
190 drv->unsol_event(codec, res); in snd_hdac_bus_process_unsol_events()
/sound/core/
Dseq_device.c43 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()
239 int __snd_seq_driver_register(struct snd_seq_driver *drv, struct module *mod) in __snd_seq_driver_register() argument
241 if (WARN_ON(!drv->driver.name || !drv->id)) in __snd_seq_driver_register()
243 drv->driver.bus = &snd_seq_bus_type; in __snd_seq_driver_register()
244 drv->driver.owner = mod; in __snd_seq_driver_register()
245 return driver_register(&drv->driver); in __snd_seq_driver_register()
249 void snd_seq_driver_unregister(struct snd_seq_driver *drv) in snd_seq_driver_unregister() argument
251 driver_unregister(&drv->driver); in snd_seq_driver_unregister()
/sound/soc/meson/
Daxg-tdm-formatter.c18 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
270 drv = of_device_get_match_data(dev); in axg_tdm_formatter_probe()
271 if (!drv) { in axg_tdm_formatter_probe()
280 formatter->drv = drv; in axg_tdm_formatter_probe()
[all …]
Daxg-spdifin.c407 struct snd_soc_dai_driver *drv; in axg_spdifin_get_dai_drv() local
410 drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); in axg_spdifin_get_dai_drv()
411 if (!drv) in axg_spdifin_get_dai_drv()
414 drv->name = "SPDIF Input"; in axg_spdifin_get_dai_drv()
415 drv->ops = &axg_spdifin_ops; in axg_spdifin_get_dai_drv()
416 drv->probe = axg_spdifin_dai_probe; in axg_spdifin_get_dai_drv()
417 drv->remove = axg_spdifin_dai_remove; in axg_spdifin_get_dai_drv()
418 drv->capture.stream_name = "Capture"; in axg_spdifin_get_dai_drv()
419 drv->capture.channels_min = 1; in axg_spdifin_get_dai_drv()
420 drv->capture.channels_max = 2; in axg_spdifin_get_dai_drv()
[all …]
/sound/soc/intel/boards/
Dcht_bsw_max98090_ti.c539 struct cht_mc_private *drv; in snd_cht_mc_probe() local
544 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in snd_cht_mc_probe()
545 if (!drv) in snd_cht_mc_probe()
550 drv->quirks = (unsigned long)dmi_id->driver_data; in snd_cht_mc_probe()
552 drv->ts3a227e_present = acpi_dev_found("104C227E"); in snd_cht_mc_probe()
553 if (!drv->ts3a227e_present) { in snd_cht_mc_probe()
575 snd_soc_card_set_drvdata(&snd_soc_card_cht, drv); in snd_cht_mc_probe()
577 if (drv->quirks & QUIRK_PMC_PLT_CLK_0) in snd_cht_mc_probe()
582 drv->mclk = devm_clk_get(&pdev->dev, mclk_name); in snd_cht_mc_probe()
583 if (IS_ERR(drv->mclk)) { in snd_cht_mc_probe()
[all …]
Dcht_bsw_rt5672.c416 struct cht_mc_private *drv; in snd_cht_mc_probe() local
422 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in snd_cht_mc_probe()
423 if (!drv) in snd_cht_mc_probe()
426 strcpy(drv->codec_name, RT5672_I2C_DEFAULT); in snd_cht_mc_probe()
431 snprintf(drv->codec_name, sizeof(drv->codec_name), in snd_cht_mc_probe()
437 cht_dailink[i].codecs->name = drv->codec_name; in snd_cht_mc_probe()
452 drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); in snd_cht_mc_probe()
453 if (IS_ERR(drv->mclk)) { in snd_cht_mc_probe()
456 PTR_ERR(drv->mclk)); in snd_cht_mc_probe()
457 return PTR_ERR(drv->mclk); in snd_cht_mc_probe()
[all …]
Dcht_bsw_rt5645.c542 struct cht_mc_private *drv; in snd_cht_mc_probe() local
551 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in snd_cht_mc_probe()
552 if (!drv) in snd_cht_mc_probe()
563 drv->acpi_card = &snd_soc_cards[i]; in snd_cht_mc_probe()
575 sprintf(drv->codec_name, "i2c-%s:00", drv->acpi_card->codec_id); in snd_cht_mc_probe()
581 card->dai_link[i].codecs->name = drv->codec_name; in snd_cht_mc_probe()
675 drv->mclk = devm_clk_get(&pdev->dev, mclk_name); in snd_cht_mc_probe()
676 if (IS_ERR(drv->mclk)) { in snd_cht_mc_probe()
678 mclk_name, PTR_ERR(drv->mclk)); in snd_cht_mc_probe()
679 return PTR_ERR(drv->mclk); in snd_cht_mc_probe()
[all …]
Dcht_bsw_nau8824.c260 struct cht_mc_private *drv; in snd_cht_mc_probe() local
265 drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); in snd_cht_mc_probe()
266 if (!drv) in snd_cht_mc_probe()
268 snd_soc_card_set_drvdata(&snd_soc_card_cht, drv); in snd_cht_mc_probe()
/sound/soc/sof/
Dnocodec.c52 links[i].cpus->dai_name = ops->drv[i].name; in sof_nocodec_bes_setup()
56 if (ops->drv[i].playback.channels_min) in sof_nocodec_bes_setup()
58 if (ops->drv[i].capture.channels_min) in sof_nocodec_bes_setup()
/sound/ac97/
Dbus.c191 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/
Dcore.c1264 struct snd_soc_dai_driver *drv; in __rsnd_dai_probe() local
1270 drv = rsnd_daidrv_get(priv, dai_i); in __rsnd_dai_probe()
1277 drv->name = rdai->name; in __rsnd_dai_probe()
1278 drv->ops = &rsnd_soc_dai_ops; in __rsnd_dai_probe()
1279 drv->pcm_new = rsnd_pcm_new; in __rsnd_dai_probe()
1283 drv->playback.rates = RSND_RATES; in __rsnd_dai_probe()
1284 drv->playback.formats = RSND_FMTS; in __rsnd_dai_probe()
1285 drv->playback.channels_min = 2; in __rsnd_dai_probe()
1286 drv->playback.channels_max = 8; in __rsnd_dai_probe()
1287 drv->playback.stream_name = io_playback->name; in __rsnd_dai_probe()
[all …]
/sound/
Dac97_bus.c83 static int ac97_bus_match(struct device *dev, struct device_driver *drv) in ac97_bus_match() argument
/sound/soc/codecs/
Dadau1977.c500 unsigned int ctrl0, ctrl1, drv; in adau1977_set_tdm_slot() local
517 drv = 0; in adau1977_set_tdm_slot()
520 drv |= ADAU1977_SAI_OVERTEMP_DRV_C(i); in adau1977_set_tdm_slot()
569 ADAU1977_SAI_OVERTEMP_DRV_C(3), drv); in adau1977_set_tdm_slot()
/sound/soc/sof/intel/
Dapl.c105 .drv = skl_dai,
Dtgl.c100 .drv = skl_dai,

12