Lines Matching refs:hstream
132 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_stream_spib_config() local
140 mask = (1 << hstream->index); in hda_dsp_stream_spib_config()
145 enable << hstream->index); in hda_dsp_stream_spib_config()
249 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_stream_trigger() local
250 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_trigger()
261 1 << hstream->index, in hda_dsp_stream_trigger()
262 1 << hstream->index); in hda_dsp_stream_trigger()
281 hstream->running = true; in hda_dsp_stream_trigger()
304 hstream->running = false; in hda_dsp_stream_trigger()
306 1 << hstream->index, 0x0); in hda_dsp_stream_trigger()
326 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_stream_hw_params() local
327 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_hw_params()
339 mask = 0x1 << hstream->index; in hda_dsp_stream_hw_params()
399 if (hstream->posbuf) in hda_dsp_stream_hw_params()
400 *hstream->posbuf = 0; in hda_dsp_stream_hw_params()
429 hstream->frags = 0; in hda_dsp_stream_hw_params()
431 ret = hda_dsp_stream_setup_bdl(sdev, dmab, hstream); in hda_dsp_stream_hw_params()
440 hstream->stream_tag << in hda_dsp_stream_hw_params()
446 hstream->bufsize); in hda_dsp_stream_hw_params()
467 0xffff, hstream->format_val); in hda_dsp_stream_hw_params()
476 0xffff, (hstream->frags - 1)); in hda_dsp_stream_hw_params()
481 (u32)hstream->bdl.addr); in hda_dsp_stream_hw_params()
484 upper_32_bits(hstream->bdl.addr)); in hda_dsp_stream_hw_params()
502 if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK) { in hda_dsp_stream_hw_params()
503 hstream->fifo_size = in hda_dsp_stream_hw_params()
507 hstream->fifo_size &= 0xffff; in hda_dsp_stream_hw_params()
508 hstream->fifo_size += 1; in hda_dsp_stream_hw_params()
510 hstream->fifo_size = 0; in hda_dsp_stream_hw_params()
522 hstream); in hda_dsp_stream_hw_free()
632 struct hdac_stream *hstream; in hda_dsp_stream_init() local
715 hstream = &stream->hstream; in hda_dsp_stream_init()
716 hstream->bus = bus; in hda_dsp_stream_init()
717 hstream->sd_int_sta_mask = 1 << i; in hda_dsp_stream_init()
718 hstream->index = i; in hda_dsp_stream_init()
719 sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_init()
720 hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset; in hda_dsp_stream_init()
721 hstream->stream_tag = i + 1; in hda_dsp_stream_init()
722 hstream->opened = false; in hda_dsp_stream_init()
723 hstream->running = false; in hda_dsp_stream_init()
724 hstream->direction = SNDRV_PCM_STREAM_CAPTURE; in hda_dsp_stream_init()
728 HDA_DSP_BDL_SIZE, &hstream->bdl); in hda_dsp_stream_init()
733 hstream->posbuf = (__le32 *)(bus->posbuf.area + in hda_dsp_stream_init()
734 (hstream->index) * 8); in hda_dsp_stream_init()
736 list_add_tail(&hstream->list, &bus->stream_list); in hda_dsp_stream_init()
771 hstream = &stream->hstream; in hda_dsp_stream_init()
772 hstream->bus = bus; in hda_dsp_stream_init()
773 hstream->sd_int_sta_mask = 1 << i; in hda_dsp_stream_init()
774 hstream->index = i; in hda_dsp_stream_init()
775 sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_init()
776 hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset; in hda_dsp_stream_init()
777 hstream->stream_tag = i - num_capture + 1; in hda_dsp_stream_init()
778 hstream->opened = false; in hda_dsp_stream_init()
779 hstream->running = false; in hda_dsp_stream_init()
780 hstream->direction = SNDRV_PCM_STREAM_PLAYBACK; in hda_dsp_stream_init()
784 HDA_DSP_BDL_SIZE, &hstream->bdl); in hda_dsp_stream_init()
790 hstream->posbuf = (__le32 *)(bus->posbuf.area + in hda_dsp_stream_init()
791 (hstream->index) * 8); in hda_dsp_stream_init()
793 list_add_tail(&hstream->list, &bus->stream_list); in hda_dsp_stream_init()