Lines Matching +full:high +full:- +full:threshold

1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
16 #include <sound/soc-acpi.h>
17 #include <sound/soc-dai.h>
41 #define THRESHOLD(bit, base) ((bit) + (base)) macro
42 #define I2S_RX_THRESHOLD(base) THRESHOLD(7, base)
43 #define I2S_TX_THRESHOLD(base) THRESHOLD(8, base)
44 #define BT_TX_THRESHOLD(base) THRESHOLD(6, base)
45 #define BT_RX_THRESHOLD(base) THRESHOLD(5, base)
46 #define HS_TX_THRESHOLD(base) THRESHOLD(4, base)
47 #define HS_RX_THRESHOLD(base) THRESHOLD(3, base)
265 u64 byte_count = 0, low = 0, high = 0; in acp_get_byte_count() local
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()
309 byte_count = (high << 32) | low; in acp_get_byte_count()