| /linux/sound/soc/ |
| H A D | soc-generic-dmaengine-pcm.c | 28 static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, in dmaengine_dma_dev() argument 31 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev() 34 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev() 80 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_hw_params() local 85 if (!pcm->config->prepare_slave_config) in dmaengine_pcm_hw_params() 90 ret = pcm->config->prepare_slave_config(substream, params, &slave_config); in dmaengine_pcm_hw_params() 102 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_set_runtime_hwparams() local 103 struct device *dma_dev = dmaengine_dma_dev(pcm, substream); in dmaengine_pcm_set_runtime_hwparams() 104 struct dma_chan *chan = pcm->chan[substream->stream]; in dmaengine_pcm_set_runtime_hwparams() 114 if (pcm->config->pcm_hardware) in dmaengine_pcm_set_runtime_hwparams() [all …]
|
| /linux/sound/soc/samsung/ |
| H A D | pcm.c | 154 static void s3c_pcm_snd_txctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_txctrl() argument 156 void __iomem *regs = pcm->regs; in s3c_pcm_snd_txctrl() 176 if (!pcm->idleclk) in s3c_pcm_snd_txctrl() 185 static void s3c_pcm_snd_rxctrl(struct s3c_pcm_info *pcm, int on) in s3c_pcm_snd_rxctrl() argument 187 void __iomem *regs = pcm->regs; in s3c_pcm_snd_rxctrl() 207 if (!pcm->idleclk) in s3c_pcm_snd_rxctrl() 220 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(rtd, 0)); in s3c_pcm_trigger() local 223 dev_dbg(pcm->dev, "Entered %s\n", __func__); in s3c_pcm_trigger() 229 spin_lock_irqsave(&pcm->lock, flags); in s3c_pcm_trigger() 232 s3c_pcm_snd_rxctrl(pcm, 1); in s3c_pcm_trigger() [all …]
|
| /linux/sound/core/ |
| H A D | pcm.c | 33 static int snd_pcm_free(struct snd_pcm *pcm); 40 struct snd_pcm *pcm; in snd_pcm_get() local 42 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_get() 43 if (pcm->card == card && pcm->device == device) in snd_pcm_get() 44 return pcm; in snd_pcm_get() 51 struct snd_pcm *pcm; in snd_pcm_next() local 53 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_next() 54 if (pcm->card == card && pcm->device > device) in snd_pcm_next() 55 return pcm->device; in snd_pcm_next() 56 else if (pcm->card->number > card->number) in snd_pcm_next() [all …]
|
| H A D | pcm_memory.c | 102 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 117 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 119 substream->pcm->name, orig_size); in preallocate_pcm_pages() 131 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free() 140 void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm) in snd_pcm_lib_preallocate_free_for_all() argument 145 for_each_pcm_substream(pcm, stream, substream) in snd_pcm_lib_preallocate_free_for_all() 184 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_preallocate_proc_write() 189 guard(mutex)(&substream->pcm->open_mutex); in snd_pcm_lib_preallocate_proc_write() 216 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write() 218 substream->pcm->name, size); in snd_pcm_lib_preallocate_proc_write() [all …]
|
| H A D | Makefile | 17 snd-pcm-y := pcm.o pcm_native.o pcm_lib.o pcm_misc.o \ 19 snd-pcm-$(CONFIG_SND_PCM_TIMER) += pcm_timer.o 20 snd-pcm-$(CONFIG_SND_PCM_ELD) += pcm_drm_eld.o 21 snd-pcm-$(CONFIG_SND_PCM_IEC958) += pcm_iec958.o 27 snd-pcm-dmaengine-y := pcm_dmaengine.o 45 obj-$(CONFIG_SND_PCM) += snd-pcm.o 46 obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
|
| /linux/sound/pci/ac97/ |
| H A D | ac97_pcm.c | 144 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, in get_slot_reg() argument 151 if (pcm->spdif) in get_slot_reg() 153 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_slot_reg() 154 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg() 392 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument 401 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates() 410 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates() 435 const struct ac97_pcm *pcm; in snd_ac97_pcm_assign() local 465 pcm = &pcms[i]; in snd_ac97_pcm_assign() 468 if (pcm->copy_flag) { in snd_ac97_pcm_assign() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | hda.c | 21 struct hda_pcm *pcm; in hda_codec_create_dais() local 28 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in hda_codec_create_dais() 30 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in hda_codec_create_dais() 34 dev_info(dev, "creating for %s %d\n", pcm->name, i); in hda_codec_create_dais() 36 drvs[i].name = pcm->name; in hda_codec_create_dais() 41 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais() 42 dev_info(dev, "skipping playback dai for %s\n", pcm->name); in hda_codec_create_dais() 47 devm_kasprintf(dev, GFP_KERNEL, "%s %s", pcm->name, in hda_codec_create_dais() 51 stream->channels_min = pcm in hda_codec_create_dais() 87 struct hda_pcm *pcm; hda_codec_register_dais() local 128 struct hda_pcm *pcm; hda_codec_unregister_dais() local [all...] |
| H A D | hdac_hdmi.c | 146 struct hdac_hdmi_pcm *pcm; in hdac_hdmi_get_pcm_from_cvt() local 148 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm_from_cvt() 149 if (pcm->cvt == cvt) in hdac_hdmi_get_pcm_from_cvt() 150 return pcm; in hdac_hdmi_get_pcm_from_cvt() 156 static void hdac_hdmi_jack_report(struct hdac_hdmi_pcm *pcm, in hdac_hdmi_jack_report() argument 168 if (pcm->jack_event == 0) { in hdac_hdmi_jack_report() 170 "jack report for pcm=%d\n", in hdac_hdmi_jack_report() 171 pcm->pcm_id); in hdac_hdmi_jack_report() 172 snd_soc_jack_report(pcm->jack, SND_JACK_AVOUT, in hdac_hdmi_jack_report() 175 pcm in hdac_hdmi_jack_report() 206 hdac_hdmi_jack_report_sync(struct hdac_hdmi_pcm * pcm,struct hdac_hdmi_port * port,bool is_connect) hdac_hdmi_jack_report_sync() argument 284 struct hdac_hdmi_pcm *pcm; get_hdmi_pcm_from_id() local 356 hdac_hdmi_setup_audio_infoframe(struct hdac_device * hdev,struct hdac_hdmi_pcm * pcm,struct hdac_hdmi_port * port) hdac_hdmi_setup_audio_infoframe() argument 444 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_stream() local 469 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_hw_params() local 530 struct hdac_hdmi_pcm *pcm; hdac_hdmi_get_port_from_cvt() local 636 struct hdac_hdmi_pcm *pcm; hdac_hdmi_pcm_close() local 722 struct hdac_hdmi_pcm *pcm; hdac_hdmi_get_pcm() local 773 struct hdac_hdmi_pcm *pcm; hdac_hdmi_pin_output_widget_event() local 819 struct hdac_hdmi_pcm *pcm; hdac_hdmi_cvt_output_widget_event() local 909 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_pin_port_mux() local 1257 struct hdac_hdmi_pcm *pcm; hdac_hdmi_present_sense() local 1773 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_get_chmap() local 1782 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_set_chmap() local 1803 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); is_hdac_hdmi_pcm_attached() local 1817 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_get_spk_alloc() local [all...] |
| H A D | hda-dai.c | 16 struct hda_pcm *pcm; in hda_codec_dai_startup() local 21 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_startup() 24 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_startup() 26 snd_hda_codec_pcm_get(pcm); in hda_codec_dai_startup() 31 snd_hda_codec_pcm_put(pcm); in hda_codec_dai_startup() 42 struct hda_pcm *pcm; in hda_codec_dai_shutdown() local 47 pcm = container_of(stream_info, struct hda_pcm, stream[substream->stream]); in hda_codec_dai_shutdown() 50 codec->core.vendor_id, stream_info, pcm, pcm->name, substream); in hda_codec_dai_shutdown() 56 snd_hda_codec_pcm_put(pcm); in hda_codec_dai_shutdown()
|
| H A D | hdac_hda.c | 198 struct hdac_hda_pcm *pcm; in hdac_hda_dai_set_stream() local 205 pcm = &hda_pvt->pcm[dai->id]; in hdac_hda_dai_set_stream() 208 pcm->stream_tag[direction] = hstream->stream_tag; in hdac_hda_dai_set_stream() 241 hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val; in hdac_hda_dai_hw_params() 251 struct hda_pcm *pcm; in hdac_hda_dai_hw_free() local 254 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_hw_free() 255 if (!pcm) in hdac_hda_dai_hw_free() 258 hda_stream = &pcm->stream[substream->stream]; in hdac_hda_dai_hw_free() 271 struct hda_pcm *pcm; in hdac_hda_dai_prepare() local 299 struct hda_pcm *pcm; hdac_hda_dai_open() local 324 struct hda_pcm *pcm; hdac_hda_dai_close() local [all...] |
| /linux/sound/pci/emu10k1/ |
| H A D | emupcm.c | 1403 struct snd_pcm *pcm; in snd_emu10k1_pcm() local 1407 err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm); in snd_emu10k1_pcm() 1411 pcm->private_data = emu; in snd_emu10k1_pcm() 1413 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops); in snd_emu10k1_pcm() 1414 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops); in snd_emu10k1_pcm() 1416 pcm->info_flags = 0; in snd_emu10k1_pcm() 1417 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_emu10k1_pcm() 1418 strscpy(pcm->name, "ADC Capture/Standard PCM Playback"); in snd_emu10k1_pcm() 1419 emu->pcm = pcm; in snd_emu10k1_pcm() 1422 …for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substre… in snd_emu10k1_pcm() [all …]
|
| /linux/sound/pci/au88x0/ |
| H A D | au88x0_pcm.c | 146 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_open() 148 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) { in snd_vortex_pcm_open() 152 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) { in snd_vortex_pcm_open() 166 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB in snd_vortex_pcm_open() 167 || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S) in snd_vortex_pcm_open() 172 VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_open() 219 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_params() 220 int dma, type = VORTEX_PCM_TYPE(substream->pcm); in snd_vortex_pcm_hw_params() 243 if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) { in snd_vortex_pcm_hw_params() 276 if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) { in snd_vortex_pcm_hw_free() [all …]
|
| /linux/sound/soc/sof/ |
| H A D | compress.c | 172 struct sof_ipc_pcm_params *pcm; in sof_compr_set_params() local 195 if (sizeof(*pcm) + ext_data_size > sdev->ipc->max_payload_size) in sof_compr_set_params() 206 pcm = kzalloc(sizeof(*pcm) + ext_data_size, GFP_KERNEL); in sof_compr_set_params() 207 if (!pcm) in sof_compr_set_params() 220 pcm->params.buffer.pages = PFN_UP(crtd->dma_bytes); in sof_compr_set_params() 221 pcm->hdr.size = sizeof(*pcm) + ext_data_size; in sof_compr_set_params() 222 pcm->hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in sof_compr_set_params() 224 pcm->comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_set_params() 225 pcm->params.hdr.size = sizeof(pcm->params) + ext_data_size; in sof_compr_set_params() 226 pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr; in sof_compr_set_params() [all …]
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | pcm-test.conf | 1 pcm.test.time1 { 10 pcm.test.time2 { 19 pcm.test.time3 { 28 pcm.test.time4 { 37 pcm.test.time5 { 46 pcm.test.time6 { 55 pcm.test.time7 {
|
| H A D | pcm-test.c | 554 void run_time_tests(struct pcm_data *pcm, enum test_class class, in run_time_tests() argument 574 test_pcm_time(pcm, class, test_name, pcm_cfg); in run_time_tests() 583 struct pcm_data *pcm; in card_thread() local 585 for (pcm = pcm_list; pcm != NULL; pcm = pcm->next) { in card_thread() 586 if (pcm->card != card->card) in card_thread() 589 run_time_tests(pcm, TEST_CLASS_DEFAULT, default_pcm_config); in card_thread() 590 run_time_tests(pcm, TEST_CLASS_SYSTEM, pcm->pcm_config); in card_thread() 600 struct pcm_data *pcm; in main() local 623 for (pcm = pcm_list; pcm != NULL; pcm = pcm->next) { in main() 625 cfg = pcm->pcm_config; in main() [all …]
|
| /linux/sound/core/oss/ |
| H A D | pcm_oss.c | 181 static int snd_pcm_hw_param_mask(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_mask() argument 190 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_mask() 240 static int snd_pcm_hw_param_min(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_min() argument 249 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_min() 301 static int snd_pcm_hw_param_max(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_max() argument 310 int err = snd_pcm_hw_refine(pcm, params); in snd_pcm_hw_param_max() 375 static int snd_pcm_hw_param_near(struct snd_pcm_substream *pcm, in snd_pcm_hw_param_near() argument 406 min = snd_pcm_hw_param_min(pcm, params, var, min, &mindir); in snd_pcm_hw_param_near() 418 max = snd_pcm_hw_param_max(pcm, params1, var, max, &maxdir); in snd_pcm_hw_param_near() 427 max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir); in snd_pcm_hw_param_near() [all …]
|
| /linux/sound/soc/tegra/ |
| H A D | tegra_isomgr_bw.c | 24 struct snd_pcm *pcm = substream->pcm; in tegra_isomgr_adma_setbw() local 31 if (!runtime || !pcm) in tegra_isomgr_adma_setbw() 34 if (pcm->device >= adma_isomgr->max_pcm_device) { in tegra_isomgr_adma_setbw() 36 pcm->device, adma_isomgr->max_pcm_device); in tegra_isomgr_adma_setbw() 44 if ((adma_isomgr->bw_per_dev[type][pcm->device] && is_running) || in tegra_isomgr_adma_setbw() 45 (!adma_isomgr->bw_per_dev[type][pcm->device] && !is_running)) in tegra_isomgr_adma_setbw() 66 adma_isomgr->current_bandwidth -= adma_isomgr->bw_per_dev[type][pcm->device]; in tegra_isomgr_adma_setbw() 71 adma_isomgr->bw_per_dev[type][pcm->device] = bandwidth; in tegra_isomgr_adma_setbw()
|
| /linux/sound/pci/ctxfi/ |
| H A D | ctpcm.c | 128 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open() 133 if (FRONT == substream->pcm->device) in ct_pcm_playback_open() 168 if (IEC958 == substream->pcm->device) in ct_pcm_playback_close() 205 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare() 417 struct snd_pcm *pcm; in ct_alsa_pcm_create() local 426 playback_count, capture_count, &pcm); in ct_alsa_pcm_create() 433 pcm->private_data = atc; in ct_alsa_pcm_create() 434 pcm->info_flags = 0; in ct_alsa_pcm_create() 435 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in ct_alsa_pcm_create() 436 strscpy(pcm->name, device_name, sizeof(pcm->name)); in ct_alsa_pcm_create() [all …]
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-coremask.h | 48 static inline bool cvmx_coremask_is_core_set(const struct cvmx_coremask *pcm, in cvmx_coremask_is_core_set() argument 56 return (pcm->coremask_bitmap[i] & ((u64)1 << n)) != 0; in cvmx_coremask_is_core_set() 71 static inline void cvmx_coremask_set64(struct cvmx_coremask *pcm, in cvmx_coremask_set64() argument 74 pcm->coremask_bitmap[0] = coremask_64; in cvmx_coremask_set64() 80 static inline void cvmx_coremask_clear_core(struct cvmx_coremask *pcm, int core) in cvmx_coremask_clear_core() argument 86 pcm->coremask_bitmap[i] &= ~(1ull << n); in cvmx_coremask_clear_core()
|
| /linux/sound/firewire/fireface/ |
| H A D | amdtp-ff.c | 30 static void write_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in write_pcm_s32() argument 36 struct snd_pcm_runtime *runtime = pcm->runtime; in write_pcm_s32() 60 static void read_pcm_s32(struct amdtp_stream *s, struct snd_pcm_substream *pcm, in read_pcm_s32() argument 66 struct snd_pcm_runtime *runtime = pcm->runtime; in read_pcm_s32() 116 unsigned int count, struct snd_pcm_substream *pcm) in process_it_ctx_payloads() argument 125 if (pcm) { in process_it_ctx_payloads() 126 write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_it_ctx_payloads() 137 unsigned int count, struct snd_pcm_substream *pcm) in process_ir_ctx_payloads() argument 146 if (pcm) { in process_ir_ctx_payloads() 147 read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_ir_ctx_payloads()
|
| /linux/arch/x86/mm/pat/ |
| H A D | memtype.c | 778 static inline void pgprot_set_cachemode(pgprot_t *prot, enum page_cache_mode pcm) in pgprot_set_cachemode() argument 781 cachemode2protval(pcm)); in pgprot_set_cachemode() 787 enum page_cache_mode pcm = _PAGE_CACHE_MODE_WB; in phys_mem_access_prot_allowed() local 796 pcm = _PAGE_CACHE_MODE_UC_MINUS; in phys_mem_access_prot_allowed() 798 pgprot_set_cachemode(vma_prot, pcm); in phys_mem_access_prot_allowed() 807 enum page_cache_mode pcm) in memtype_kernel_map_sync() argument 824 if (ioremap_change_attr((unsigned long)__va(base), id_sz, pcm) < 0) { in memtype_kernel_map_sync() 827 cattr_name(pcm), in memtype_kernel_map_sync() 844 enum page_cache_mode pcm = want_pcm; in reserve_pfn_range() local 857 pcm = lookup_memtype(paddr); in reserve_pfn_range() [all …]
|
| /linux/sound/pci/mixart/ |
| H A D | mixart.c | 423 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger() 440 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger() 447 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger() 452 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger() 706 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open() local 714 if ( pcm == chip->pcm ) { in snd_mixart_playback_open() 718 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_playback_open() 778 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open() local 786 if ( pcm == chip->pcm ) { in snd_mixart_capture_open() 790 snd_BUG_ON(pcm != chip->pcm_dig); in snd_mixart_capture_open() [all …]
|
| /linux/sound/soc/intel/boards/ |
| H A D | hda_dsp_common.c | 6 #include <sound/pcm.h> 32 spcm = rtd->pcm; in hda_dsp_hdmi_pcm_handle() 41 return rtd->pcm; 71 hpcm->pcm = spcm; in hda_dsp_hdmi_build_controls() 77 hpcm->pcm = NULL; in hda_dsp_hdmi_build_controls()
|
| H A D | ehl_rt5660.c | 78 struct sof_hdmi_pcm *pcm; in hdmi_init() local 80 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in hdmi_init() 81 if (!pcm) in hdmi_init() 85 pcm->device = rtd->dai_link->id; in hdmi_init() 86 pcm->codec_dai = dai; in hdmi_init() 88 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in hdmi_init() 96 struct sof_hdmi_pcm *pcm; in card_late_probe() local 104 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct sof_hdmi_pcm, head); in card_late_probe() 106 return hda_dsp_hdmi_build_controls(card, pcm->codec_dai->component); in card_late_probe()
|
| /linux/sound/usb/hiface/ |
| H A D | pcm.c | 305 struct pcm_runtime *rt = out_urb->chip->pcm; in hiface_pcm_out_urb_handler() 513 struct pcm_runtime *rt = chip->pcm; in hiface_pcm_abort() 525 struct pcm_runtime *rt = chip->pcm; in hiface_pcm_destroy() 531 kfree(chip->pcm); in hiface_pcm_destroy() 532 chip->pcm = NULL; in hiface_pcm_destroy() 535 static void hiface_pcm_free(struct snd_pcm *pcm) in hiface_pcm_free() argument 537 struct pcm_runtime *rt = pcm->private_data; in hiface_pcm_free() 547 struct snd_pcm *pcm; in hiface_pcm_init() local 570 ret = snd_pcm_new(chip->card, "USB-SPDIF Audio", 0, 1, 0, &pcm); in hiface_pcm_init() 576 pcm->private_data = rt; in hiface_pcm_init() [all …]
|