Lines Matching +full:dual +full:- +full:direction
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 // This file is provided under a dual BSD/GPLv2 license. When using or
6 // Copyright(c) 2019-2020 Intel Corporation. All rights reserved.
13 #include "../sof-priv.h"
19 return cstream->runtime->private_data; in hda_compr_get_stream()
28 stream = hda_dsp_stream_get(sdev, cstream->direction); in hda_probe_compr_assign()
30 return -EBUSY; in hda_probe_compr_assign()
32 hdac_stream(stream)->curr_pos = 0; in hda_probe_compr_assign()
33 hdac_stream(stream)->cstream = cstream; in hda_probe_compr_assign()
34 cstream->runtime->private_data = stream; in hda_probe_compr_assign()
36 return hdac_stream(stream)->stream_tag; in hda_probe_compr_assign()
46 ret = hda_dsp_stream_put(sdev, cstream->direction, in hda_probe_compr_free()
47 hdac_stream(stream)->stream_tag); in hda_probe_compr_free()
49 dev_dbg(sdev->dev, "stream put failed: %d\n", ret); in hda_probe_compr_free()
53 hdac_stream(stream)->cstream = NULL; in hda_probe_compr_free()
54 cstream->runtime->private_data = NULL; in hda_probe_compr_free()
70 dmab = cstream->runtime->dma_buffer_p; in hda_probe_compr_set_params()
76 rate = hda_dsp_get_mult_div(sdev, params->codec.sample_rate); in hda_probe_compr_set_params()
78 hstream->format_val = rate | bits | (params->codec.ch_out - 1); in hda_probe_compr_set_params()
79 hstream->bufsize = cstream->runtime->buffer_size; in hda_probe_compr_set_params()
80 hstream->period_bytes = cstream->runtime->fragment_size; in hda_probe_compr_set_params()
81 hstream->no_period_wakeup = 0; in hda_probe_compr_set_params()
85 dev_err(sdev->dev, "error: hdac prepare failed: %x\n", ret); in hda_probe_compr_set_params()
109 pstream = &dai->driver->capture; in hda_probe_compr_pointer()
110 tstamp->copied_total = hdac_stream(stream)->curr_pos; in hda_probe_compr_pointer()
111 tstamp->sampling_rate = snd_pcm_rate_bit_to_rate(pstream->rates); in hda_probe_compr_pointer()