audio-lnx: Rename folders to new flat structure.
Kernel audio drivers can be categorised into below folders. asoc - ALSA based drivers, asoc/codecs - codec drivers, ipc - APR IPC communication drivers, dsp - DSP low level drivers/Audio ION/ADSP Loader, dsp/codecs - Native encoders and decoders, soc - SoC based drivers(pinctrl/regmap/soundwire) Restructure drivers to above folder format. Include directories also follow above format. Change-Id: I8fa0857baaacd47db126fb5c1f1f5ed7e886dbc0 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:

committed by
Martin Fick

parent
84f7f73144
commit
605b42f92c
51
asoc/codecs/wcd-dsp-utils.h
Normal file
51
asoc/codecs/wcd-dsp-utils.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright (c) 2016-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
|
||||
* only version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef __WCD_DSP_UTILS_H__
|
||||
#define __WCD_DSP_UTILS_H__
|
||||
|
||||
#define WDSP_IMG_NAME_LEN_MAX 64
|
||||
|
||||
#define WDSP_ELF_FLAG_EXECUTE (1 << 0)
|
||||
#define WDSP_ELF_FLAG_WRITE (1 << 1)
|
||||
#define WDSP_ELF_FLAG_READ (1 << 2)
|
||||
|
||||
#define WDSP_ELF_FLAG_RE (WDSP_ELF_FLAG_READ | WDSP_ELF_FLAG_EXECUTE)
|
||||
|
||||
struct wdsp_img_segment {
|
||||
|
||||
/* Firmware for the slit image */
|
||||
const struct firmware *split_fw;
|
||||
|
||||
/* Name of the split firmware file */
|
||||
char split_fname[WDSP_IMG_NAME_LEN_MAX];
|
||||
|
||||
/* Address where the segment is to be loaded */
|
||||
u32 load_addr;
|
||||
|
||||
/* Buffer to hold the data to be loaded */
|
||||
u8 *data;
|
||||
|
||||
/* Size of the data to be loaded */
|
||||
size_t size;
|
||||
|
||||
/* List node pointing to next segment */
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
int wdsp_get_segment_list(struct device *dev, const char *img_fname,
|
||||
unsigned int segment_type, struct list_head *seg_list,
|
||||
u32 *entry_point);
|
||||
void wdsp_flush_segment_list(struct list_head *seg_list);
|
||||
|
||||
#endif /* __WCD_DSP_UTILS_H__ */
|
Reference in New Issue
Block a user