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

Commit 6ebbd035 authored by Danny Lin's avatar Danny Lin Committed by Pranav Vashi
Browse files

techpack: ASoC: sm8150: Split sa8155 driver into separate config option



There's no need to compile the sa8155 driver when targeting sm8150
mobile devices.

Signed-off-by: default avatarDanny Lin <danny@kdrag0n.dev>
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
parent 945ebcf7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -115,11 +115,15 @@ endif

# for SM8150 sound card driver
ifdef CONFIG_SND_SOC_SM8150
	MACHINE_OBJS += sa8155.o
	MACHINE_OBJS += sm8150.o
	MACHINE_OBJS += machine_815x_init.o
endif

# for SA8155 sound card driver
ifdef CONFIG_SND_SOC_SA8155
	MACHINE_OBJS += sa8155.o
endif

# for SM6150 sound card driver
ifdef CONFIG_SND_SOC_SM6150
	MACHINE_OBJS += sm6150.o
+4 −0
Original line number Diff line number Diff line
@@ -19,14 +19,18 @@ GNU General Public License for more details.
static int __init audio_machine_815x_init(void)
{
	sm8150_init();
#ifdef CONFIG_SND_SOC_SA8155
	sa8155_init();
#endif
	return 0;
}

static void audio_machine_815x_exit(void)
{
	sm8150_exit();
#ifdef CONFIG_SND_SOC_SA8155
	sa8155_exit();
#endif
}

module_init(audio_machine_815x_init);