/sound/soc/ |
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 …]
|
/sound/soc/samsung/ |
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(asoc_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 …]
|
/sound/core/ |
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 …]
|
D | pcm_memory.c | 107 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages() 122 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages() 124 substream->pcm->name, orig_size); in preallocate_pcm_pages() 136 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free() 145 void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm) in snd_pcm_lib_preallocate_free_for_all() argument 150 for_each_pcm_substream(pcm, stream, substream) in snd_pcm_lib_preallocate_free_for_all() 189 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_preallocate_proc_write() 194 mutex_lock(&substream->pcm->open_mutex); in snd_pcm_lib_preallocate_proc_write() 218 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write() 220 substream->pcm->name, size); in snd_pcm_lib_preallocate_proc_write() [all …]
|
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-objs := pcm_dmaengine.o 44 obj-$(CONFIG_SND_PCM) += snd-pcm.o 45 obj-$(CONFIG_SND_DMAENGINE_PCM) += snd-pcm-dmaengine.o
|
/sound/pci/ac97/ |
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() 393 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument 402 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates() 411 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates() 436 const struct ac97_pcm *pcm; in snd_ac97_pcm_assign() local 466 pcm = &pcms[i]; in snd_ac97_pcm_assign() 469 if (pcm->copy_flag) { in snd_ac97_pcm_assign() [all …]
|
/sound/soc/intel/boards/ |
D | skl_hda_dsp_common.c | 25 struct skl_hda_hdmi_pcm *pcm; in skl_hda_hdmi_add_pcm() local 28 pcm = devm_kzalloc(card->dev, sizeof(*pcm), GFP_KERNEL); in skl_hda_hdmi_add_pcm() 29 if (!pcm) in skl_hda_hdmi_add_pcm() 34 pcm->codec_dai = snd_soc_card_get_codec_dai(card, dai_name); in skl_hda_hdmi_add_pcm() 35 if (!pcm->codec_dai) in skl_hda_hdmi_add_pcm() 38 pcm->device = device; in skl_hda_hdmi_add_pcm() 39 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skl_hda_hdmi_add_pcm() 141 struct skl_hda_hdmi_pcm *pcm; in skl_hda_hdmi_jack_init() local 148 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in skl_hda_hdmi_jack_init() 149 component = pcm->codec_dai->component; in skl_hda_hdmi_jack_init() [all …]
|
D | sof_sdw_hdmi.c | 28 struct hdmi_pcm *pcm; in sof_sdw_hdmi_init() local 30 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_sdw_hdmi_init() 31 if (!pcm) in sof_sdw_hdmi_init() 35 pcm->device = rtd->dai_link->id; in sof_sdw_hdmi_init() 36 pcm->codec_dai = dai; in sof_sdw_hdmi_init() 38 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in sof_sdw_hdmi_init() 47 struct hdmi_pcm *pcm; in sof_sdw_hdmi_card_late_probe() local 56 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct hdmi_pcm, in sof_sdw_hdmi_card_late_probe() 58 component = pcm->codec_dai->component; in sof_sdw_hdmi_card_late_probe()
|
D | skl_nau88l25_max98357a.c | 198 struct skl_hdmi_pcm *pcm; in skylake_hdmi1_init() local 200 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi1_init() 201 if (!pcm) in skylake_hdmi1_init() 204 pcm->device = SKL_DPCM_AUDIO_HDMI1_PB; in skylake_hdmi1_init() 205 pcm->codec_dai = dai; in skylake_hdmi1_init() 207 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi1_init() 216 struct skl_hdmi_pcm *pcm; in skylake_hdmi2_init() local 218 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi2_init() 219 if (!pcm) in skylake_hdmi2_init() 222 pcm->device = SKL_DPCM_AUDIO_HDMI2_PB; in skylake_hdmi2_init() [all …]
|
D | skl_nau88l25_ssm4567.c | 217 struct skl_hdmi_pcm *pcm; in skylake_hdmi1_init() local 219 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi1_init() 220 if (!pcm) in skylake_hdmi1_init() 223 pcm->device = SKL_DPCM_AUDIO_HDMI1_PB; in skylake_hdmi1_init() 224 pcm->codec_dai = dai; in skylake_hdmi1_init() 226 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi1_init() 235 struct skl_hdmi_pcm *pcm; in skylake_hdmi2_init() local 237 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi2_init() 238 if (!pcm) in skylake_hdmi2_init() 241 pcm->device = SKL_DPCM_AUDIO_HDMI2_PB; in skylake_hdmi2_init() [all …]
|
/sound/soc/codecs/ |
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->stream[dir].channels_min; in hda_codec_create_dais() 52 stream->channels_max = pcm->stream[dir].channels_max; in hda_codec_create_dais() [all …]
|
D | hdac_hdmi.c | 147 struct hdac_hdmi_pcm *pcm; in hdac_hdmi_get_pcm_from_cvt() local 149 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm_from_cvt() 150 if (pcm->cvt == cvt) in hdac_hdmi_get_pcm_from_cvt() 151 return pcm; in hdac_hdmi_get_pcm_from_cvt() 157 static void hdac_hdmi_jack_report(struct hdac_hdmi_pcm *pcm, in hdac_hdmi_jack_report() argument 169 if (pcm->jack_event == 0) { in hdac_hdmi_jack_report() 172 pcm->pcm_id); in hdac_hdmi_jack_report() 173 snd_soc_jack_report(pcm->jack, SND_JACK_AVOUT, in hdac_hdmi_jack_report() 176 pcm->jack_event++; in hdac_hdmi_jack_report() 183 if (pcm->jack_event == 1) in hdac_hdmi_jack_report() [all …]
|
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()
|
D | hdac_hda.c | 190 struct hdac_hda_pcm *pcm; in hdac_hda_dai_set_stream() local 197 pcm = &hda_pvt->pcm[dai->id]; in hdac_hda_dai_set_stream() 200 pcm->stream_tag[direction] = hstream->stream_tag; in hdac_hda_dai_set_stream() 234 hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val; in hdac_hda_dai_hw_params() 244 struct hda_pcm *pcm; in hdac_hda_dai_hw_free() local 247 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_hw_free() 248 if (!pcm) in hdac_hda_dai_hw_free() 251 hda_stream = &pcm->stream[substream->stream]; in hdac_hda_dai_hw_free() 265 struct hda_pcm *pcm; in hdac_hda_dai_prepare() local 271 pcm = snd_soc_find_pcm_from_dai(hda_pvt, dai); in hdac_hda_dai_prepare() [all …]
|
/sound/soc/sof/ |
D | ipc3-pcm.c | 50 struct sof_ipc_pcm_params pcm; in sof_ipc3_pcm_hw_params() local 58 memset(&pcm, 0, sizeof(pcm)); in sof_ipc3_pcm_hw_params() 61 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); in sof_ipc3_pcm_hw_params() 64 pcm.hdr.size = sizeof(pcm); in sof_ipc3_pcm_hw_params() 65 pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in sof_ipc3_pcm_hw_params() 66 pcm.comp_id = spcm->stream[substream->stream].comp_id; in sof_ipc3_pcm_hw_params() 67 pcm.params.hdr.size = sizeof(pcm.params); in sof_ipc3_pcm_hw_params() 68 pcm.params.buffer.phy_addr = spcm->stream[substream->stream].page_table.addr; in sof_ipc3_pcm_hw_params() 69 pcm.params.buffer.size = runtime->dma_bytes; in sof_ipc3_pcm_hw_params() 70 pcm.params.direction = substream->stream; in sof_ipc3_pcm_hw_params() [all …]
|
D | compress.c | 173 struct sof_ipc_pcm_params *pcm; in sof_compr_set_params() local 196 if (sizeof(*pcm) + ext_data_size > sdev->ipc->max_payload_size) in sof_compr_set_params() 199 pcm = kzalloc(sizeof(*pcm) + ext_data_size, GFP_KERNEL); in sof_compr_set_params() 200 if (!pcm) in sof_compr_set_params() 213 pcm->params.buffer.pages = PFN_UP(crtd->dma_bytes); in sof_compr_set_params() 214 pcm->hdr.size = sizeof(*pcm) + ext_data_size; in sof_compr_set_params() 215 pcm->hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in sof_compr_set_params() 217 pcm->comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_set_params() 218 pcm->params.hdr.size = sizeof(pcm->params) + ext_data_size; in sof_compr_set_params() 219 pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr; in sof_compr_set_params() [all …]
|
/sound/pci/lola/ |
D | lola_pcm.c | 24 return &chip->pcm[substream->stream]; in lola_get_pcm() 29 struct lola_pcm *pcm = lola_get_pcm(substream); in lola_get_stream() local 31 return &pcm->streams[idx]; in lola_get_stream() 128 if (s->pcm->card != substream->pcm->card) in lola_sync_wait_for_fifo() 159 if (s->pcm->card != substream->pcm->card) in lola_sync_pause() 213 struct lola_pcm *pcm = lola_get_pcm(substream); in lola_pcm_open() local 226 runtime->hw.channels_max = pcm->num_streams - str->index; in lola_pcm_open() 246 static void lola_cleanup_slave_streams(struct lola_pcm *pcm, in lola_cleanup_slave_streams() argument 250 for (i = str->index + 1; i < pcm->num_streams; i++) { in lola_cleanup_slave_streams() 251 struct lola_stream *s = &pcm->streams[i]; in lola_cleanup_slave_streams() [all …]
|
/sound/pci/au88x0/ |
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 …]
|
/sound/pci/emu10k1/ |
D | emupcm.c | 1383 struct snd_pcm *pcm; in snd_emu10k1_pcm() local 1387 err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm); in snd_emu10k1_pcm() 1391 pcm->private_data = emu; in snd_emu10k1_pcm() 1393 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops); in snd_emu10k1_pcm() 1394 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops); in snd_emu10k1_pcm() 1396 pcm->info_flags = 0; in snd_emu10k1_pcm() 1397 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_emu10k1_pcm() 1398 strcpy(pcm->name, "ADC Capture/Standard PCM Playback"); in snd_emu10k1_pcm() 1399 emu->pcm = pcm; in snd_emu10k1_pcm() 1402 …for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substre… in snd_emu10k1_pcm() [all …]
|
/sound/soc/intel/avs/boards/ |
D | hdaudio.c | 21 struct hda_pcm *pcm; in avs_create_dai_links() local 31 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in avs_create_dai_links() 33 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in avs_create_dai_links() 60 dl[i].codecs->dai_name = pcm->name; in avs_create_dai_links() 73 struct hda_pcm *pcm; in avs_create_dapm_routes() local 82 pcm = list_first_entry(&codec->pcm_list_head, struct hda_pcm, list); in avs_create_dapm_routes() 84 for (i = 0; i < pcm_count; i++, pcm = list_next_entry(pcm, list)) { in avs_create_dapm_routes() 89 stream = &pcm->stream[dir]; in avs_create_dapm_routes() 93 dr[n].sink = devm_kasprintf(dev, GFP_KERNEL, "%s %s", pcm->name, in avs_create_dapm_routes() 102 stream = &pcm->stream[dir]; in avs_create_dapm_routes() [all …]
|
/sound/firewire/oxfw/ |
D | oxfw-pcm.c | 31 if (!snd_interval_test(c, formation.pcm)) in hw_rule_rate() 63 if (list[count] == formation.pcm) in hw_rule_channels() 67 if (list[j] == formation.pcm) in hw_rule_channels() 71 list[count] = formation.pcm; in hw_rule_channels() 100 hw->channels_min = min(hw->channels_min, formation.pcm); in limit_channels_and_rates() 101 hw->channels_max = max(hw->channels_max, formation.pcm); in limit_channels_and_rates() 162 substream->runtime->hw.channels_min = formation.pcm; in limit_to_current_params() 163 substream->runtime->hw.channels_max = formation.pcm; in limit_to_current_params() 348 struct snd_pcm_substream *pcm; in pcm_capture_trigger() local 352 pcm = substream; in pcm_capture_trigger() [all …]
|
/sound/core/oss/ |
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 405 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() 430 max = snd_pcm_hw_param_max(pcm, params, var, max, &maxdir); in snd_pcm_hw_param_near() [all …]
|
/sound/firewire/fireface/ |
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() 118 struct snd_pcm_substream *pcm) in process_it_ctx_payloads() argument 128 if (pcm) { in process_it_ctx_payloads() 129 write_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_it_ctx_payloads() 142 struct snd_pcm_substream *pcm) in process_ir_ctx_payloads() argument 152 if (pcm) { in process_ir_ctx_payloads() 153 read_pcm_s32(s, pcm, buf, data_blocks, pcm_frames); in process_ir_ctx_payloads()
|
/sound/pci/ctxfi/ |
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 …]
|
/sound/firewire/bebob/ |
D | bebob_pcm.c | 25 if (formations[i].pcm == 0) in hw_rule_rate() 28 if (!snd_interval_test(c, formations[i].pcm)) in hw_rule_rate() 54 if (formations[i].pcm == 0) in hw_rule_channels() 60 t.min = min(t.min, formations[i].pcm); in hw_rule_channels() 61 t.max = max(t.max, formations[i].pcm); in hw_rule_channels() 82 if (formations[i].pcm == 0) in limit_channels_and_rates() 85 hw->channels_min = min(hw->channels_min, formations[i].pcm); in limit_channels_and_rates() 86 hw->channels_max = max(hw->channels_max, formations[i].pcm); in limit_channels_and_rates() 362 struct snd_pcm *pcm; in snd_bebob_create_pcm_devices() local 365 err = snd_pcm_new(bebob->card, bebob->card->driver, 0, 1, 1, &pcm); in snd_bebob_create_pcm_devices() [all …]
|