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 <quic_phaniu@quicinc.com>
This commit is contained in:
Phani Kumar Uppalapati
2022-11-18 11:58:05 -08:00
parent c2adcdf8a0
commit 5555970830
5 changed files with 11 additions and 13 deletions

View File

@@ -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;
}