/linux-6.1.9/sound/soc/sof/intel/ |
D | hda-stream.c | 29 static inline const char *hda_hstream_direction_str(struct hdac_stream *hstream) in hda_hstream_direction_str() argument 31 if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK) in hda_hstream_direction_str() 37 static char *hda_hstream_dbg_get_stream_info_str(struct hdac_stream *hstream) in hda_hstream_dbg_get_stream_info_str() argument 41 if (hstream->substream) in hda_hstream_dbg_get_stream_info_str() 42 rtd = asoc_substream_to_rtd(hstream->substream); in hda_hstream_dbg_get_stream_info_str() 43 else if (hstream->cstream) in hda_hstream_dbg_get_stream_info_str() 44 rtd = hstream->cstream->private_data; in hda_hstream_dbg_get_stream_info_str() 48 hda_hstream_direction_str(hstream), in hda_hstream_dbg_get_stream_info_str() 49 hstream->stream_tag); in hda_hstream_dbg_get_stream_info_str() 52 rtd->dai_link->name, hda_hstream_direction_str(hstream), in hda_hstream_dbg_get_stream_info_str() [all …]
|
D | hda-pcm.c | 99 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_hw_params() local 100 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in hda_dsp_pcm_hw_params() 110 hstream->substream = substream; in hda_dsp_pcm_hw_params() 114 hstream->format_val = rate | bits | (params_channels(params) - 1); in hda_dsp_pcm_hw_params() 115 hstream->bufsize = size; in hda_dsp_pcm_hw_params() 116 hstream->period_bytes = params_period_bytes(params); in hda_dsp_pcm_hw_params() 117 hstream->no_period_wakeup = in hda_dsp_pcm_hw_params() 136 platform_params->stream_tag = hstream->stream_tag; in hda_dsp_pcm_hw_params() 144 struct hdac_stream *hstream = substream->runtime->private_data; in hda_dsp_pcm_ack() local 145 struct hdac_ext_stream *hext_stream = stream_to_hdac_ext_stream(hstream); in hda_dsp_pcm_ack() [all …]
|
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() 75 struct hdac_stream *hstream; in hda_dsp_trace_release() local 78 hstream = &hda->dtrace_stream->hstream; in hda_dsp_trace_release() 81 hstream->stream_tag); in hda_dsp_trace_release()
|
D | hda-loader.c | 49 struct hdac_stream *hstream; in hda_cl_stream_prepare() local 59 hstream = &hext_stream->hstream; in hda_cl_stream_prepare() 60 hstream->substream = NULL; in hda_cl_stream_prepare() 69 hstream->period_bytes = 0;/* initialize period_bytes */ in hda_cl_stream_prepare() 70 hstream->format_val = format; in hda_cl_stream_prepare() 71 hstream->bufsize = size; in hda_cl_stream_prepare() 93 hda_dsp_stream_put(sdev, direction, hstream->stream_tag); in hda_cl_stream_prepare() 223 struct hdac_stream *hstream = &hext_stream->hstream; in cl_trigger() local 224 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in cl_trigger() 230 1 << hstream->index, in cl_trigger() [all …]
|
D | hda-dai.c | 74 struct hdac_stream *hstream = NULL; in hda_link_stream_assign() local 84 list_for_each_entry(hstream, &bus->stream_list, list) { in hda_link_stream_assign() 86 stream_to_hdac_ext_stream(hstream); in hda_link_stream_assign() 87 if (hstream->direction != substream->stream) in hda_link_stream_assign() 105 if (hstream->opened) { in hda_link_stream_assign() 111 hstream->stream_tag)) { in hda_link_stream_assign() 141 struct hdac_stream *hstream, in hda_link_dma_cleanup() argument 147 struct hdac_bus *bus = hstream->bus; in hda_link_dma_cleanup() 177 struct hdac_stream *hstream = &hext_stream->hstream; in hda_link_dma_params() local 178 unsigned char stream_tag = hstream->stream_tag; in hda_link_dma_params() [all …]
|
D | hda-probes.c | 76 struct hdac_stream *hstream = hdac_stream(hext_stream); in hda_probes_compr_set_params() local 89 hstream->format_val = rate | bits | (params->codec.ch_out - 1); in hda_probes_compr_set_params() 90 hstream->bufsize = cstream->runtime->buffer_size; in hda_probes_compr_set_params() 91 hstream->period_bytes = cstream->runtime->fragment_size; in hda_probes_compr_set_params() 92 hstream->no_period_wakeup = 0; in hda_probes_compr_set_params()
|
D | hda-ipc.c | 351 struct hdac_stream *hstream = substream->runtime->private_data; in hda_ipc_msg_data() local 354 hda_stream = container_of(hstream, in hda_ipc_msg_data() 356 hext_stream.hstream); in hda_ipc_msg_data() 359 if (!hstream) in hda_ipc_msg_data() 372 struct hdac_stream *hstream = substream->runtime->private_data; in hda_set_stream_data_offset() local 375 hda_stream = container_of(hstream, struct sof_intel_hda_stream, in hda_set_stream_data_offset() 376 hext_stream.hstream); in hda_set_stream_data_offset()
|
D | hda.h | 548 #define hstream_to_sof_hda_stream(hstream) \ argument 549 container_of(hstream, struct sof_intel_hda_stream, hext_stream) 633 struct hdac_stream *hstream); 637 snd_pcm_uframes_t hda_dsp_stream_get_position(struct hdac_stream *hstream,
|
/linux-6.1.9/sound/hda/ext/ |
D | hdac_ext_stream.c | 57 snd_hdac_stream_init(bus, &hext_stream->hstream, idx, direction, tag); in snd_hdac_ext_stream_init() 112 struct hdac_stream *hstream = &hext_stream->hstream; in snd_hdac_ext_stream_decouple_locked() local 114 int mask = AZX_PPCTL_PROCEN(hstream->index); in snd_hdac_ext_stream_decouple_locked() 208 struct hdac_stream *hstream = &hext_stream->hstream; in snd_hdac_ext_link_stream_setup() local 216 (hstream->stream_tag << AZX_PPLCCTL_STRM_SHIFT); in snd_hdac_ext_link_stream_setup() 255 struct hdac_stream *hstream = NULL; in hdac_ext_link_stream_assign() local 263 list_for_each_entry(hstream, &bus->stream_list, list) { in hdac_ext_link_stream_assign() 264 struct hdac_ext_stream *hext_stream = container_of(hstream, in hdac_ext_link_stream_assign() 266 hstream); in hdac_ext_link_stream_assign() 267 if (hstream->direction != substream->stream) in hdac_ext_link_stream_assign() [all …]
|
/linux-6.1.9/sound/soc/intel/avs/ |
D | loader.c | 351 struct hdac_stream *hstream; in avs_hda_load_basefw() local 363 hstream = hdac_stream(estream); in avs_hda_load_basefw() 367 ret = snd_hdac_dsp_prepare(hstream, sdfmt, fw->size, &dmab); in avs_hda_load_basefw() 372 snd_hdac_ext_stream_spbcap_enable(bus, true, hstream->index); in avs_hda_load_basefw() 380 unsigned int dma_id = hstream->stream_tag - 1; in avs_hda_load_basefw() 391 snd_hdac_dsp_trigger(hstream, true); in avs_hda_load_basefw() 395 snd_hdac_dsp_trigger(hstream, false); in avs_hda_load_basefw() 403 snd_hdac_ext_stream_spbcap_enable(bus, false, hstream->index); in avs_hda_load_basefw() 406 snd_hdac_dsp_cleanup(hstream, &dmab); in avs_hda_load_basefw()
|
/linux-6.1.9/sound/soc/intel/skylake/ |
D | skl-pcm.c | 65 struct hdac_stream *hstream = hdac_stream(stream); in get_bus_ctx() local 66 struct hdac_bus *bus = hstream->bus; in get_bus_ctx() 128 struct hdac_stream *hstream; in skl_pcm_host_dma_prepare() local 132 hstream = snd_hdac_get_stream(bus, params->stream, in skl_pcm_host_dma_prepare() 134 if (!hstream) in skl_pcm_host_dma_prepare() 137 stream = stream_to_hdac_ext_stream(hstream); in skl_pcm_host_dma_prepare() 175 struct hdac_stream *hstream; in skl_pcm_link_dma_prepare() local 180 hstream = snd_hdac_get_stream(bus, params->stream, in skl_pcm_link_dma_prepare() 182 if (!hstream) in skl_pcm_link_dma_prepare() 185 stream = stream_to_hdac_ext_stream(hstream); in skl_pcm_link_dma_prepare() [all …]
|
/linux-6.1.9/include/trace/events/ |
D | sof_intel.h | 91 struct hdac_stream *hstream, 95 TP_ARGS(sdev, hstream, substream, pos), 104 __entry->hstream_index = hstream->index;
|
/linux-6.1.9/include/sound/ |
D | hdaudio_ext.h | 57 struct hdac_stream hstream; member 76 #define hdac_stream(s) (&(s)->hstream) 78 container_of(s, struct hdac_ext_stream, hstream)
|
/linux-6.1.9/sound/soc/codecs/ |
D | hdac_hda.c | 188 struct hdac_stream *hstream; in hdac_hda_dai_set_stream() local 195 hstream = (struct hdac_stream *)stream; in hdac_hda_dai_set_stream() 197 pcm->stream_tag[direction] = hstream->stream_tag; in hdac_hda_dai_set_stream()
|