Revert "techpack: fix the rest of debug_fs related errors"
This reverts commit 43d6834364.
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
@@ -199,6 +199,7 @@ ifeq ($(TARGET_PRODUCT), $(filter $(TARGET_PRODUCT),cepheus hercules orion))
|
||||
CDEFINES += -DCONFIG_SND_SOC_CS35L41_FOR_CEPH
|
||||
endif
|
||||
|
||||
|
||||
KBUILD_CPPFLAGS += $(CDEFINES)
|
||||
|
||||
# Currently, for versions of gcc which support it, the kernel Makefile
|
||||
|
||||
@@ -268,10 +268,8 @@ static int audio_open(struct inode *inode, struct file *file)
|
||||
struct q6audio_aio *audio = NULL;
|
||||
int rc = 0;
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
/* 4 bytes represents decoder number, 1 byte for terminate string */
|
||||
char name[sizeof "msm_alac_" + 5];
|
||||
#endif
|
||||
|
||||
audio = kzalloc(sizeof(struct q6audio_aio), GFP_KERNEL);
|
||||
if (!audio)
|
||||
|
||||
@@ -250,10 +250,8 @@ static int audio_open(struct inode *inode, struct file *file)
|
||||
struct q6audio_aio *audio = NULL;
|
||||
int rc = 0;
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
/* 4 bytes represents decoder number, 1 byte for terminate string */
|
||||
char name[sizeof "msm_ape_" + 5];
|
||||
#endif
|
||||
|
||||
audio = kzalloc(sizeof(struct q6audio_aio), GFP_KERNEL);
|
||||
if (!audio)
|
||||
|
||||
@@ -221,11 +221,8 @@ static int audio_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
struct q6audio_aio *audio = NULL;
|
||||
int rc = 0;
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
/* 4 bytes represents decoder number, 1 byte for terminate string */
|
||||
char name[sizeof "msm_g711_" + 5];
|
||||
#endif
|
||||
|
||||
audio = kzalloc(sizeof(struct q6audio_aio), GFP_KERNEL);
|
||||
|
||||
|
||||
@@ -220,11 +220,8 @@ static int audio_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
struct q6audio_aio *audio = NULL;
|
||||
int rc = 0;
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
/* 4 bytes represents decoder number, 1 byte for terminate string */
|
||||
char name[sizeof "msm_g711_" + 5];
|
||||
#endif
|
||||
|
||||
audio = kzalloc(sizeof(struct q6audio_aio), GFP_KERNEL);
|
||||
|
||||
|
||||
@@ -8647,7 +8647,7 @@ static void afe_release_uevent_data(struct kobject *kobj)
|
||||
|
||||
#ifdef CONFIG_SND_SOC_TFA9874_FOR_DAVI
|
||||
|
||||
extern int send_tfa_cal_apr(void *buf, int cmd_size, bool bRead)
|
||||
int send_tfa_cal_apr(void *buf, int cmd_size, bool bRead)
|
||||
{
|
||||
int32_t result = 0, port_id = AFE_PORT_ID_TFADSP_RX;
|
||||
uint32_t port_index = 0, payload_size = 0;
|
||||
@@ -8769,6 +8769,7 @@ extern int send_tfa_cal_apr(void *buf, int cmd_size, bool bRead)
|
||||
err:
|
||||
return result;
|
||||
}
|
||||
EXPORT_SYMBOL(send_tfa_cal_apr);
|
||||
|
||||
void send_tfa_cal_unmap_memory(void)
|
||||
{
|
||||
|
||||
@@ -150,7 +150,6 @@ static struct generic_get_data_ *generic_get_data;
|
||||
#define OUT_BUFFER_SIZE 56
|
||||
#define IN_BUFFER_SIZE 24
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
static struct timeval out_cold_tv;
|
||||
static struct timeval out_warm_tv;
|
||||
static struct timeval out_cont_tv;
|
||||
@@ -164,7 +163,6 @@ static int in_cont_index;
|
||||
static int out_cold_index;
|
||||
static char *out_buffer;
|
||||
static char *in_buffer;
|
||||
#endif
|
||||
|
||||
static uint32_t adsp_reg_event_opcode[] = {
|
||||
ASM_STREAM_CMD_REGISTER_PP_EVENTS,
|
||||
|
||||
Reference in New Issue
Block a user