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

Commit a57c600e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: Fix ASRC port type mismatch"

parents 4292d98d 0a9ad4c3
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -42375,8 +42375,7 @@ static int asrc_get_module_location(struct asrc_module_config_params *params,
	unsigned long copp = -1;
	bool copp_is_found = false;
	struct msm_pcm_routing_bdai_data *bedai = NULL;
	int port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
			       MSM_AFE_PORT_TYPE_TX;
	int port_type = -1;
	mutex_lock(&routing_lock);
@@ -42390,6 +42389,10 @@ static int asrc_get_module_location(struct asrc_module_config_params *params,
	dir = params->dir;
	be_id = params->be_id;
	bedai = &msm_bedais[be_id];
	port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
			  MSM_AFE_PORT_TYPE_TX;
	if (afe_get_port_type(bedai->port_id) != port_type) {
		pr_err("%s: port_type not match: be_dai %d type %d\n",
			__func__, be_id, port_type);