1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef AUDIO_HDMI_CODEC_LINUX_H
10 #define AUDIO_HDMI_CODEC_LINUX_H
11 
12 #include <drm/drm_crtc.h>
13 #include <sound/hdmi-codec.h>
14 
15 struct HdmiCodecPriv {
16     struct hdmi_codec_pdata hdmiCodecData;
17     uint8_t eld[MAX_ELD_BYTES];
18     struct snd_pcm_chmap *chmapInfo;
19     uint32_t chmapIdx;
20     struct mutex lock;
21     bool busy;
22     struct snd_soc_jack *jack;
23     uint32_t jackStatus;
24     struct device *dev;
25 };
26 
27 struct HdmiCodecPriv *AudioGetHdmiCodecPriv(void);
28 
29 #endif
30