mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
Building the tegra-virt-alt driver with Linux v6.13 fails because some
of the header files are not found ...
sound/soc/tegra-virt-alt/tegra210_virt_alt_admaif.c:17:10: fatal error:
tegra_pcm_alt.h: No such file or directory
17 | #include "tegra_pcm_alt.h"
| ^~~~~~~~~~~~~~~~~
The 'tegra_pcm_alt.h' header is located in a 'include' sub-directory and
although the cflags add this path for find headers, the header is not
found because the '#include' of the file uses double-quotes and not
"<>". This could be fixed by simply updating the file with
'#include <tegra_pcm_alt.h>'. However, reviewing the code it simplifies
the Makefile to remove the 'include' sub-directory and directly include
the header files. Similarly, we can remove the search path of the
'nvaudio_ivc' headers and directly include these.
Bug 4991705
Change-Id: I1993d1f619698f33fc9edab05ad9235334fd3b5b
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3260938
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
22 lines
723 B
C
22 lines
723 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __TEGRA_ISOMGR_BW_ALT_H__
|
|
#define __TEGRA_ISOMGR_BW_ALT_H__
|
|
|
|
#if defined(CONFIG_TEGRA_ISOMGR)
|
|
void tegra_isomgr_adma_register(void);
|
|
void tegra_isomgr_adma_unregister(void);
|
|
void tegra_isomgr_adma_setbw(struct snd_pcm_substream *substream,
|
|
bool is_running);
|
|
void tegra_isomgr_adma_renegotiate(void *p, u32 avail_bw);
|
|
#else
|
|
static inline void tegra_isomgr_adma_register(void) { return; }
|
|
static inline void tegra_isomgr_adma_unregister(void) { return; }
|
|
static inline void tegra_isomgr_adma_setbw(struct snd_pcm_substream *substream,
|
|
bool is_running) { return; }
|
|
#endif
|
|
|
|
#endif |