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

Commit cbae14bb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: Fix KW issues for audio drivers"

parents 01b4773f 0152bff0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1188,7 +1188,10 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx)
		if (err)
			goto bail;
	}
	if (ctx->buf->virt && metalen <= copylen)
	VERIFY(err, ctx->buf->virt != NULL);
	if (err)
		goto bail;
	if (metalen <= copylen)
		memset(ctx->buf->virt, 0, metalen);

	/* copy metadata */
+6 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2018, 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
@@ -827,6 +827,11 @@ static int msm_audio_smmu_init_legacy(struct device *dev)
		return -EINVAL;
	}
	msm_audio_ion_data.cb_dev = msm_iommu_get_ctx(cb->name);
	if (msm_audio_ion_data.cb_dev == NULL) {
		dev_err(dev, "%s Could not find IOMMU context\n",
			__func__);
		return -EINVAL;
	}
	cb->addr_range.start = (dma_addr_t) read_val[0];
	cb->addr_range.size = (size_t) read_val[1];
	dev_dbg(dev, "%s Legacy iommu usage\n", __func__);
+1 −1
Original line number Diff line number Diff line
@@ -570,7 +570,7 @@ static int msm_lsm_reg_model(struct snd_pcm_substream *substream,
	struct snd_soc_pcm_runtime *rtd = substream->private_data;
	int rc = 0;
	u8 *snd_model_ptr;
	size_t offset;
	size_t offset = 0;

	rc = q6lsm_snd_model_buf_alloc(prtd->lsm_client,
				       p_info->param_size,
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2018, 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
@@ -16713,7 +16713,7 @@ int msm_routing_set_downmix_control_data(int be_id, int session_id,
{
	int i, rc = 0;
	struct adm_pspd_param_data_t data;
	struct audproc_chmixer_param_coeff dnmix_cfg;
	struct audproc_chmixer_param_coeff dnmix_cfg = {0,};
	uint16_t variable_payload = 0;
	char *adm_params = NULL;
	int port_id, copp_idx = 0;
+1 −1
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ int adm_programable_channel_mixer(int port_id, int copp_idx, int session_id,
				  int channel_index)
{
	struct adm_cmd_set_pspd_mtmx_strtr_params_v5 *adm_params = NULL;
	struct param_hdr_v3 data_v5;
	struct param_hdr_v3 data_v5 = {0,};
	int ret = 0, port_idx, sz = 0, param_size = 0;
	u16 *adm_pspd_params;
	u16 *ptr;
Loading