浏览代码

audio-kernel: fix compilation issues for pineapple target

Fix compilation issues in audio-kernel for pineapple target.

Change-Id: I93fa4fb670989f82139dd2cd0dbe57b52ad52504
Signed-off-by: Phani Kumar Uppalapati <[email protected]>
Phani Kumar Uppalapati 2 年之前
父节点
当前提交
5555970830
共有 5 个文件被更改,包括 11 次插入13 次删除
  1. 4 4
      asoc/codecs/lpass-cdc/lpass-cdc-clk-rsc.c
  2. 4 6
      asoc/msm_common.c
  3. 1 1
      dsp/adsp-loader.c
  4. 1 1
      dsp/audio_ssr.c
  5. 1 1
      soc/pinctrl-lpi.c

+ 4 - 4
asoc/codecs/lpass-cdc/lpass-cdc-clk-rsc.c

@@ -108,7 +108,7 @@ int lpass_cdc_rsc_clk_reset(struct device *dev, int clk_id)
 	int count = 0;
 
 	if (!dev) {
-		pr_err("%s: dev is null %d\n", __func__);
+		pr_err("%s: dev is null\n", __func__);
 		return -EINVAL;
 	}
 
@@ -153,7 +153,7 @@ void lpass_cdc_clk_rsc_enable_all_clocks(struct device *dev, bool enable)
 	int i = 0;
 
 	if (!dev) {
-		pr_err("%s: dev is null %d\n", __func__);
+		pr_err("%s: dev is null\n", __func__);
 		return;
 	}
 
@@ -401,7 +401,7 @@ void lpass_cdc_clk_rsc_fs_gen_request(struct device *dev, bool enable)
 	struct lpass_cdc_clk_rsc *priv = NULL;
 
 	if (!dev) {
-		pr_err("%s: dev is null %d\n", __func__);
+		pr_err("%s: dev is null\n", __func__);
 		return;
 	}
 	clk_dev = lpass_cdc_get_rsc_clk_device_ptr(dev->parent);
@@ -477,7 +477,7 @@ int lpass_cdc_clk_rsc_request_clock(struct device *dev,
 	bool mux_switch = false;
 
 	if (!dev) {
-		pr_err("%s: dev is null %d\n", __func__);
+		pr_err("%s: dev is null\n", __func__);
 		return -EINVAL;
 	}
 	if ((clk_id_req < 0 || clk_id_req >= MAX_CLK) &&

+ 4 - 6
asoc/msm_common.c

@@ -611,7 +611,7 @@ void msm_common_snd_shutdown(struct snd_pcm_substream *substream)
 	}
 }
 
-static void msm_audio_add_qos_request()
+static void msm_audio_add_qos_request(void)
 {
 	int i;
 	int cpu = 0;
@@ -642,7 +642,7 @@ static void msm_audio_add_qos_request()
 	}
 }
 
-static void msm_audio_remove_qos_request()
+static void msm_audio_remove_qos_request(void)
 {
 	int cpu = 0;
 	int ret = 0;
@@ -838,7 +838,7 @@ int msm_channel_map_get(struct snd_kcontrol *kcontrol,
 			ch_cnt = tx_ch_cnt;
 		}
 		if (ch_cnt > 2) {
-			pr_err("%s: Incorrect channel count: %d\n", ch_cnt);
+			pr_err("%s: Incorrect channel count: %d\n", __func__, ch_cnt);
 			return -EINVAL;
 		}
 		len = sizeof(uint32_t) * (ch_cnt + 1);
@@ -887,9 +887,7 @@ int msm_channel_map_get(struct snd_kcontrol *kcontrol,
 		/* reset return value from the loop above */
 		ret = 0;
 		if (rx_ch_cnt == 0 && tx_ch_cnt == 0) {
-			pr_debug("%s: got incorrect channel map for backend_id:%d, ",
-				"RX Channel Count:%d,"
-				"TX Channel Count:%d\n",
+			pr_debug("%s: incorrect ch map for backend_id:%d, RX Channel Cnt:%d, TX Channel Cnt:%d\n",
 				__func__, backend_id, rx_ch_cnt, tx_ch_cnt);
 			return ret;
 		}

+ 1 - 1
dsp/adsp-loader.c

@@ -339,7 +339,7 @@ static int adsp_loader_probe(struct platform_device *pdev)
 	rproc_phandle = be32_to_cpup(prop->value);
 	adsp = rproc_get_by_phandle(rproc_phandle);
 	if (!adsp) {
-		dev_err(&pdev->dev, "fail to get rproc\n", __func__);
+		dev_err(&pdev->dev, "fail to get rproc\n");
 		return -EPROBE_DEFER;
 	}
 

+ 1 - 1
dsp/audio_ssr.c

@@ -21,7 +21,7 @@
 void *audio_ssr_register(const char *domain_name, struct notifier_block *nb)
 {
 	if (domain_name  == NULL) {
-		pr_err("%s: Invalid domain name  %d\n", __func__);
+		pr_err("%s: Invalid domain name\n", __func__);
 		return ERR_PTR(-EINVAL);
 	}
 

+ 1 - 1
soc/pinctrl-lpi.c

@@ -731,7 +731,7 @@ static int lpi_pinctrl_probe(struct platform_device *pdev)
 	} else {
 		slew_base = NULL;
 		dev_dbg(dev, "error in reading lpi slew register: %d\n",
-			__func__, ret);
+			ret);
 	}
 
 	pindesc = devm_kcalloc(dev, npins, sizeof(*pindesc), GFP_KERNEL);