Browse Source

asoc: change log mss level from pr_err to pr_debug

Change log level to pr_debug to avoid spurious log prints
in kernel messages.

Change-Id: I4ddacad8a5b2a143d3e46e683e3374f0449c05f6
Signed-off-by: Phani Kumar Uppalapati <[email protected]>
Phani Kumar Uppalapati 4 years ago
parent
commit
f9c7c60107
1 changed files with 2 additions and 2 deletions
  1. 2 2
      asoc/msm_common.c

+ 2 - 2
asoc/msm_common.c

@@ -77,7 +77,7 @@ static ssize_t aud_dev_sysfs_store(struct kobject *kobj,
 		pr_err("%s: invalid state %d \n", __func__, state);
 		goto done;
 	}
-	pr_info("%s: pcm_id %d state %d \n", __func__, pcm_id, state);
+	pr_debug("%s: pcm_id %d state %d \n", __func__, pcm_id, state);
 
 	pdata->aud_dev_state[pcm_id] = state;
 	if ( state == DEVICE_ENABLE && (pdata->dsp_sessions_closed != 0))
@@ -160,7 +160,7 @@ static int get_intf_index(const char *stream_name)
 	else if (strnstr(stream_name, "SENARY", strlen(stream_name)))
 		return SEN_MI2S_TDM_AUXPCM;
 	else {
-		pr_err("%s: stream name %s does not match\n", __func__, stream_name);
+		pr_debug("%s: stream name %s does not match\n", __func__, stream_name);
 		return -EINVAL;
 	}
 }