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

Commit 70e75ca4 authored by Ashish Jain's avatar Ashish Jain Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: bg: Reduce the CODEC_CHANNEL glink intents to 1



BG side implementation assumes that there is only one intent
available for CODEC_CHANNEL, update bg codec driver to reflect
the same.

Change-Id: Ie6d29b4a5ffcd2bd80be584b6a2bc8d99bf5f4f3
Signed-off-by: default avatarAshish Jain <ashishj@codeaurora.org>
parent b67a90fb
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -871,10 +871,10 @@ static void bg_cdc_pktzr_init(struct work_struct *work)
	int ret;
	struct bg_cdc_priv *bg_cdc;
	struct delayed_work *dwork;
	int num_of_intents = 2;
	uint32_t size[2] = {4096, 4096};
	int num_of_intents = 1;
	uint32_t size = 4096;
	struct bg_glink_ch_cfg ch_info[1] = {
		{"CODEC_CHANNEL", num_of_intents, size}
		{"CODEC_CHANNEL", num_of_intents, &size}
	};
	struct bg_hw_params hw_params;
	struct pktzr_cmd_rsp rsp;
@@ -911,11 +911,11 @@ static int bg_cdc_bg_device_up(struct bg_cdc_priv *bg_cdc)
{
	struct bg_hw_params hw_params;
	struct pktzr_cmd_rsp rsp;
	int num_of_intents = 2;
	uint32_t size[2] = {4096, 4096};
	int num_of_intents = 1;
	uint32_t size = 4096;
	int ret = 0;
	struct bg_glink_ch_cfg ch_info[1] = {
		{"CODEC_CHANNEL", num_of_intents, size}
		{"CODEC_CHANNEL", num_of_intents, &size}
	};
	mutex_lock(&bg_cdc->bg_cdc_lock);
	if (!bg_cdc->bg_cal_updated) {