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
16 #include <sound/soc-acpi.h>
17 #include <sound/soc-dai.h>
263 static inline u64 acp_get_byte_count(struct acp_dev_data *adata, int dai_id, int direction) in acp_get_byte_count() argument
267 if (direction == SNDRV_PCM_STREAM_PLAYBACK) { in acp_get_byte_count()
270 high = readl(adata->acp_base + ACP_BT_TX_LINEARPOSITIONCNTR_HIGH(adata)); in acp_get_byte_count()
271 low = readl(adata->acp_base + ACP_BT_TX_LINEARPOSITIONCNTR_LOW(adata)); in acp_get_byte_count()
274 high = readl(adata->acp_base + ACP_I2S_TX_LINEARPOSITIONCNTR_HIGH(adata)); in acp_get_byte_count()
275 low = readl(adata->acp_base + ACP_I2S_TX_LINEARPOSITIONCNTR_LOW(adata)); in acp_get_byte_count()
278 high = readl(adata->acp_base + ACP_HS_TX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count()
279 low = readl(adata->acp_base + ACP_HS_TX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count()
282 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
288 high = readl(adata->acp_base + ACP_BT_RX_LINEARPOSITIONCNTR_HIGH(adata)); in acp_get_byte_count()
289 low = readl(adata->acp_base + ACP_BT_RX_LINEARPOSITIONCNTR_LOW(adata)); in acp_get_byte_count()
292 high = readl(adata->acp_base + ACP_I2S_RX_LINEARPOSITIONCNTR_HIGH(adata)); in acp_get_byte_count()
293 low = readl(adata->acp_base + ACP_I2S_RX_LINEARPOSITIONCNTR_LOW(adata)); in acp_get_byte_count()
296 high = readl(adata->acp_base + ACP_HS_RX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count()
297 low = readl(adata->acp_base + ACP_HS_RX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count()
300 high = readl(adata->acp_base + ACP_WOV_RX_LINEARPOSITIONCNTR_HIGH); in acp_get_byte_count()
301 low = readl(adata->acp_base + ACP_WOV_RX_LINEARPOSITIONCNTR_LOW); in acp_get_byte_count()
304 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()