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

Commit 02bee73b authored by Rahul Sharma's avatar Rahul Sharma Committed by Gerrit - the friendly Code Review server
Browse files

asoc: adding machine driver for sa6155



add separate machine driver for sa6155 and necessary
interface changes.

Change-Id: Ie9e498c3e3ccb99af01458f7604f822a11c54e67
Signed-off-by: default avatarRahul Sharma <rahsha@codeaurora.org>
parent da4b9b30
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -86,7 +86,7 @@ endif
# for SM6150 sound card driver
# for SM6150 sound card driver
ifdef CONFIG_SND_SOC_SM6150
ifdef CONFIG_SND_SOC_SM6150
	MACHINE_OBJS += sm6150.o
	MACHINE_OBJS += sm6150.o
	MACHINE_OBJS += sa8155.o
	MACHINE_OBJS += sa6155.o
	MACHINE_OBJS += machine_615x_init.o
	MACHINE_OBJS += machine_615x_init.o
endif
endif


+3 −3
Original line number Original line Diff line number Diff line
/*
/*
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* 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
* it under the terms of the GNU General Public License version 2 and
@@ -19,14 +19,14 @@
static int __init audio_machine_615x_init(void)
static int __init audio_machine_615x_init(void)
{
{
	sm6150_init();
	sm6150_init();
	sa8155_init();
	sa6155_init();
	return 0;
	return 0;
}
}


static void audio_machine_615x_exit(void)
static void audio_machine_615x_exit(void)
{
{
	sm6150_exit();
	sm6150_exit();
	sa8155_exit();
	sa6155_exit();
}
}


module_init(audio_machine_615x_init);
module_init(audio_machine_615x_init);
+3 −3
Original line number Original line Diff line number Diff line
/*
/*
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* 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
* it under the terms of the GNU General Public License version 2 and
@@ -15,9 +15,9 @@
#ifndef __MACHINE_615X_INIT_H__
#ifndef __MACHINE_615X_INIT_H__
#define __MACHINE_615X_INIT_H__
#define __MACHINE_615X_INIT_H__
int sm6150_init(void);
int sm6150_init(void);
int sa8155_init(void);
int sa6155_init(void);


void sm6150_exit(void);
void sm6150_exit(void);
void sa8155_exit(void);
void sa6155_exit(void);
#endif
#endif

asoc/sa6155.c

0 → 100644
+7132 −0

File added.

Preview size limit exceeded, changes collapsed.