summaryrefslogtreecommitdiff
path: root/bsp/rockchip/dm/include/rockchip-hdmi.h
blob: f15e5c507dcbdcd9c4d4abe64ea35202ae858ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-11-21     GuEe-GUI     first version
 */

#ifndef __ROCKCHIP_HDMI_H__
#define __ROCKCHIP_HDMI_H__

#include <rtdevice.h>

#ifdef RT_GRAPHIC_CONNECTOR_HDMI
rt_err_t rk_hdmi_audio_configure(struct rt_ofw_node *np,
        rt_uint32_t samplerate, rt_uint8_t channels, rt_uint8_t samplebits);
rt_err_t rk_hdmi_audio_enable(struct rt_ofw_node *np, rt_bool_t enable);
#else
rt_inline rt_err_t rk_hdmi_audio_configure(struct rt_ofw_node *np,
        rt_uint32_t samplerate, rt_uint8_t channels, rt_uint8_t samplebits)
{
    RT_UNUSED(np);
    RT_UNUSED(samplerate);
    RT_UNUSED(channels);
    RT_UNUSED(samplebits);

    return -RT_ENOSYS;
}

rt_inline rt_err_t rk_hdmi_audio_enable(struct rt_ofw_node *np, rt_bool_t enable)
{
    RT_UNUSED(np);
    RT_UNUSED(enable);

    return -RT_ENOSYS;
}
#endif

#endif /* __ROCKCHIP_HDMI_H__ */