18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __UDMA_PCM_H__
78c2ecf20Sopenharmony_ci#define __UDMA_PCM_H__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#if IS_ENABLED(CONFIG_SND_SOC_TI_UDMA_PCM)
108c2ecf20Sopenharmony_ciint udma_pcm_platform_register(struct device *dev);
118c2ecf20Sopenharmony_ci#else
128c2ecf20Sopenharmony_cistatic inline int udma_pcm_platform_register(struct device *dev)
138c2ecf20Sopenharmony_ci{
148c2ecf20Sopenharmony_ci	return 0;
158c2ecf20Sopenharmony_ci}
168c2ecf20Sopenharmony_ci#endif /* CONFIG_SND_SOC_TI_UDMA_PCM */
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#endif /* __UDMA_PCM_H__ */
19