mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
af26eeaf9d
PD#SWPL-77521 Problem: enable the same config as kernel 5.4 Solution: enable the same config as kernel 5.4 Verify: s4d Change-Id: I73f6eb8a896956337503477f32c218fe465cddda Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
35 lines
899 B
C
35 lines
899 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __AML_ATVDEMOD_H__
|
|
#define __AML_ATVDEMOD_H__
|
|
|
|
#include <linux/amlogic/aml_demod_common.h>
|
|
|
|
typedef int (*hook_func_t)(void);
|
|
typedef int (*hook_func1_t)(bool);
|
|
|
|
#if (defined CONFIG_AMLOGIC_ATV_DEMOD ||\
|
|
defined CONFIG_AMLOGIC_ATV_DEMOD_MODULE)
|
|
/* For audio driver get atv audio state */
|
|
void aml_fe_get_atvaudio_state(int *state);
|
|
|
|
/* For atv demod hook tvafe driver state */
|
|
void aml_fe_hook_cvd(hook_func_t atv_mode, hook_func_t cvd_hv_lock,
|
|
hook_func_t get_fmt, hook_func1_t set_mode);
|
|
#else
|
|
static inline __maybe_unused void aml_fe_get_atvaudio_state(int *state)
|
|
{
|
|
*state = 0;
|
|
}
|
|
|
|
static inline __maybe_unused void aml_fe_hook_cvd(hook_func_t atv_mode,
|
|
hook_func_t cvd_hv_lock, hook_func_t get_fmt, hook_func1_t set_mode)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* __AML_ATVDEMOD_H__ */
|