Lines Matching refs:hstream
135 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_stream_spib_config() local
143 mask = (1 << hstream->index); in hda_dsp_stream_spib_config()
148 enable << hstream->index); in hda_dsp_stream_spib_config()
252 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_stream_trigger() local
253 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_trigger()
264 1 << hstream->index, in hda_dsp_stream_trigger()
265 1 << hstream->index); in hda_dsp_stream_trigger()
288 hstream->running = true; in hda_dsp_stream_trigger()
315 hstream->running = false; in hda_dsp_stream_trigger()
317 1 << hstream->index, 0x0); in hda_dsp_stream_trigger()
333 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_iccmax_stream_hw_params() local
334 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_iccmax_stream_hw_params()
336 u32 mask = 0x1 << hstream->index; in hda_dsp_iccmax_stream_hw_params()
343 if (hstream->posbuf) in hda_dsp_iccmax_stream_hw_params()
344 *hstream->posbuf = 0; in hda_dsp_iccmax_stream_hw_params()
354 hstream->frags = 0; in hda_dsp_iccmax_stream_hw_params()
356 ret = hda_dsp_stream_setup_bdl(sdev, dmab, hstream); in hda_dsp_iccmax_stream_hw_params()
365 (u32)hstream->bdl.addr); in hda_dsp_iccmax_stream_hw_params()
368 upper_32_bits(hstream->bdl.addr)); in hda_dsp_iccmax_stream_hw_params()
373 hstream->bufsize); in hda_dsp_iccmax_stream_hw_params()
378 0xffff, (hstream->frags - 1)); in hda_dsp_iccmax_stream_hw_params()
404 struct hdac_stream *hstream = &stream->hstream; in hda_dsp_stream_hw_params() local
405 int sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_hw_params()
417 mask = 0x1 << hstream->index; in hda_dsp_stream_hw_params()
481 if (hstream->posbuf) in hda_dsp_stream_hw_params()
482 *hstream->posbuf = 0; in hda_dsp_stream_hw_params()
515 hstream->frags = 0; in hda_dsp_stream_hw_params()
517 ret = hda_dsp_stream_setup_bdl(sdev, dmab, hstream); in hda_dsp_stream_hw_params()
526 hstream->stream_tag << in hda_dsp_stream_hw_params()
532 hstream->bufsize); in hda_dsp_stream_hw_params()
553 0xffff, hstream->format_val); in hda_dsp_stream_hw_params()
562 0xffff, (hstream->frags - 1)); in hda_dsp_stream_hw_params()
567 (u32)hstream->bdl.addr); in hda_dsp_stream_hw_params()
570 upper_32_bits(hstream->bdl.addr)); in hda_dsp_stream_hw_params()
588 if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK) { in hda_dsp_stream_hw_params()
589 hstream->fifo_size = in hda_dsp_stream_hw_params()
593 hstream->fifo_size &= 0xffff; in hda_dsp_stream_hw_params()
594 hstream->fifo_size += 1; in hda_dsp_stream_hw_params()
596 hstream->fifo_size = 0; in hda_dsp_stream_hw_params()
608 hstream); in hda_dsp_stream_hw_free()
646 hda_dsp_set_bytes_transferred(struct hdac_stream *hstream, u64 buffer_size) in hda_dsp_set_bytes_transferred() argument
650 div64_u64_rem(hstream->curr_pos, buffer_size, &prev_pos); in hda_dsp_set_bytes_transferred()
651 pos = snd_hdac_stream_get_pos_posbuf(hstream); in hda_dsp_set_bytes_transferred()
658 hstream->curr_pos += num_bytes; in hda_dsp_set_bytes_transferred()
748 struct hdac_stream *hstream; in hda_dsp_stream_init() local
831 hstream = &stream->hstream; in hda_dsp_stream_init()
832 hstream->bus = bus; in hda_dsp_stream_init()
833 hstream->sd_int_sta_mask = 1 << i; in hda_dsp_stream_init()
834 hstream->index = i; in hda_dsp_stream_init()
835 sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_init()
836 hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset; in hda_dsp_stream_init()
837 hstream->stream_tag = i + 1; in hda_dsp_stream_init()
838 hstream->opened = false; in hda_dsp_stream_init()
839 hstream->running = false; in hda_dsp_stream_init()
840 hstream->direction = SNDRV_PCM_STREAM_CAPTURE; in hda_dsp_stream_init()
844 HDA_DSP_BDL_SIZE, &hstream->bdl); in hda_dsp_stream_init()
849 hstream->posbuf = (__le32 *)(bus->posbuf.area + in hda_dsp_stream_init()
850 (hstream->index) * 8); in hda_dsp_stream_init()
852 list_add_tail(&hstream->list, &bus->stream_list); in hda_dsp_stream_init()
887 hstream = &stream->hstream; in hda_dsp_stream_init()
888 hstream->bus = bus; in hda_dsp_stream_init()
889 hstream->sd_int_sta_mask = 1 << i; in hda_dsp_stream_init()
890 hstream->index = i; in hda_dsp_stream_init()
891 sd_offset = SOF_STREAM_SD_OFFSET(hstream); in hda_dsp_stream_init()
892 hstream->sd_addr = sdev->bar[HDA_DSP_HDA_BAR] + sd_offset; in hda_dsp_stream_init()
893 hstream->stream_tag = i - num_capture + 1; in hda_dsp_stream_init()
894 hstream->opened = false; in hda_dsp_stream_init()
895 hstream->running = false; in hda_dsp_stream_init()
896 hstream->direction = SNDRV_PCM_STREAM_PLAYBACK; in hda_dsp_stream_init()
900 HDA_DSP_BDL_SIZE, &hstream->bdl); in hda_dsp_stream_init()
906 hstream->posbuf = (__le32 *)(bus->posbuf.area + in hda_dsp_stream_init()
907 (hstream->index) * 8); in hda_dsp_stream_init()
909 list_add_tail(&hstream->list, &bus->stream_list); in hda_dsp_stream_init()