| /linux/sound/soc/sof/intel/ |
| H A D | hda-stream.c | 34 static inline const char *hda_hstream_direction_str(struct hdac_stream *hstream) in hda_hstream_direction_str() argument 36 if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK) in hda_hstream_direction_str() 42 static char *hda_hstream_dbg_get_stream_info_str(struct hdac_stream *hstream) in hda_hstream_dbg_get_stream_info_str() argument 46 if (hstream->substream) in hda_hstream_dbg_get_stream_info_str() 47 rtd = snd_soc_substream_to_rtd(hstream->substream); in hda_hstream_dbg_get_stream_info_str() 48 else if (hstream->cstream) in hda_hstream_dbg_get_stream_info_str() 49 rtd = hstream->cstream->private_data; in hda_hstream_dbg_get_stream_info_str() 53 hda_hstream_direction_str(hstream), in hda_hstream_dbg_get_stream_info_str() 54 hstream->stream_tag); in hda_hstream_dbg_get_stream_info_str() 57 rtd->dai_link->name, hda_hstream_direction_str(hstream), in hda_hstream_dbg_get_stream_info_str() 66 hda_setup_bdle(struct snd_sof_dev * sdev,struct snd_dma_buffer * dmab,struct hdac_stream * hstream,struct sof_intel_dsp_bdl ** bdlp,int offset,int size,int ioc) hda_setup_bdle() argument 114 hda_dsp_stream_setup_bdl(struct snd_sof_dev * sdev,struct snd_dma_buffer * dmab,struct hdac_stream * hstream) hda_dsp_stream_setup_bdl() argument 191 struct hdac_stream *hstream = &hext_stream->hstream; hda_dsp_stream_spib_config() local 318 hda_dsp_stream_reset(struct snd_sof_dev * sdev,struct hdac_stream * hstream) hda_dsp_stream_reset() argument 360 struct hdac_stream *hstream = &hext_stream->hstream; hda_dsp_stream_trigger() local 448 struct hdac_stream *hstream = &hext_stream->hstream; hda_dsp_iccmax_stream_hw_params() local 526 struct hdac_stream *hstream; hda_dsp_stream_hw_params() local 713 struct hdac_stream *hstream = substream->runtime->private_data; hda_dsp_stream_hw_free() local 767 hda_dsp_compr_bytes_transferred(struct hdac_stream * hstream,int direction) hda_dsp_compr_bytes_transferred() argument 867 struct hdac_stream *hstream; hda_dsp_stream_init() local 1031 hda_dsp_stream_get_position(struct hdac_stream * hstream,int direction,bool can_sleep) hda_dsp_stream_get_position() argument 1195 struct hdac_stream *hstream = substream->runtime->private_data; hda_dsp_get_stream_ldp() local [all...] |
| H A D | hda-pcm.c | 106 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params() local 107 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in hda_dsp_pcm_hw_params() 112 hstream->substream = substream; in hda_dsp_pcm_hw_params() 124 hstream->format_val = rate | bits | (params_channels(params) - 1); in hda_dsp_pcm_hw_params() 127 hstream->bufsize = params_buffer_bytes(params); in hda_dsp_pcm_hw_params() 128 hstream->period_bytes = params_period_bytes(params); in hda_dsp_pcm_hw_params() 129 hstream->no_period_wakeup = in hda_dsp_pcm_hw_params() 148 platform_params->stream_tag = hstream->stream_tag; in hda_dsp_pcm_hw_params() 157 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_ack() local 171 sof_io_write(sdev, hstream->spib_addr, spib); in hda_dsp_pcm_ack() [all …]
|
| H A D | hda-trace.c | 26 struct hdac_stream *hstream = &hext_stream->hstream; in hda_dsp_trace_prepare() local 29 hstream->period_bytes = 0;/* initialize period_bytes */ in hda_dsp_trace_prepare() 30 hstream->bufsize = dmab->bytes; in hda_dsp_trace_prepare() 54 dtrace_params->stream_tag = hda->dtrace_stream->hstream.stream_tag; in hda_dsp_trace_init() 76 struct hdac_stream *hstream; in hda_dsp_trace_release() local 79 hstream = &hda->dtrace_stream->hstream; in hda_dsp_trace_release() 82 hstream->stream_tag); in hda_dsp_trace_release()
|
| H A D | hda-loader.c | 188 struct hdac_stream *hstream = &hext_stream->hstream; in cl_dsp_init() 189 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in cl_dsp_init() 200 1 << hstream->index, in cl_dsp_init() 201 1 << hstream->index); in cl_dsp_init() 210 hstream->running = true; in cl_dsp_init() 403 ret = chip_info->cl_init(sdev, hext_stream->hstream.stream_tag, false); in hda_dsp_cl_boot_firmware_iccmax() 535 msg.primary = hext_stream->hstream.stream_tag - 1; in hda_dsp_cl_boot_firmware() 541 int sd_offset = SOF_STREAM_SD_OFFSET(&hext_stream->hstream); in hda_dsp_cl_boot_firmware() 58 struct hdac_stream *hstream; hda_cl_prepare() local 245 struct hdac_stream *hstream = &hext_stream->hstream; hda_cl_trigger() local 279 struct hdac_stream *hstream = &hext_stream->hstream; hda_cl_cleanup() local
|
| H A D | hda-dai-ops.c | 52 struct hdac_stream *hstream = NULL; in hda_link_stream_assign() local 62 list_for_each_entry(hstream, &bus->stream_list, list) { in hda_link_stream_assign() 64 stream_to_hdac_ext_stream(hstream); in hda_link_stream_assign() 65 if (hstream->direction != substream->stream) in hda_link_stream_assign() 83 if (hstream->opened) { in hda_link_stream_assign() 89 hstream->stream_tag)) { in hda_link_stream_assign() 181 struct hdac_stream *hstream) in hda_codec_dai_set_stream() 187 snd_soc_dai_set_stream(codec_dai, hstream, substream->stream); in hda_codec_dai_set_stream() 559 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dspless_get_hext_stream() 561 return stream_to_hdac_ext_stream(hstream); in hda_dspless_get_hext_stream() 182 hda_codec_dai_set_stream(struct snd_sof_dev * sdev,struct snd_pcm_substream * substream,struct hdac_stream * hstream) hda_codec_dai_set_stream() argument 558 struct hdac_stream *hstream = substream->runtime->private_data; hda_dspless_get_hext_stream() local [all...] |
| H A D | hda-sdw-bpt.c | 131 struct hdac_stream *hstream; in hda_sdw_bpt_dma_prepare() 135 hstream = &bpt_stream->hstream; in hda_sdw_bpt_dma_prepare() 136 mask = BIT(hstream->index); in hda_sdw_bpt_dma_prepare() 162 struct hdac_stream *hstream; in hda_sdw_bpt_dma_deprepare() 194 hstream = &sdw_bpt_stream->hstream; in hda_sdw_bpt_dma_enable() 195 mask = BIT(hstream->index); in hda_sdw_bpt_dma_enable() 119 struct hdac_stream *hstream; hda_sdw_bpt_dma_prepare() local 150 struct hdac_stream *hstream; hda_sdw_bpt_dma_deprepare() local
|
| H A D | hda-ipc.c | 410 struct hdac_stream *hstream = substream->runtime->private_data; in hda_ipc_msg_data() 413 hda_stream = container_of(hstream, in hda_ipc_msg_data() 415 hext_stream.hstream); in hda_ipc_msg_data() 418 if (!hstream) in hda_ipc_msg_data() 433 struct hdac_stream *hstream = substream->runtime->private_data; 436 hda_stream = container_of(hstream, struct sof_intel_hda_stream, in hda_set_stream_data_offset() 437 hext_stream.hstream); in hda_set_stream_data_offset() 417 struct hdac_stream *hstream = substream->runtime->private_data; hda_ipc_msg_data() local 440 struct hdac_stream *hstream = substream->runtime->private_data; hda_set_stream_data_offset() local
|
| /linux/sound/hda/core/ext/ |
| H A D | stream.c | 42 static int snd_hdac_apl_host_stream_setup(struct hdac_stream *hstream, bool code_loading) in snd_hdac_apl_host_stream_setup() argument 44 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in snd_hdac_apl_host_stream_setup() 47 snd_hdac_ext_stream_decouple(hstream->bus, hext_stream, false); in snd_hdac_apl_host_stream_setup() 48 ret = snd_hdac_stream_setup(hstream, code_loading); in snd_hdac_apl_host_stream_setup() 49 snd_hdac_ext_stream_decouple(hstream->bus, hext_stream, true); in snd_hdac_apl_host_stream_setup() 79 snd_hdac_stream_init(bus, &hext_stream->hstream, idx, direction, tag); in snd_hdac_ext_stream_init() 141 struct hdac_stream *hstream = &hext_stream->hstream; in snd_hdac_ext_stream_decouple_locked() local 143 int mask = AZX_PPCTL_PROCEN(hstream->index); in snd_hdac_ext_stream_decouple_locked() 236 struct hdac_stream *hstream = &hext_stream->hstream; in snd_hdac_ext_stream_setup() local 244 (hstream->stream_tag << AZX_PPLCCTL_STRM_SHIFT); in snd_hdac_ext_stream_setup() [all …]
|
| /linux/sound/soc/intel/avs/ |
| H A D | loader.c | 365 struct hdac_stream *hstream; in avs_hda_load_basefw() local 377 hstream = hdac_stream(estream); in avs_hda_load_basefw() 381 ret = snd_hdac_dsp_prepare(hstream, sdfmt, fw->size, &dmab); in avs_hda_load_basefw() 386 snd_hdac_stream_spbcap_enable(bus, true, hstream->index); in avs_hda_load_basefw() 387 ret = snd_hdac_stream_set_spib(bus, hstream, fw->size); in avs_hda_load_basefw() 394 unsigned int dma_id = hstream->stream_tag - 1; in avs_hda_load_basefw() 405 snd_hdac_dsp_trigger(hstream, true); in avs_hda_load_basefw() 409 snd_hdac_dsp_trigger(hstream, false); in avs_hda_load_basefw() 418 snd_hdac_stream_spbcap_enable(bus, false, hstream->index); in avs_hda_load_basefw() 419 snd_hdac_stream_set_spib(bus, hstream, 0); in avs_hda_load_basefw() [all …]
|
| H A D | pcm.c | 1105 struct hdac_stream *hstream; in avs_dai_resume_fe_prepare() local 1110 hstream = hdac_stream(host_stream); in avs_dai_resume_fe_prepare() 1114 snd_hdac_stream_drsm_enable(bus, true, hstream->index); in avs_dai_resume_fe_prepare() 1128 snd_hdac_stream_set_lpib(hstream, hstream->lpib); in avs_dai_resume_fe_prepare() 1129 snd_hdac_stream_set_dpibr(bus, hstream, hstream->lpib); in avs_dai_resume_fe_prepare()
|
| /linux/include/sound/ |
| H A D | hdaudio_ext.h | 48 struct hdac_stream hstream; member 70 #define hdac_stream(s) (&(s)->hstream) 72 container_of(s, struct hdac_ext_stream, hstream)
|
| /linux/include/trace/events/ |
| H A D | sof_intel.h | 91 struct hdac_stream *hstream, 95 TP_ARGS(sdev, hstream, substream, pos), 104 __entry->hstream_index = hstream->index;
|
| /linux/sound/soc/codecs/ |
| H A D | hdac_hda.c | 199 struct hdac_stream *hstream; in hdac_hda_dai_set_stream() local 206 hstream = (struct hdac_stream *)stream; in hdac_hda_dai_set_stream() 208 pcm->stream_tag[direction] = hstream->stream_tag; in hdac_hda_dai_set_stream()
|
| H A D | hdac_hdmi.c | 445 struct hdac_stream *hstream; in hdac_hdmi_set_stream() local 450 hstream = (struct hdac_stream *)stream; in hdac_hdmi_set_stream() 452 dev_dbg(&hdev->dev, "%s: strm_tag: %d\n", __func__, hstream->stream_tag); in hdac_hdmi_set_stream() 459 pcm->stream_tag = (hstream->stream_tag << 4); in hdac_hdmi_set_stream()
|