Home
last modified time | relevance | path

Searched refs:stream_tag (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.4/sound/soc/sof/intel/
Dhda-dai.c38 int dir, int stream_tag) in hda_check_fes() argument
47 if (fe_hstream->stream_tag == stream_tag) in hda_check_fes()
86 stream->stream_tag)) { in hda_link_stream_assign()
123 unsigned char stream_tag = hstream->stream_tag; in hda_link_dma_params() local
144 stream_tag); in hda_link_dma_params()
210 int stream_tag; in hda_link_hw_params() local
221 stream_tag = hdac_stream(link_dev)->stream_tag; in hda_link_hw_params()
226 ret = hda_link_config_ipc(hda_stream, dai->name, stream_tag - 1, in hda_link_hw_params()
239 snd_soc_dai_set_tdm_slot(codec_dai, stream_tag, 0, 0, 0); in hda_link_hw_params()
241 snd_soc_dai_set_tdm_slot(codec_dai, 0, stream_tag, 0, 0); in hda_link_hw_params()
[all …]
Dhda-trace.c40 int hda_dsp_trace_init(struct snd_sof_dev *sdev, u32 *stream_tag) in hda_dsp_trace_init() argument
54 *stream_tag = hda->dtrace_stream->hstream.stream_tag; in hda_dsp_trace_init()
63 hda_dsp_stream_put(sdev, SNDRV_PCM_STREAM_CAPTURE, *stream_tag); in hda_dsp_trace_init()
65 *stream_tag = 0; in hda_dsp_trace_init()
80 hstream->stream_tag); in hda_dsp_trace_release()
Dhda-loader.c68 return hstream->stream_tag; in cl_stream_prepare()
71 hda_dsp_stream_put(sdev, direction, hstream->stream_tag); in cl_stream_prepare()
82 u32 fwsize, int stream_tag) in cl_dsp_init() argument
110 ((stream_tag - 1) << 9))); in cl_dsp_init()
201 s->stream_tag == tag) { in get_stream_with_tag()
219 hstream->stream_tag); in cl_cleanup()
Dhda-pcm.c123 ipc_params->stream_tag = hstream->stream_tag; in hda_dsp_pcm_hw_params()
229 ret = hda_dsp_stream_put(sdev, direction, hstream->stream_tag); in hda_dsp_pcm_close()
Dhda-dsp.c435 int stream_tag; in hda_dsp_set_hw_params_upon_resume() local
460 stream_tag = hdac_stream(stream)->stream_tag; in hda_dsp_set_hw_params_upon_resume()
461 snd_hdac_ext_link_clear_stream_id(link, stream_tag); in hda_dsp_set_hw_params_upon_resume()
Dhda-stream.c203 int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag) in hda_dsp_stream_put() argument
220 if (s->direction == direction && s->stream_tag == stream_tag) { in hda_dsp_stream_put()
239 dev_dbg(sdev->dev, "stream_tag %d not opened!\n", stream_tag); in hda_dsp_stream_put()
440 hstream->stream_tag << in hda_dsp_stream_hw_params()
721 hstream->stream_tag = i + 1; in hda_dsp_stream_init()
777 hstream->stream_tag = i - num_capture + 1; in hda_dsp_stream_init()
/Linux-v5.4/sound/soc/intel/skylake/
Dbxt-sst.c54 int ret = 0, i, dma_id, stream_tag; in bxt_load_library() local
63 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, in bxt_load_library()
65 if (stream_tag <= 0) { in bxt_load_library()
67 stream_tag); in bxt_load_library()
68 ret = stream_tag; in bxt_load_library()
72 dma_id = stream_tag - 1; in bxt_load_library()
75 ctx->dsp_ops.trigger(ctx->dev, true, stream_tag); in bxt_load_library()
81 ctx->dsp_ops.trigger(ctx->dev, false, stream_tag); in bxt_load_library()
82 ctx->dsp_ops.cleanup(ctx->dev, &dmab, stream_tag); in bxt_load_library()
100 int stream_tag, ret; in sst_bxt_prepare_fw() local
[all …]
Dcnl-sst.c49 int ret, stream_tag; in cnl_prepare_fw() local
51 stream_tag = ctx->dsp_ops.prepare(ctx->dev, 0x40, fwsize, &ctx->dmab); in cnl_prepare_fw()
52 if (stream_tag <= 0) { in cnl_prepare_fw()
53 dev_err(ctx->dev, "dma prepare failed: 0%#x\n", stream_tag); in cnl_prepare_fw()
54 return stream_tag; in cnl_prepare_fw()
57 ctx->dsp_ops.stream_tag = stream_tag; in cnl_prepare_fw()
63 ((stream_tag - 1) << CNL_ROM_CTRL_DMA_ID))); in cnl_prepare_fw()
87 ctx->dsp_ops.cleanup(ctx->dev, &ctx->dmab, stream_tag); in cnl_prepare_fw()
97 ctx->dsp_ops.trigger(ctx->dev, true, ctx->dsp_ops.stream_tag); in sst_transfer_fw_host_dma()
102 ctx->dsp_ops.trigger(ctx->dev, false, ctx->dsp_ops.stream_tag); in sst_transfer_fw_host_dma()
[all …]
Dskl-pcm.c187 unsigned char stream_tag; in skl_pcm_link_dma_prepare() local
206 stream_tag = hstream->stream_tag; in skl_pcm_link_dma_prepare()
211 stream_tag); in skl_pcm_link_dma_prepare()
254 dma_params->stream_tag = hdac_stream(stream)->stream_tag; in skl_pcm_open()
258 dma_params->stream_tag); in skl_pcm_open()
325 dma_id = hdac_stream(stream)->stream_tag - 1; in skl_pcm_hw_params()
564 int stream_tag; in skl_link_hw_params() local
577 stream_tag = hdac_stream(link_dev)->stream_tag; in skl_link_hw_params()
581 snd_soc_dai_set_tdm_slot(codec_dai, stream_tag, 0, 0, 0); in skl_link_hw_params()
583 snd_soc_dai_set_tdm_slot(codec_dai, 0, stream_tag, 0, 0); in skl_link_hw_params()
[all …]
Dskl-sst-dsp.h154 int stream_tag; member
163 int (*trigger)(struct device *dev, bool start, int stream_tag);
166 int stream_tag);
Dskl-messages.c51 int stream_tag, int enable) in skl_dsp_setup_spib() argument
55 SNDRV_PCM_STREAM_PLAYBACK, stream_tag); in skl_dsp_setup_spib()
98 skl_dsp_setup_spib(dev, size, stream->stream_tag, true); in skl_dsp_prepare()
100 return stream->stream_tag; in skl_dsp_prepare()
103 static int skl_dsp_trigger(struct device *dev, bool start, int stream_tag) in skl_dsp_trigger() argument
112 SNDRV_PCM_STREAM_PLAYBACK, stream_tag); in skl_dsp_trigger()
122 struct snd_dma_buffer *dmab, int stream_tag) in skl_dsp_cleanup() argument
132 SNDRV_PCM_STREAM_PLAYBACK, stream_tag); in skl_dsp_cleanup()
137 skl_dsp_setup_spib(dev, 0, stream_tag, false); in skl_dsp_cleanup()
/Linux-v5.4/sound/hda/
Dtrace.h61 __field(unsigned char, stream_tag)
65 __entry->stream_tag = (azx_dev)->stream_tag;
68 TP_printk("stream_tag: %d", __entry->stream_tag)
Dhdac_stream.c70 azx_dev->stream_tag = tag; in snd_hdac_stream_init()
200 (azx_dev->stream_tag << SD_CTL_STREAM_TAG_SHIFT); in snd_hdac_stream_setup()
340 int dir, int stream_tag) in snd_hdac_get_stream() argument
345 if (s->direction == dir && s->stream_tag == stream_tag) in snd_hdac_get_stream()
703 return azx_dev->stream_tag; in snd_hdac_dsp_prepare()
/Linux-v5.4/sound/pci/hda/
Dhda_controller_trace.h64 __field( unsigned char, stream_tag )
68 __entry->stream_tag = (azx_dev)->core.stream_tag;
71 TP_printk("stream_tag: %d", __entry->stream_tag)
Dhda_codec.c669 u8 stream_tag; member
1034 u32 stream_tag, int channel_id) in update_pcm_stream_id() argument
1038 if (p->stream_tag != stream_tag || p->channel_id != channel_id) { in update_pcm_stream_id()
1040 newval = (stream_tag << 4) | channel_id; in update_pcm_stream_id()
1045 p->stream_tag = stream_tag; in update_pcm_stream_id()
1078 u32 stream_tag, in snd_hda_codec_setup_stream() argument
1091 nid, stream_tag, channel_id, format); in snd_hda_codec_setup_stream()
1100 update_pcm_stream_id(codec, p, nid, stream_tag, channel_id); in snd_hda_codec_setup_stream()
1111 if (!p->active && p->stream_tag == stream_tag && in snd_hda_codec_setup_stream()
1158 if (q->stream_tag || q->channel_id) in really_cleanup_stream()
[all …]
Dpatch_si3054.c137 unsigned int stream_tag, in si3054_pcm_prepare() argument
146 val |= ((stream_tag & 0xf) << 4) << (8 * (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); in si3054_pcm_prepare()
150 stream_tag, 0, format); in si3054_pcm_prepare()
Dhda_controller.c157 unsigned int format_val, stream_tag; in azx_pcm_prepare() local
190 stream_tag = azx_dev->core.stream_tag; in azx_pcm_prepare()
193 stream_tag > chip->capture_streams) in azx_pcm_prepare()
194 stream_tag -= chip->capture_streams; in azx_pcm_prepare()
195 err = snd_hda_codec_prepare(apcm->codec, hinfo, stream_tag, in azx_pcm_prepare()
394 (azx_dev->core.stream_tag - 1); in azx_get_sync_time()
Dpatch_hdmi.c111 hda_nid_t pin_nid, u32 stream_tag, int format);
915 hda_nid_t pin_nid, u32 stream_tag, int format) in hdmi_setup_stream() argument
948 snd_hda_codec_setup_stream(codec, cvt_nid, stream_tag, 0, format); in hdmi_setup_stream()
1868 unsigned int stream_tag, in generic_hdmi_playback_pcm_prepare() argument
1891 stream_tag, 0, format); in generic_hdmi_playback_pcm_prepare()
1943 stream_tag, format); in generic_hdmi_playback_pcm_prepare()
2744 hda_nid_t pin_nid, u32 stream_tag, int format) in i915_hsw_setup_stream() argument
2747 return hdmi_setup_stream(codec, cvt_nid, pin_nid, stream_tag, format); in i915_hsw_setup_stream()
3113 unsigned int stream_tag, in simple_playback_pcm_prepare() argument
3119 stream_tag, format, substream); in simple_playback_pcm_prepare()
[all …]
/Linux-v5.4/include/sound/sof/
Dtrace.h26 uint32_t stream_tag; member
33 uint32_t stream_tag; member
Dstream.h81 uint16_t stream_tag; member
/Linux-v5.4/sound/soc/sof/
Dtrace.c182 params.stream_tag = 0; in snd_sof_init_trace_ipc()
187 ret = snd_sof_dma_trace_init(sdev, &params.stream_tag); in snd_sof_init_trace_ipc()
193 dev_dbg(sdev->dev, "stream_tag: %d\n", params.stream_tag); in snd_sof_init_trace_ipc()
Dops.h274 u32 *stream_tag) in snd_sof_dma_trace_init() argument
277 return sof_ops(sdev)->trace_init(sdev, stream_tag); in snd_sof_dma_trace_init()
/Linux-v5.4/sound/soc/codecs/
Dhdac_hda.h10 int stream_tag[2]; member
Dhdac_hda.c139 pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_PLAYBACK] = tx_mask; in hdac_hda_dai_set_tdm_slot()
141 pcm[dai->id].stream_tag[SNDRV_PCM_STREAM_CAPTURE] = rx_mask; in hdac_hda_dai_set_tdm_slot()
218 stream = hda_pvt->pcm[dai->id].stream_tag[substream->stream]; in hdac_hda_dai_prepare()
/Linux-v5.4/sound/hda/ext/
Dhdac_ext_stream.c72 int stream_tag = 0; in snd_hdac_ext_stream_init_all() local
80 tag = ++stream_tag; in snd_hdac_ext_stream_init_all()
209 (hstream->stream_tag << AZX_PPLCCTL_STRM_SHIFT); in snd_hdac_ext_link_stream_setup()

12