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

Commit 9d63f3bc authored by Karthikeyan Mani's avatar Karthikeyan Mani Committed by Phani Kumar Uppalapati
Browse files

ASoC: msm: export symbols used by WCD



Add export symbol to symbols used by audio WCD. WCD is
built as separate module and requires symbols called
from WCD to be exported.

CRs-Fixed: 2068871
Change-Id: Ic784d8671ae03775f1db5dee11d2152e5fc445ce
Signed-off-by: default avatarKarthikeyan Mani <kmani@codeaurora.org>
parent d6681c1b
Loading
Loading
Loading
Loading
+61 −0
Original line number Diff line number Diff line
@@ -356,6 +356,15 @@ static struct cal_type_data *create_cal_type_data(
	return cal_type;
}

/**
 * cal_utils_create_cal_types
 *
 * @num_cal_types: number of types
 * @cal_type: pointer to the cal types pointer
 * @info: pointer to info
 *
 * Returns 0 on success, EINVAL otherwise
 */
int cal_utils_create_cal_types(int num_cal_types,
			struct cal_type_data **cal_type,
			struct cal_type_info *info)
@@ -411,6 +420,7 @@ int cal_utils_create_cal_types(int num_cal_types,
done:
	return ret;
}
EXPORT_SYMBOL(cal_utils_create_cal_types);

static void delete_cal_block(struct cal_block_data *cal_block)
{
@@ -497,6 +507,13 @@ void cal_utils_destroy_cal_types(int num_cal_types,
	return;
}

/**
 * cal_utils_get_only_cal_block
 *
 * @cal_type: pointer to the cal type
 *
 * Returns cal_block structure
 */
struct cal_block_data *cal_utils_get_only_cal_block(
			struct cal_type_data *cal_type)
{
@@ -516,7 +533,16 @@ struct cal_block_data *cal_utils_get_only_cal_block(
done:
	return cal_block;
}
EXPORT_SYMBOL(cal_utils_get_only_cal_block);

/**
 * cal_utils_get_only_cal_block
 *
 * @cal_block: pointer to cal block struct
 * @user_data: pointer to user data
 *
 * Returns true on match
 */
bool cal_utils_match_buf_num(struct cal_block_data *cal_block,
					void *user_data)
{
@@ -528,6 +554,7 @@ bool cal_utils_match_buf_num(struct cal_block_data *cal_block,

	return ret;
}
EXPORT_SYMBOL(cal_utils_match_buf_num);

static struct cal_block_data *get_matching_cal_block(
					struct cal_type_data *cal_type,
@@ -759,6 +786,17 @@ static int unmap_memory(struct cal_type_data *cal_type,
	return ret;
}

/**
 * cal_utils_alloc_cal
 *
 * @data_size: size of data to allocate
 * @data: data pointer
 * @cal_type: pointer to the cal type
 * @client_info_size: client info size
 * @client_info: pointer to client info
 *
 * Returns 0 on success, appropriate error code otherwise
 */
int cal_utils_alloc_cal(size_t data_size, void *data,
			struct cal_type_data *cal_type,
			size_t client_info_size, void *client_info)
@@ -827,7 +865,17 @@ int cal_utils_alloc_cal(size_t data_size, void *data,
done:
	return ret;
}
EXPORT_SYMBOL(cal_utils_alloc_cal);

/**
 * cal_utils_dealloc_cal
 *
 * @data_size: size of data to allocate
 * @data: data pointer
 * @cal_type: pointer to the cal type
 *
 * Returns 0 on success, appropriate error code otherwise
 */
int cal_utils_dealloc_cal(size_t data_size, void *data,
			struct cal_type_data *cal_type)
{
@@ -887,7 +935,19 @@ int cal_utils_dealloc_cal(size_t data_size, void *data,
done:
	return ret;
}
EXPORT_SYMBOL(cal_utils_dealloc_cal);

/**
 * cal_utils_set_cal
 *
 * @data_size: size of data to allocate
 * @data: data pointer
 * @cal_type: pointer to the cal type
 * @client_info_size: client info size
 * @client_info: pointer to client info
 *
 * Returns 0 on success, appropriate error code otherwise
 */
int cal_utils_set_cal(size_t data_size, void *data,
			struct cal_type_data *cal_type,
			size_t client_info_size, void *client_info)
@@ -967,3 +1027,4 @@ int cal_utils_set_cal(size_t data_size, void *data,
done:
	return ret;
}
EXPORT_SYMBOL(cal_utils_set_cal);
+20 −0
Original line number Diff line number Diff line
@@ -2125,6 +2125,7 @@ int afe_set_config(enum afe_config_type config_type, void *config_data, int arg)

	return ret;
}
EXPORT_SYMBOL(afe_set_config);

/*
 * afe_clear_config - If SSR happens ADSP loses AFE configs, let AFE driver know
@@ -2135,6 +2136,7 @@ void afe_clear_config(enum afe_config_type config)
{
	clear_bit(config, &afe_configured_cmd);
}
EXPORT_SYMBOL(afe_clear_config);

bool afe_has_config(enum afe_config_type config)
{
@@ -5749,6 +5751,14 @@ int afe_set_lpass_clock(u16 port_id, struct afe_clk_cfg *cfg)
	return ret;
}

/**
 * afe_set_lpass_clk_cfg - Set AFE clk config
 *
 * @index: port index
 * @cfg: pointer to clk set struct
 *
 * Returns 0 on success, appropriate error code otherwise
 */
int afe_set_lpass_clk_cfg(int index, struct afe_clk_set *cfg)
{
	struct afe_lpass_clk_config_command_v2 clk_cfg;
@@ -5829,7 +5839,16 @@ int afe_set_lpass_clk_cfg(int index, struct afe_clk_set *cfg)
	mutex_unlock(&this_afe.afe_cmd_lock);
	return ret;
}
EXPORT_SYMBOL(afe_set_lpass_clk_cfg);

/**
 * afe_set_lpass_clock_v2 - Enable AFE lpass clock
 *
 * @port_id: AFE port id
 * @cfg: pointer to clk set struct
 *
 * Returns 0 on success, appropriate error code otherwise
 */
int afe_set_lpass_clock_v2(u16 port_id, struct afe_clk_set *cfg)
{
	int index = 0;
@@ -5855,6 +5874,7 @@ int afe_set_lpass_clock_v2(u16 port_id, struct afe_clk_set *cfg)

	return ret;
}
EXPORT_SYMBOL(afe_set_lpass_clock_v2);

int afe_set_lpass_internal_digital_codec_clock(u16 port_id,
			struct afe_digital_clk_cfg *cfg)
+6 −1
Original line number Diff line number Diff line
@@ -381,6 +381,11 @@ uint32_t core_set_dolby_manufacturer_id(int manufacturer_id)
	return rc;
}

/**
 * q6core_is_adsp_ready - check adsp ready status
 *
 * Returns true if adsp is ready otherwise returns false
 */
bool q6core_is_adsp_ready(void)
{
	int rc = 0;
@@ -419,7 +424,7 @@ bool q6core_is_adsp_ready(void)
	mutex_unlock(&(q6core_lcl.cmd_lock));
	return ret;
}

EXPORT_SYMBOL(q6core_is_adsp_ready);

static int q6core_map_memory_regions(phys_addr_t *buf_add, uint32_t mempool_id,
			uint32_t *bufsz, uint32_t bufcnt, uint32_t *map_handle)