Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
techpack: silence some more errors
Browse files Browse the repository at this point in the history
Signed-off-by: Yaroslav Furman <[email protected]>
  • Loading branch information
YaroST12 committed Jul 30, 2020
1 parent 71b625b commit 869492c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions techpack/audio/asoc/codecs/tfa98xx/src/tfa98xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2848,7 +2848,6 @@ enum Tfa98xx_Error tfa98xx_adsp_send_calib_values(void)

/* if the calibration value was sent to host DSP, we clear flag only (stereo case). */
if ((tfa98xx_device_count > 1) && (tfa98xx_device_count == bytes[0])) {
pr_info("The calibration value was sent to host DSP.\n");
bytes[0] = 0;
return Tfa98xx_Error_Ok;
}
Expand All @@ -2861,7 +2860,6 @@ enum Tfa98xx_Error tfa98xx_adsp_send_calib_values(void)
if (TFA_GET_BF(tfa, MTPEX) == 1) {
value = tfa_dev_mtp_get(tfa, TFA_MTP_RE25);
dsp_cal_value = (value * 65536) / 1000;
pr_info("Device 0x%x cal value is 0x%d\n", tfa98xx->i2c->addr, dsp_cal_value);

bytes[nr++] = (uint8_t)((dsp_cal_value >> 16) & 0xff);
bytes[nr++] = (uint8_t)((dsp_cal_value >> 8) & 0xff);
Expand All @@ -2874,7 +2872,6 @@ enum Tfa98xx_Error tfa98xx_adsp_send_calib_values(void)
if (tfa98xx_device_count == 1) {
memcpy(&bytes[7], &bytes[4], sizeof(char)*3);
}
pr_info("tfa98xx_device_count=%d bytes[0]=%d\n", tfa98xx_device_count, bytes[0]);

/* we will send it to host DSP algorithm once calibraion value loaded from all device. */
if (tfa98xx_device_count == bytes[0]) {
Expand Down Expand Up @@ -2902,7 +2899,6 @@ static int tfa98xx_send_mute_cmd(void)
{
uint8_t cmd[9] = {0x04, 0x81, 0x04, 0x00, 0x00, 0xff, 0x00, 0x00, 0xff};

pr_info("send mute command to host DSP.\n");
return send_tfa_cal_in_band(&cmd[0], sizeof(cmd));
}
#endif
Expand Down
2 changes: 0 additions & 2 deletions techpack/audio/asoc/msm-pcm-routing-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -23525,8 +23525,6 @@ static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);

if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
pr_err("%s: Device pp params on invalid port %d\n",
__func__, port_id);
return -EINVAL;
}

Expand Down
1 change: 0 additions & 1 deletion techpack/audio/dsp/msm-cirrus-playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,6 @@ int crus_afe_port_start(u16 port_id) {
EXPORT_SYMBOL(crus_afe_port_start);
int crus_afe_port_close(u16 port_id)
{
pr_info("%s: 0x%x\n", __func__, port_id);

//CSPL do not be involved in AFE
#if 0
Expand Down
2 changes: 0 additions & 2 deletions techpack/audio/dsp/q6asm.c
Original file line number Diff line number Diff line change
Expand Up @@ -10760,8 +10760,6 @@ int q6asm_get_asm_topology(int session_id)
goto done;
}
if (session[session_id].ac == NULL) {
pr_err("%s: session not created for session id = %d\n",
__func__, session_id);
goto done;
}
topology = (session[session_id].ac)->topology;
Expand Down

0 comments on commit 869492c

Please sign in to comment.