/kernel/linux/linux-5.10/sound/soc/ |
H A D | soc-generic-dmaengine-pcm.c | 10 #include <sound/pcm.h> 24 static struct device *dmaengine_dma_dev(struct dmaengine_pcm *pcm, in dmaengine_dma_dev() argument 27 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev() 30 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev() 76 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_hw_params() local 86 if (!pcm->config) in dmaengine_pcm_hw_params() 89 prepare_slave_config = pcm->config->prepare_slave_config; in dmaengine_pcm_hw_params() 109 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); in dmaengine_pcm_set_runtime_hwparams() local 110 struct device *dma_dev = dmaengine_dma_dev(pcm, substream); in dmaengine_pcm_set_runtime_hwparams() 111 struct dma_chan *chan = pcm in dmaengine_pcm_set_runtime_hwparams() 156 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_open() local 184 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_compat_request_channel() local 230 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_new() local 289 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_pointer() local 303 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_copy_user() local 357 dmaengine_pcm_request_chan_of(struct dmaengine_pcm *pcm, struct device *dev, const struct snd_dmaengine_pcm_config *config) dmaengine_pcm_request_chan_of() argument 410 dmaengine_pcm_release_chan(struct dmaengine_pcm *pcm) dmaengine_pcm_release_chan() argument 433 struct dmaengine_pcm *pcm; snd_dmaengine_pcm_register() local 482 struct dmaengine_pcm *pcm; snd_dmaengine_pcm_unregister() local [all...] |
/kernel/linux/linux-6.6/sound/soc/ |
H A D | soc-generic-dmaengine-pcm.c | 10 #include <sound/pcm.h> 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 in dmaengine_pcm_set_runtime_hwparams() 151 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_open() local 179 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_compat_request_channel() local 222 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_new() local 282 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_pcm_pointer() local 296 struct dmaengine_pcm *pcm = soc_component_to_pcm(component); dmaengine_copy() local 349 dmaengine_pcm_request_chan_of(struct dmaengine_pcm *pcm, struct device *dev, const struct snd_dmaengine_pcm_config *config) dmaengine_pcm_request_chan_of() argument 402 dmaengine_pcm_release_chan(struct dmaengine_pcm *pcm) dmaengine_pcm_release_chan() argument 429 struct dmaengine_pcm *pcm; snd_dmaengine_pcm_register() local 480 struct dmaengine_pcm *pcm; snd_dmaengine_pcm_unregister() local [all...] |
/kernel/linux/linux-5.10/sound/soc/samsung/ |
H A D | pcm.c | 20 #include "pcm.h" 112 * @pclk: the PCLK_PCM (pcm) clock pointer 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 in s3c_pcm_trigger() 264 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(rtd, 0)); s3c_pcm_hw_params() local 321 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_fmt() local 392 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_clkdiv() local 409 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_sysclk() local 445 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(dai); s3c_pcm_dai_probe() local 488 struct s3c_pcm_info *pcm; s3c_pcm_dev_probe() local 584 struct s3c_pcm_info *pcm = &s3c_pcm[pdev->id]; s3c_pcm_dev_remove() local [all...] |
/kernel/linux/linux-6.6/sound/soc/samsung/ |
H A D | pcm.c | 20 #include "pcm.h" 112 * @pclk: the PCLK_PCM (pcm) clock pointer 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 in s3c_pcm_trigger() 264 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(asoc_rtd_to_cpu(rtd, 0)); s3c_pcm_hw_params() local 321 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_fmt() local 392 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_clkdiv() local 409 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(cpu_dai); s3c_pcm_set_sysclk() local 437 struct s3c_pcm_info *pcm = snd_soc_dai_get_drvdata(dai); s3c_pcm_dai_probe() local 489 struct s3c_pcm_info *pcm; s3c_pcm_dev_probe() local 584 struct s3c_pcm_info *pcm = &s3c_pcm[pdev->id]; s3c_pcm_dev_remove() local [all...] |
/kernel/linux/linux-6.6/sound/core/ |
H A D | pcm.c | 16 #include <sound/pcm.h> 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 in snd_pcm_next() 64 struct snd_pcm *pcm; snd_pcm_add() local 106 struct snd_pcm *pcm; snd_pcm_control_ioctl() local 508 struct snd_pcm *pcm = pstr->pcm; snd_pcm_stream_proc_init() local 639 snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count) snd_pcm_new_stream() argument 713 struct snd_pcm *pcm; _snd_pcm_new() local 866 snd_pcm_free(struct snd_pcm *pcm) snd_pcm_free() argument 883 struct snd_pcm *pcm = device->device_data; snd_pcm_dev_free() local 887 snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file, struct snd_pcm_substream **rsubstream) snd_pcm_attach_substream() argument 1023 struct snd_pcm *pcm = pstr->pcm; pcm_class_show() local 1058 struct snd_pcm *pcm; snd_pcm_dev_register() local 1102 struct snd_pcm *pcm = device->device_data; snd_pcm_dev_disconnect() local 1153 struct snd_pcm *pcm; snd_pcm_notify() local 1184 struct snd_pcm *pcm; snd_pcm_proc_read() local [all...] |
/kernel/linux/linux-5.10/sound/core/ |
H A D | pcm.c | 16 #include <sound/pcm.h> 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 in snd_pcm_next() 64 struct snd_pcm *pcm; snd_pcm_add() local 106 struct snd_pcm *pcm; snd_pcm_control_ioctl() local 506 struct snd_pcm *pcm = pstr->pcm; snd_pcm_stream_proc_init() local 637 snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count) snd_pcm_new_stream() argument 708 struct snd_pcm *pcm; _snd_pcm_new() local 863 snd_pcm_free(struct snd_pcm *pcm) snd_pcm_free() argument 880 struct snd_pcm *pcm = device->device_data; snd_pcm_dev_free() local 884 snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file, struct snd_pcm_substream **rsubstream) snd_pcm_attach_substream() argument 1019 struct snd_pcm *pcm = pstr->pcm; show_pcm_class() local 1054 struct snd_pcm *pcm; snd_pcm_dev_register() local 1098 struct snd_pcm *pcm = device->device_data; snd_pcm_dev_disconnect() local 1148 struct snd_pcm *pcm; snd_pcm_notify() local 1179 struct snd_pcm *pcm; snd_pcm_proc_read() local [all...] |
/kernel/linux/linux-5.10/sound/pci/ac97/ |
H A D | ac97_pcm.c | 18 #include <sound/pcm.h> 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 dbl) 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() 426 * some slots are available, pcm->xxx.slots and pcm 436 const struct ac97_pcm *pcm; snd_ac97_pcm_assign() local 555 snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, enum ac97_pcm_cfg cfg, unsigned short slots) snd_ac97_pcm_open() argument 646 snd_ac97_pcm_close(struct ac97_pcm *pcm) snd_ac97_pcm_close() argument [all...] |
/kernel/linux/linux-6.6/sound/pci/ac97/ |
H A D | ac97_pcm.c | 18 #include <sound/pcm.h> 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 dbl) 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() 426 * some slots are available, pcm->xxx.slots and pcm 436 const struct ac97_pcm *pcm; snd_ac97_pcm_assign() local 555 snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, enum ac97_pcm_cfg cfg, unsigned short slots) snd_ac97_pcm_open() argument 646 snd_ac97_pcm_close(struct ac97_pcm *pcm) snd_ac97_pcm_close() argument [all...] |
/kernel/linux/linux-5.10/sound/soc/intel/boards/ |
H A D | sof_sdw_hdmi.c | 31 struct hdmi_pcm *pcm; in sof_sdw_hdmi_init() local 33 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_sdw_hdmi_init() 34 if (!pcm) in sof_sdw_hdmi_init() 38 pcm->device = rtd->dai_link->id; in sof_sdw_hdmi_init() 39 pcm->codec_dai = dai; in sof_sdw_hdmi_init() 41 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in sof_sdw_hdmi_init() 50 struct hdmi_pcm *pcm; in sof_sdw_hdmi_card_late_probe() local 61 pcm = list_first_entry(&ctx->hdmi_pcm_list, struct hdmi_pcm, in sof_sdw_hdmi_card_late_probe() 63 component = pcm in sof_sdw_hdmi_card_late_probe() [all...] |
H A D | skl_hda_dsp_common.c | 11 #include <sound/pcm.h> 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 [all...] |
H A D | skl_nau88l25_ssm4567.c | 16 #include <sound/pcm.h> 205 struct skl_hdmi_pcm *pcm; in skylake_hdmi1_init() local 207 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in skylake_hdmi1_init() 208 if (!pcm) in skylake_hdmi1_init() 211 pcm->device = SKL_DPCM_AUDIO_HDMI1_PB; in skylake_hdmi1_init() 212 pcm->codec_dai = dai; in skylake_hdmi1_init() 214 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi1_init() 223 struct skl_hdmi_pcm *pcm; in skylake_hdmi2_init() local 225 pcm in skylake_hdmi2_init() 242 struct skl_hdmi_pcm *pcm; skylake_hdmi3_init() local 643 struct skl_hdmi_pcm *pcm; skylake_card_late_probe() local [all...] |
/kernel/linux/linux-6.6/sound/soc/intel/boards/ |
H A D | skl_hda_dsp_common.c | 11 #include <sound/pcm.h> 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 [all...] |
H A 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 in sof_sdw_hdmi_card_late_probe() [all...] |
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A 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() 171 "jack report for pcm=%d\n", 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 in hdac_hdmi_jack_report() 207 hdac_hdmi_jack_report_sync(struct hdac_hdmi_pcm *pcm, struct hdac_hdmi_port *port, bool is_connect) hdac_hdmi_jack_report_sync() argument 285 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 445 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_stream() local 470 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 721 struct hdac_hdmi_pcm *pcm = NULL; hdac_hdmi_get_pcm() local 772 struct hdac_hdmi_pcm *pcm; hdac_hdmi_pin_output_widget_event() local 818 struct hdac_hdmi_pcm *pcm; hdac_hdmi_cvt_output_widget_event() local 908 struct hdac_hdmi_pcm *pcm = NULL; hdac_hdmi_set_pin_port_mux() local 1255 struct hdac_hdmi_pcm *pcm; hdac_hdmi_present_sense() local 1437 struct hdac_hdmi_pcm *pcm; hdac_hdmi_eld_ctl_info() local 1478 struct hdac_hdmi_pcm *pcm; hdac_hdmi_eld_ctl_get() local 1525 hdac_hdmi_create_eld_ctl(struct snd_soc_component *component, struct hdac_hdmi_pcm *pcm) hdac_hdmi_create_eld_ctl() argument 1893 struct hdac_hdmi_pcm *pcm; hdac_hdmi_jack_init() local 2073 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_get_chmap() local 2082 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_set_chmap() local 2103 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); is_hdac_hdmi_pcm_attached() local 2117 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_get_spk_alloc() local [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A 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() 171 "jack report for pcm=%d\n", 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 in hdac_hdmi_jack_report() 207 hdac_hdmi_jack_report_sync(struct hdac_hdmi_pcm *pcm, struct hdac_hdmi_port *port, bool is_connect) hdac_hdmi_jack_report_sync() argument 285 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 445 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_stream() local 470 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 721 struct hdac_hdmi_pcm *pcm; hdac_hdmi_get_pcm() local 772 struct hdac_hdmi_pcm *pcm; hdac_hdmi_pin_output_widget_event() local 818 struct hdac_hdmi_pcm *pcm; hdac_hdmi_cvt_output_widget_event() local 908 struct hdac_hdmi_pcm *pcm; hdac_hdmi_set_pin_port_mux() local 1255 struct hdac_hdmi_pcm *pcm; hdac_hdmi_present_sense() local 1437 struct hdac_hdmi_pcm *pcm; hdac_hdmi_eld_ctl_info() local 1478 struct hdac_hdmi_pcm *pcm; hdac_hdmi_eld_ctl_get() local 1525 hdac_hdmi_create_eld_ctl(struct snd_soc_component *component, struct hdac_hdmi_pcm *pcm) hdac_hdmi_create_eld_ctl() argument 1893 struct hdac_hdmi_pcm *pcm; hdac_hdmi_jack_init() local 2072 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_get_chmap() local 2081 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_set_chmap() local 2102 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); is_hdac_hdmi_pcm_attached() local 2116 struct hdac_hdmi_pcm *pcm = get_hdmi_pcm_from_id(hdmi, pcm_idx); hdac_hdmi_get_spk_alloc() local [all...] |
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() 85 struct hda_pcm *pcm; hda_codec_register_dais() local 126 struct hda_pcm *pcm; hda_codec_unregister_dais() local [all...] |
/kernel/linux/linux-5.10/sound/pci/lola/ |
H A D | lola_pcm.c | 14 #include <sound/pcm.h> 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 in lola_pcm_open() 246 lola_cleanup_slave_streams(struct lola_pcm *pcm, struct lola_stream *str) lola_cleanup_slave_streams() argument 291 struct lola_pcm *pcm = lola_get_pcm(substream); lola_pcm_hw_free() local 340 lola_setup_periods(struct lola *chip, struct lola_pcm *pcm, struct snd_pcm_substream *substream, struct lola_stream *str) lola_setup_periods() argument 427 lola_setup_controller(struct lola *chip, struct lola_pcm *pcm, struct lola_stream *str) lola_setup_controller() argument 454 struct lola_pcm *pcm = lola_get_pcm(substream); lola_pcm_prepare() local 561 lola_pcm_update(struct lola *chip, struct lola_pcm *pcm, unsigned int bits) lola_pcm_update() argument 587 struct snd_pcm *pcm; lola_create_pcm() local 683 struct lola_pcm *pcm = &chip->pcm[dir]; lola_init_pcm() local [all...] |
/kernel/linux/linux-6.6/sound/pci/lola/ |
H A D | lola_pcm.c | 14 #include <sound/pcm.h> 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 in lola_pcm_open() 246 lola_cleanup_slave_streams(struct lola_pcm *pcm, struct lola_stream *str) lola_cleanup_slave_streams() argument 291 struct lola_pcm *pcm = lola_get_pcm(substream); lola_pcm_hw_free() local 340 lola_setup_periods(struct lola *chip, struct lola_pcm *pcm, struct snd_pcm_substream *substream, struct lola_stream *str) lola_setup_periods() argument 427 lola_setup_controller(struct lola *chip, struct lola_pcm *pcm, struct lola_stream *str) lola_setup_controller() argument 454 struct lola_pcm *pcm = lola_get_pcm(substream); lola_pcm_prepare() local 561 lola_pcm_update(struct lola *chip, struct lola_pcm *pcm, unsigned int bits) lola_pcm_update() argument 588 struct snd_pcm *pcm; lola_create_pcm() local 678 struct lola_pcm *pcm = &chip->pcm[dir]; lola_init_pcm() local [all...] |
/kernel/linux/linux-6.6/sound/soc/sof/ |
H A D | ipc3-pcm.c | 49 struct sof_ipc_pcm_params pcm; in sof_ipc3_pcm_hw_params() local 57 memset(&pcm, 0, sizeof(pcm)); in sof_ipc3_pcm_hw_params() 60 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); in sof_ipc3_pcm_hw_params() 63 pcm.hdr.size = sizeof(pcm); in sof_ipc3_pcm_hw_params() 64 pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in sof_ipc3_pcm_hw_params() 65 pcm.comp_id = spcm->stream[substream->stream].comp_id; in sof_ipc3_pcm_hw_params() 66 pcm.params.hdr.size = sizeof(pcm in sof_ipc3_pcm_hw_params() [all...] |
/kernel/linux/linux-5.10/sound/arm/ |
H A D | pxa2xx-pcm-lib.c | 10 #include <sound/pcm.h> 138 return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in pxa2xx_pcm_mmap() 143 int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in pxa2xx_pcm_preallocate_dma_buffer() argument 145 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer() 149 buf->dev.dev = pcm->card->dev; in pxa2xx_pcm_preallocate_dma_buffer() 151 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in pxa2xx_pcm_preallocate_dma_buffer() 159 void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm) in pxa2xx_pcm_free_dma_buffers() argument 166 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers() 172 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); in pxa2xx_pcm_free_dma_buffers() 179 struct snd_pcm *pcm) in pxa2xx_soc_pcm_free() 178 pxa2xx_soc_pcm_free(struct snd_soc_component *component, struct snd_pcm *pcm) pxa2xx_soc_pcm_free() argument 189 struct snd_pcm *pcm = rtd->pcm; pxa2xx_soc_pcm_new() local [all...] |
/kernel/linux/linux-5.10/sound/soc/sof/ |
H A D | pcm.c | 52 spcm->pcm.pcm_id); in sof_pcm_dsp_params() 58 * sof pcm period elapse work 70 * sof pcm period elapse, this could be called at irq thread context. 127 struct sof_ipc_pcm_params pcm; in sof_pcm_hw_params() local 149 dev_dbg(component->dev, "pcm: hw params stream %d dir %d\n", in sof_pcm_hw_params() 150 spcm->pcm.pcm_id, substream->stream); in sof_pcm_hw_params() 152 memset(&pcm, 0, sizeof(pcm)); in sof_pcm_hw_params() 163 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); in sof_pcm_hw_params() 166 pcm in sof_pcm_hw_params() 570 struct snd_pcm *pcm = rtd->pcm; sof_pcm_new() local [all...] |
/kernel/linux/linux-5.10/sound/soc/fsl/ |
H A D | imx-pcm-fiq.c | 2 // imx-pcm-fiq.c -- ALSA Soc Audio Layer 22 #include <sound/pcm.h> 31 #include "imx-pcm.h" 223 ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in snd_imx_pcm_mmap() 233 static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in imx_pcm_preallocate_dma_buffer() argument 235 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer() 240 buf->dev.dev = pcm->card->dev; in imx_pcm_preallocate_dma_buffer() 242 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in imx_pcm_preallocate_dma_buffer() 253 struct snd_pcm *pcm = rtd->pcm; in imx_pcm_new() local 282 struct snd_pcm *pcm = rtd->pcm; snd_imx_pcm_new() local 310 imx_pcm_free(struct snd_pcm *pcm) imx_pcm_free() argument 330 snd_imx_pcm_free(struct snd_soc_component *component, struct snd_pcm *pcm) snd_imx_pcm_free() argument [all...] |
/kernel/linux/linux-5.10/sound/pci/au88x0/ |
H A D | au88x0_pcm.c | 14 #include <sound/pcm.h> 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) in snd_vortex_pcm_hw_params() 597 struct snd_pcm *pcm; snd_vortex_new_pcm() local [all...] |
/kernel/linux/linux-6.6/sound/pci/au88x0/ |
H A D | au88x0_pcm.c | 14 #include <sound/pcm.h> 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) in snd_vortex_pcm_hw_params() 597 struct snd_pcm *pcm; snd_vortex_new_pcm() local [all...] |
/kernel/linux/linux-6.6/sound/pci/emu10k1/ |
H A D | emupcm.c | 1434 struct snd_pcm *pcm; in snd_emu10k1_pcm() local 1438 err = snd_pcm_new(emu->card, "emu10k1", device, 32, 1, &pcm); in snd_emu10k1_pcm() 1442 pcm->private_data = emu; in snd_emu10k1_pcm() 1444 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1_playback_ops); in snd_emu10k1_pcm() 1445 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1_capture_ops); in snd_emu10k1_pcm() 1447 pcm->info_flags = 0; in snd_emu10k1_pcm() 1448 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_emu10k1_pcm() 1449 strcpy(pcm->name, "ADC Capture/Standard PCM Playback"); in snd_emu10k1_pcm() 1450 emu->pcm = pcm; in snd_emu10k1_pcm() 1467 struct snd_pcm *pcm; snd_emu10k1_pcm_multi() local 1503 struct snd_pcm *pcm; snd_emu10k1_pcm_mic() local 1629 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; fx8010_pb_trans_copy() local 1657 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_transfer() local 1666 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_hw_free() local 1678 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_prepare() local 1708 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_trigger() local 1755 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_pointer() local 1788 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_open() local 1806 struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number]; snd_emu10k1_fx8010_playback_close() local 1826 struct snd_pcm *pcm; snd_emu10k1_pcm_efx() local [all...] |