
Machine driver requires a mechanism to know the codec variant to limit supported configurations respective to that codec. Add a function to return the wcd938x codec variant. CRs-Fixed: 2488322 Change-Id: I16631cccb3abd32c933389e110e5b5a6b762a0e2 Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
30 lines
723 B
C
30 lines
723 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _WCD938X_H
|
|
#define _WCD938X_H
|
|
|
|
enum {
|
|
WCD9380 = 0,
|
|
WCD9385 = 5,
|
|
};
|
|
|
|
#ifdef CONFIG_SND_SOC_WCD938X
|
|
extern int wcd938x_info_create_codec_entry(struct snd_info_entry *codec_root,
|
|
struct snd_soc_component *component);
|
|
extern int wcd938x_get_codec_variant(struct snd_soc_component *component);
|
|
#else
|
|
extern int wcd938x_info_create_codec_entry(struct snd_info_entry *codec_root,
|
|
struct snd_soc_component *component)
|
|
{
|
|
return 0;
|
|
}
|
|
extern int wcd938x_get_codec_variant(struct snd_soc_component *component)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif /* CONFIG_SND_SOC_WCD938X */
|
|
#endif /* _WCD938X_H */
|