Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ff03644 authored by Karthikeyan Mani's avatar Karthikeyan Mani Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: wsa881x: Add support to stub out wsa functionality



Provide stub functions for wsa APIs to ads support
for build without wsa option.

CRs-fixed: 2060360
Change-Id: I349827606d20e5e62d5b84fd7be114b22d9cff2d
Signed-off-by: default avatarKarthikeyan Mani <kmani@codeaurora.org>
parent d98d9ee8
Loading
Loading
Loading
Loading
+25 −3
Original line number Diff line number Diff line
/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -20,6 +20,7 @@

#define WSA881X_MAX_SWR_PORTS   4

#if IS_ENABLED(CONFIG_SND_SOC_WSA881X)
extern int wsa881x_set_channel_map(struct snd_soc_codec *codec, u8 *port,
				   u8 num_port, unsigned int *ch_mask,
				   unsigned int *ch_rate);
@@ -31,4 +32,25 @@ extern int wsa881x_codec_info_create_codec_entry(
					struct snd_soc_codec *codec);
void wsa881x_regmap_defaults(struct regmap *regmap, u8 version);

#else
extern int wsa881x_set_channel_map(struct snd_soc_codec *codec, u8 *port,
				   u8 num_port, unsigned int *ch_mask,
				   unsigned int *ch_rate)
{
	return 0;
}

extern int wsa881x_codec_info_create_codec_entry(
					struct snd_info_entry *codec_root,
					struct snd_soc_codec *codec)
{
	return 0;
}

void wsa881x_regmap_defaults(struct regmap *regmap, u8 version)
{
}

#endif

#endif /* _WSA881X_H */