Sound Open Firmware
Loading...
Searching...
No Matches
afe-dai.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause */
2
/*
3
* Copyright(c) 2021 MediaTek. All rights reserved.
4
*
5
* Author: Bo Pan <bo.pan@mediatek.com>
6
* YC Hung <yc.hung@mediatek.com>
7
*/
8
9
#ifndef __SOF_DRIVERS_AFE_DAI_H__
10
#define __SOF_DRIVERS_AFE_DAI_H__
11
12
#include <
rtos/bit.h
>
13
#include <
sof/common.h
>
14
#include <
sof/lib/dma.h
>
15
#include <sof/trace/trace.h>
16
#include <
user/trace.h
>
17
#include <stdint.h>
18
19
#define AFE_HS_GET_DAI(hs) (((hs) & MASK(7, 0)) >> 0)
20
#define AFE_HS_SET_DAI(dai) SET_BITS(7, 0, dai)
21
#define AFE_HS_GET_IRQ(hs) (((hs) & MASK(15, 8)) >> 8)
22
#define AFE_HS_SET_IRQ(irq) SET_BITS(15, 8, irq)
23
#define AFE_HS_GET_CHAN(hs) (((hs) & MASK(23, 16)) >> 16)
24
#define AFE_HS_SET_CHAN(chan) SET_BITS(23, 16, chan)
25
#define AFE_HANDSHAKE(dai, irq, channel)\
26
(AFE_HS_SET_DAI(dai) | AFE_HS_SET_CHAN(channel) | AFE_HS_SET_IRQ(irq))
27
28
extern
const
struct
dai_driver
afe_dai_driver
;
29
#endif
/* __SOF_DRIVERS_AFE_MEMIF_H__ */
30
afe_dai_driver
const struct dai_driver afe_dai_driver
bit.h
common.h
dma.h
trace.h
User-space ABI log levels and binary trace packet header definitions.
src
include
sof
drivers
afe-dai.h
Generated by
1.9.8