diff --git a/techpack/audio/asoc/codecs/cs35l41/cs35l41.c b/techpack/audio/asoc/codecs/cs35l41/cs35l41.c index 076a5db5d55a..fb1e6f3fa18e 100755 --- a/techpack/audio/asoc/codecs/cs35l41/cs35l41.c +++ b/techpack/audio/asoc/codecs/cs35l41/cs35l41.c @@ -12,7 +12,6 @@ * published by the Free Software Foundation. * */ -#define DEBUG #include #include #include @@ -390,7 +389,7 @@ static int cs35l41_fast_switch_file_put(struct snd_kcontrol *kcontrol, cs35l41->fast_switch_file_idx = i; ret = cs35l41_do_fast_switch(cs35l41); } else { - dev_info(cs35l41->dev, "do not need switch to delta (%u),origin delta %d, fast_switch_en %d\n", + dev_dbg(cs35l41->dev, "do not need switch to delta (%u),origin delta %d, fast_switch_en %d\n", i, cs35l41->fast_switch_file_idx, cs35l41->fast_switch_en); } @@ -954,7 +953,7 @@ static int cs35l41_main_amp_event(struct snd_soc_dapm_widget *w, int i; bool pdn; unsigned int val; - dev_info(cs35l41->dev, "%s: event = %d, DC counter = %d.\n", + dev_dbg(cs35l41->dev, "%s: event = %d, DC counter = %d.\n", __func__, event, cs35l41->dc_current_cnt); switch (event) { case SND_SOC_DAPM_POST_PMU: @@ -1325,7 +1324,7 @@ static int cs35l41_is_speaker_in_handset(struct snd_pcm_substream *substream, fw_name = cs35l41->fast_switch_names[cs35l41->fast_switch_file_idx]; if (!strcmp(fw_name, HANDSET_TUNING)) { - dev_info(cs35l41->dev, "%s: '%s'[%d] = '%s'\n", + dev_dbg(cs35l41->dev, "%s: '%s'[%d] = '%s'\n", __func__, rcv_dai->name, cs35l41->fast_switch_file_idx, fw_name); return 1; @@ -1345,13 +1344,13 @@ static int cs35l41_pcm_hw_params(struct snd_pcm_substream *substream, int val = 0; if(cs35l41_is_speaker_in_handset(substream, dai)) { - dev_info(cs35l41->dev, "%s: speaker amp" + dev_dbg(cs35l41->dev, "%s: speaker amp" " hw_parmas in handset mode\n", __func__); return 0; } regmap_read(cs35l41->regmap, CS35L41_PLL_CLK_CTRL, &val); - dev_info(cs35l41->dev, "%s: Before 0x2c04 <= 0x%x\n", + dev_dbg(cs35l41->dev, "%s: Before 0x2c04 <= 0x%x\n", __func__, val); for (i = 0; i < ARRAY_SIZE(cs35l41_fs_rates); i++) { if (rate == cs35l41_fs_rates[i].rate) @@ -1366,7 +1365,7 @@ static int cs35l41_pcm_hw_params(struct snd_pcm_substream *substream, cs35l41_component_set_sysclk(dai->component, 0, 0, 2 * rate * asp_width, 0); regmap_read(cs35l41->regmap, CS35L41_PLL_CLK_CTRL, &val); - dev_info(cs35l41->dev, "%s: After 0x2c04 <= 0x%x\n", + dev_dbg(cs35l41->dev, "%s: After 0x2c04 <= 0x%x\n", __func__, val); if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { @@ -1453,12 +1452,12 @@ static int cs35l41_component_set_sysclk(struct snd_soc_component *component, if (cs35l41->extclk_freq) { - dev_info(cs35l41->dev, "%s: clock has beed configured, clk_id=%d, src=%d, freq=%d\n", + dev_dbg(cs35l41->dev, "%s: clock has beed configured, clk_id=%d, src=%d, freq=%d\n", __func__, clk_id, source, freq); return 0; } - dev_info(cs35l41->dev, "%s: clk_id=%d, src=%d, freq=%d, dir=%d\n", + dev_dbg(cs35l41->dev, "%s: clk_id=%d, src=%d, freq=%d, dir=%d\n", __func__, clk_id, source, freq, dir); switch (clk_id) { @@ -2008,7 +2007,7 @@ static int cs35l41_handle_of_data(struct device *dev, } else { /* Device tree provides file name */ num_fast_switch = (size_t)ret; - dev_info(dev, "num_fast_switch:%zu\n", num_fast_switch); + dev_dbg(dev, "num_fast_switch:%zu\n", num_fast_switch); cs35l41->fast_switch_names = devm_kmalloc(dev, num_fast_switch * sizeof(char *), GFP_KERNEL); @@ -2018,7 +2017,7 @@ static int cs35l41_handle_of_data(struct device *dev, cs35l41->fast_switch_names, num_fast_switch); for (i = 0; i < num_fast_switch; i++) { - dev_info(dev, "%d:%s\n", i, + dev_dbg(dev, "%d:%s\n", i, cs35l41->fast_switch_names[i]); } cs35l41->fast_switch_enum.items = num_fast_switch; @@ -2314,7 +2313,7 @@ int cs35l41_probe(struct cs35l41_private *cs35l41, ret = PTR_ERR(cs35l41->reset_gpio); cs35l41->reset_gpio = NULL; if (ret == -EBUSY) { - dev_info(cs35l41->dev, + dev_dbg(cs35l41->dev, "Reset line busy, assuming shared reset\n"); } else { dev_err(cs35l41->dev, @@ -2449,7 +2448,7 @@ int cs35l41_probe(struct cs35l41_private *cs35l41, cs35l41->extclk_freq = 0; - dev_info(cs35l41->dev, "Cirrus Logic CS35L41 (%x), Revision: %02X\n", + dev_dbg(cs35l41->dev, "Cirrus Logic CS35L41 (%x), Revision: %02X\n", regid, reg_revid); return 0; diff --git a/techpack/audio/asoc/codecs/wcd938x/wcd938x.c b/techpack/audio/asoc/codecs/wcd938x/wcd938x.c index 3deb3935fcf6..a3daaa4191b7 100755 --- a/techpack/audio/asoc/codecs/wcd938x/wcd938x.c +++ b/techpack/audio/asoc/codecs/wcd938x/wcd938x.c @@ -4,7 +4,6 @@ * Copyright (C) 2021 XiaoMi, Inc. */ -#define DEBUG #include #include #include diff --git a/techpack/audio/asoc/msm-dai-q6-hdmi-v2.c b/techpack/audio/asoc/msm-dai-q6-hdmi-v2.c index 42d53e721928..f2a66e4e26b7 100644 --- a/techpack/audio/asoc/msm-dai-q6-hdmi-v2.c +++ b/techpack/audio/asoc/msm-dai-q6-hdmi-v2.c @@ -351,7 +351,7 @@ static void msm_dai_q6_hdmi_shutdown(struct snd_pcm_substream *substream, int rc = 0; if (!test_bit(STATUS_PORT_STARTED, dai_data->status_mask)) { - pr_info("%s: afe port not started. dai_data->status_mask = %ld\n", + pr_debug("%s: afe port not started. dai_data->status_mask = %ld\n", __func__, *dai_data->status_mask); return; } diff --git a/techpack/audio/dsp/elliptic/elliptic.c b/techpack/audio/dsp/elliptic/elliptic.c index 0cb0b8bee0ca..10d9c5651e3e 100755 --- a/techpack/audio/dsp/elliptic/elliptic.c +++ b/techpack/audio/dsp/elliptic/elliptic.c @@ -82,12 +82,12 @@ void elliptic_data_print_debug_counters(struct elliptic_data *elliptic_data) if (elliptic_data->userspace_read_total != elliptic_data->isr_write_total) { - EL_PRINT_I("user space reads / isr writes : %u / %u", + EL_PRINT_D("user space reads / isr writes : %u / %u", elliptic_data->userspace_read_total, elliptic_data->isr_write_total); } - EL_PRINT_I("total isr fifo discarded frame count : %u", + EL_PRINT_D("total isr fifo discarded frame count : %u", elliptic_data->isr_fifo_discard_total); } @@ -173,7 +173,7 @@ static int device_open(struct inode *inode, struct file *filp) atomic_set(&elliptic_data->abort_io, 0); elliptic_data_reset_debug_counters(elliptic_data); - EL_PRINT_I("Opened device elliptic%u", minor); + EL_PRINT_D("Opened device elliptic%u", minor); dev->opened = 1; return 0; } @@ -270,7 +270,7 @@ size_t elliptic_data_pop(struct elliptic_data ++elliptic_data->userspace_read_total; } else { if (-ERESTARTSYS == result) - EL_PRINT_I("wait interrupted"); + EL_PRINT_D("wait interrupted"); else EL_PRINT_E("wait error = %d", result); @@ -560,7 +560,7 @@ static int device_close(struct inode *inode, struct file *filp) elliptic_data_cancel(elliptic_data); up(&device->sem); - EL_PRINT_I("Closed device elliptic%u", minor); + EL_PRINT_D("Closed device elliptic%u", minor); return 0; } diff --git a/techpack/audio/dsp/elliptic/io_modules/userspace/elliptic_data_userspace_ctrl.c b/techpack/audio/dsp/elliptic/io_modules/userspace/elliptic_data_userspace_ctrl.c index 59d1a60f39b0..ecb307602423 100644 --- a/techpack/audio/dsp/elliptic/io_modules/userspace/elliptic_data_userspace_ctrl.c +++ b/techpack/audio/dsp/elliptic/io_modules/userspace/elliptic_data_userspace_ctrl.c @@ -105,7 +105,7 @@ static int device_open(struct inode *inode, struct file *filp) if (down_interruptible(&ctrl_device.sem) != 0) return -EEXIST; - EL_PRINT_I("Opened device %s", USERSPACE_CTRL_IO_DEVICE_NAME); + EL_PRINT_D("Opened device %s", USERSPACE_CTRL_IO_DEVICE_NAME); return 0; } @@ -180,7 +180,7 @@ fail: static int device_close(struct inode *inode, struct file *filp) { up(&ctrl_device.sem); - EL_PRINT_I("Closed device %s", USERSPACE_CTRL_IO_DEVICE_NAME); + EL_PRINT_D("Closed device %s", USERSPACE_CTRL_IO_DEVICE_NAME); return 0; } diff --git a/techpack/audio/dsp/elliptic/io_modules/userspace/elliptic_data_userspace_io.c b/techpack/audio/dsp/elliptic/io_modules/userspace/elliptic_data_userspace_io.c index 15b0dd8a87e4..644ec9a30ff2 100644 --- a/techpack/audio/dsp/elliptic/io_modules/userspace/elliptic_data_userspace_io.c +++ b/techpack/audio/dsp/elliptic/io_modules/userspace/elliptic_data_userspace_io.c @@ -67,7 +67,7 @@ static int device_open(struct inode *inode, struct file *filp) if (down_interruptible(&io_device.sem) != 0) return -EEXIST; - EL_PRINT_I("Opened device %s", USERSPACE_IO_DEVICE_NAME); + EL_PRINT_D("Opened device %s", USERSPACE_IO_DEVICE_NAME); return 0; } @@ -85,7 +85,7 @@ static ssize_t device_write(struct file *fp, const char __user *buff, static int device_close(struct inode *inode, struct file *filp) { up(&io_device.sem); - EL_PRINT_I("Closed device %s", USERSPACE_IO_DEVICE_NAME); + EL_PRINT_D("Closed device %s", USERSPACE_IO_DEVICE_NAME); return 0; } diff --git a/techpack/audio/dsp/msm-cirrus-playback.c b/techpack/audio/dsp/msm-cirrus-playback.c index 0b98ed645cb5..63d6bc5eb1e9 100644 --- a/techpack/audio/dsp/msm-cirrus-playback.c +++ b/techpack/audio/dsp/msm-cirrus-playback.c @@ -55,11 +55,11 @@ #undef CONFIG_OF -#undef pr_info +#undef pr_debug #undef pr_err #undef pr_debug #define pr_debug(fmt, args...) printk(KERN_INFO "[CSPL] " pr_fmt(fmt), ##args) -#define pr_info(fmt, args...) printk(KERN_INFO "[CSPL] " pr_fmt(fmt), ##args) +#define pr_debug(fmt, args...) printk(KERN_INFO "[CSPL] " pr_fmt(fmt), ##args) #define pr_err(fmt, args...) printk(KERN_ERR "[CSPL] " pr_fmt(fmt), ##args) #define CRUS_TX_CONFIG "crus_sp_tx%d.bin" @@ -192,7 +192,7 @@ static int crus_afe_get_param_v2(int port, int module, int param, int index = afe_get_port_index(port); int ret = 0, count = 0; - pr_info("CRUS_SP: (get_param) module = 0x%08x, port = 0x%08x, param = 0x%08x\n", + pr_debug("CRUS_SP: (get_param) module = 0x%08x, port = 0x%08x, param = 0x%08x\n", module, port, param); config = (struct afe_custom_crus_get_config_v2_t *) @@ -240,7 +240,7 @@ static int crus_afe_set_param_v2(int port, int module, int param, int index = afe_get_port_index(port); int ret = 0; - pr_info("CRUS_SP: (set_param) module = 0x%08x, port = 0x%08x, param = 0x%08x\n", + pr_debug("CRUS_SP: (set_param) module = 0x%08x, port = 0x%08x, param = 0x%08x\n", module, port, param); config = crus_gen_afe_set_header(length, port, module, param); @@ -271,7 +271,7 @@ static int crus_afe_get_param_v3(int port, int module_id, int index = 0; int ret = 0; - pr_info("%s: port=0x%x, module=0x%x, param_id=0x%x, size=%d\n", + pr_debug("%s: port=0x%x, module=0x%x, param_id=0x%x, size=%d\n", __func__, port, module_id, param_id, length); param_hdr.module_id = module_id; @@ -322,17 +322,17 @@ static int crus_afe_get_param_v3(int port, int module_id, #if 0 for (index = 0; index < length; index ++) - pr_info("[%d]=%d\n", index, this_ctrl.user_buffer[index]); + pr_debug("[%d]=%d\n", index, this_ctrl.user_buffer[index]); - pr_info("[5]=%s\n", &this_ctrl.user_buffer[5]); + pr_debug("[5]=%s\n", &this_ctrl.user_buffer[5]); #endif /* copy from dynamic buffer to return buffer */ memcpy((u8*)data, &this_ctrl.user_buffer[5], length); - pr_info("%s: Copied %d bytes data \n", __func__, length); + pr_debug("%s: Copied %d bytes data \n", __func__, length); ret = 0; fail_cmd: - pr_info("%s: param_id %x status %d\n", __func__, param_id, ret); + pr_debug("%s: param_id %x status %d\n", __func__, param_id, ret); mutex_unlock(&this_ctrl.param_lock); kfree(this_ctrl.user_buffer); return ret; @@ -350,7 +350,7 @@ static int crus_afe_set_param_v3(int port, int module_id, int packed_data_size = sizeof(union param_hdrs) + length; int ret = 0; - pr_info("%s: port=0x%x, module=0x%x, param_id=0x%x, size=%d\n", + pr_debug("%s: port=0x%x, module=0x%x, param_id=0x%x, size=%d\n", __func__, port, module_id, param_id, length); port_id = q6audio_get_port_id(port); @@ -429,7 +429,7 @@ static int crus_afe_set_param_v3(int port, int module_id, ret = 0; fail_cmd: - pr_info("[CSPL]%s param_id %x status %d\n", __func__, param_id, ret); + pr_debug("[CSPL]%s param_id %x status %d\n", __func__, param_id, ret); kfree(set_param); kfree(packed_param_data); return ret; @@ -506,7 +506,7 @@ static int crus_afe_send_config(const char *data, int32_t length, int index = afe_get_port_index(port); uint32_t param = 0; - pr_info("CRUS_SP: (send_config) module = 0x%08x, port = 0x%08x\n", + pr_debug("CRUS_SP: (send_config) module = 0x%08x, port = 0x%08x\n", module, port); /* Destination settings for message */ @@ -579,7 +579,7 @@ static int crus_afe_send_delta(const char *data, uint32_t length) int chars_to_send, mem_size, sent = 0, ret = 0; int index = afe_get_port_index(port); - pr_info("CRUS_SP: (send_delta) module = 0x%08x, port = 0x%08x\n", + pr_debug("CRUS_SP: (send_delta) module = 0x%08x, port = 0x%08x\n", module, port); if (length > APR_CHUNK_SIZE) @@ -655,7 +655,7 @@ int msm_routing_cirrus_fbport_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { this_ctrl.fb_port_index = ucontrol->value.integer.value[0]; - pr_info("%s: %d\n", __func__, this_ctrl.fb_port); + pr_debug("%s: %d\n", __func__, this_ctrl.fb_port); switch (this_ctrl.fb_port_index) { case 0: @@ -705,7 +705,7 @@ static int msm_routing_crus_sp_enable_put(struct snd_kcontrol *kcontrol, static int msm_routing_crus_sp_enable_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { - pr_info("%s: %d\n", __func__, this_ctrl.enable); + pr_debug("%s: %d\n", __func__, this_ctrl.enable); ucontrol->value.integer.value[0] = this_ctrl.enable; return 0; @@ -774,7 +774,7 @@ static int msm_routing_crus_sp_usecase_put(struct snd_kcontrol *kcontrol, static int msm_routing_crus_sp_usecase_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { - pr_info("%s: %d\n", __func__, this_ctrl.usecase); + pr_debug("%s: %d\n", __func__, this_ctrl.usecase); ucontrol->value.integer.value[0] = this_ctrl.usecase; return 0; @@ -803,7 +803,7 @@ static int msm_routing_crus_load_config_put(struct snd_kcontrol *kcontrol, return -EINVAL; } - pr_info("CRUS_SP: Sending RX config...\n"); + pr_debug("CRUS_SP: Sending RX config...\n"); crus_afe_send_config(firmware->data, firmware->size, this_ctrl.ff_port, CIRRUS_SP); @@ -821,7 +821,7 @@ static int msm_routing_crus_load_config_put(struct snd_kcontrol *kcontrol, return -EINVAL; } - pr_info("CRUS_SP: Sending TX config...\n"); + pr_debug("CRUS_SP: Sending TX config...\n"); crus_afe_send_config(firmware->data, firmware->size, this_ctrl.fb_port, CIRRUS_SP); @@ -865,7 +865,7 @@ static int msm_routing_crus_delta_config_put(struct snd_kcontrol *kcontrol, return -EINVAL; } - pr_info("CRUS_SP: Sending delta config...\n"); + pr_debug("CRUS_SP: Sending delta config...\n"); crus_afe_send_delta(firmware->data, firmware->size); release_firmware(firmware); @@ -997,7 +997,7 @@ static int msm_routing_crus_chan_swap_dur_put(struct snd_kcontrol *kcontrol, } if (crus_set < MIN_CHAN_SWAP_SAMPLES) { - pr_info("CRUS_SP: Received %d, round up to min value %d\n", + pr_debug("CRUS_SP: Received %d, round up to min value %d\n", crus_set, MIN_CHAN_SWAP_SAMPLES); crus_set = MIN_CHAN_SWAP_SAMPLES; } @@ -1134,7 +1134,7 @@ static const struct snd_kcontrol_new crus_no_protect_controls[] = { void msm_crus_pb_add_controls(struct snd_soc_component *component) { if (this_ctrl.usecase_dt_count == 0) - pr_info("CRUS_SP: Usecase config not specified\n"); + pr_debug("CRUS_SP: Usecase config not specified\n"); crus_sp_usecase_enum[0].items = this_ctrl.usecase_dt_count; crus_sp_usecase_enum[0].texts = crus_sp_usecase_dt_text; @@ -1151,7 +1151,7 @@ void msm_crus_pb_add_controls(struct snd_soc_component *component) EXPORT_SYMBOL(msm_crus_pb_add_controls); int crus_afe_port_start(u16 port_id) { - pr_info("%s: 0x%x\n", __func__, port_id); + pr_debug("%s: 0x%x\n", __func__, port_id); #if 0 //CSPL do not be involved in AFE struct snd_kcontrol kcontrol; @@ -1161,7 +1161,7 @@ int crus_afe_port_start(u16 port_id) return 0; this_ctrl.afe_start = true; - pr_info("%s: 0x%x\n", __func__, port_id); + pr_debug("%s: 0x%x\n", __func__, port_id); mutex_lock(&this_ctrl.sp_lock); msm_routing_crus_sp_usecase_get(&kcontrol, @@ -1175,14 +1175,14 @@ 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); + pr_debug("%s: 0x%x\n", __func__, port_id); #if 0 //CSPL do not be involved in AFE if (port_id != this_ctrl.ff_port) return 0; this_ctrl.afe_start = false; - pr_info("%s: 0x%x\n", __func__, port_id); + pr_debug("%s: 0x%x\n", __func__, port_id); #endif return 0; } @@ -1195,7 +1195,7 @@ static long crus_sp_shared_ioctl(struct file *f, unsigned int cmd, uint32_t bufsize = 0, size; void *io_data = NULL; - pr_info("%s\n", __func__); + pr_debug("%s\n", __func__); if (copy_from_user(&size, arg, sizeof(size))) { pr_err("CRUS_SP: copy_from_user (size) failed\n"); @@ -1223,7 +1223,7 @@ static long crus_sp_shared_ioctl(struct file *f, unsigned int cmd, port = this_ctrl.ff_port; break; default: - pr_info("CRUS_SP: Unrecognized port ID (%d)\n", + pr_debug("CRUS_SP: Unrecognized port ID (%d)\n", crus_sp_hdr.module_id); port = this_ctrl.ff_port; } @@ -1254,7 +1254,7 @@ static long crus_sp_shared_ioctl(struct file *f, unsigned int cmd, port = this_ctrl.ff_port; break; default: - pr_info("%s: Unrecognized port ID (%d)\n", __func__, + pr_debug("%s: Unrecognized port ID (%d)\n", __func__, crus_sp_hdr.module_id); port = this_ctrl.ff_port; } @@ -1278,7 +1278,7 @@ exit: static long crus_sp_ioctl(struct file *f, unsigned int cmd, unsigned long arg) { - pr_info("%s\n", __func__); + pr_debug("%s\n", __func__); return crus_sp_shared_ioctl(f, cmd, (void __user *)arg); } @@ -1288,7 +1288,7 @@ static long crus_sp_compat_ioctl(struct file *f, { unsigned int cmd64; - pr_info("%s\n", __func__); + pr_debug("%s\n", __func__); switch (cmd) { case CRUS_SP_IOCTL_GET32: @@ -1473,7 +1473,7 @@ static int msm_cirrus_playback_probe(struct platform_device *pdev) { int i; - pr_info("CRUS_SP: Initializing platform device\n"); + pr_debug("CRUS_SP: Initializing platform device\n"); this_ctrl.usecase_dt_count = of_property_count_strings(pdev->dev.of_node, "usecase-names"); @@ -1496,7 +1496,7 @@ static int msm_cirrus_playback_probe(struct platform_device *pdev) } for (i = 0; i < this_ctrl.usecase_dt_count; i++) - pr_info("CRUS_SP: Usecase[%d] = %s\n", i, + pr_debug("CRUS_SP: Usecase[%d] = %s\n", i, crus_sp_usecase_dt_text[i]); this_ctrl.prot_en = of_property_read_bool(pdev->dev.of_node, @@ -1537,7 +1537,7 @@ struct miscdevice crus_sp_misc = { int __init crus_sp_init(void) { - pr_info("Initializing misc device\n"); + pr_debug("Initializing misc device\n"); atomic_set(&this_ctrl.callback_wait, 0); atomic_set(&this_ctrl.count_wait, 0); mutex_init(&this_ctrl.param_lock); diff --git a/techpack/audio/dsp/q6adm.c b/techpack/audio/dsp/q6adm.c index 9b251d4daa1e..19b90f20b039 100755 --- a/techpack/audio/dsp/q6adm.c +++ b/techpack/audio/dsp/q6adm.c @@ -882,7 +882,7 @@ int crus_adm_set_params(int port_id, int copp_idx, uint32_t module_id, int port_idx; int rc = 0; - pr_info("[CSPL] %s: config: port_idx %d copp_idx %d module 0x%d, len=%d\n", + pr_debug("[CSPL] %s: config: port_idx %d copp_idx %d module 0x%d, len=%d\n", __func__, port_idx, copp_idx,module_id, params_length); port_id = q6audio_convert_virtual_to_portid(port_id); @@ -907,7 +907,7 @@ int crus_adm_set_params(int port_id, int copp_idx, uint32_t module_id, atomic_set(&this_adm.copp.stat[port_idx][copp_idx], -1); - pr_info("[CSPL] %s: config: port_idx %d copp_idx %d copp SR %d, len=%d\n", + pr_debug("[CSPL] %s: config: port_idx %d copp_idx %d copp SR %d, len=%d\n", __func__, port_idx, copp_idx, atomic_read(&this_adm.copp.rate[port_idx][copp_idx]), params_length); @@ -930,7 +930,7 @@ int crus_adm_get_params(int port_id, int copp_idx, uint32_t module_id, int ret = 0; struct param_hdr_v3 param_hdr; - pr_info("[CSPL] %s: Enter, port_id %d, copp_idx %d, len= %d\n", + pr_debug("[CSPL] %s: Enter, port_id %d, copp_idx %d, len= %d\n", __func__, port_id, copp_idx, params_length); memset(¶m_hdr, 0, sizeof(param_hdr)); diff --git a/techpack/audio/dsp/q6afe.c b/techpack/audio/dsp/q6afe.c index 6dcc97cb7c34..e751184c74ee 100755 --- a/techpack/audio/dsp/q6afe.c +++ b/techpack/audio/dsp/q6afe.c @@ -1512,7 +1512,7 @@ static int afe_apr_send_clk_pkt(void *data, wait_queue_head_t *wait) #ifdef CONFIG_MSM_CSPL int afe_apr_send_pkt_crus(void *data, int index, int set) { - pr_info("[CSPL] %s: index = %d, set=%d, data = %p\n", + pr_debug("[CSPL] %s: index = %d, set=%d, data = %p\n", __func__, index, set, data); if (set) @@ -2499,14 +2499,14 @@ static void afe_send_cal_spv4_tx(int port_id) if (afe_spk_prot_prepare(port_id, this_afe.vi_rx_port, AFE_PARAM_ID_SP_V4_VI_CHANNEL_MAP_CFG, &afe_spk_config, sizeof(struct afe_sp_v4_param_vi_channel_map_cfg))) - pr_info("%s: SPKR_CALIB_CHANNEL_MAP_CFG failed\n", + pr_debug("%s: SPKR_CALIB_CHANNEL_MAP_CFG failed\n", __func__); } if (this_afe.cal_data[AFE_FB_SPKR_PROT_CAL] == NULL || this_afe.cal_data[AFE_FB_SPKR_PROT_TH_VI_CAL] == NULL || this_afe.cal_data[AFE_FB_SPKR_PROT_EX_VI_CAL] == NULL) { - pr_info("%s: Returning as no cal data cached\n", __func__); + pr_debug("%s: Returning as no cal data cached\n", __func__); return; } @@ -2555,7 +2555,7 @@ static void afe_send_cal_spv4_tx(int port_id) AFE_PARAM_ID_SP_V4_VI_OP_MODE_CFG, &afe_spk_config, sizeof(struct afe_sp_v4_param_vi_op_mode_cfg))) - pr_info("%s: SPKR_CALIB_VI_PROC_CFG failed\n", + pr_debug("%s: SPKR_CALIB_VI_PROC_CFG failed\n", __func__); size = sizeof(struct afe_sp_v4_param_th_vi_r0t0_cfg) + @@ -2583,7 +2583,7 @@ static void afe_send_cal_spv4_tx(int port_id) if (afe_spk_prot_prepare(port_id, 0, AFE_PARAM_ID_SP_V4_VI_R0T0_CFG, (union afe_spkr_prot_config *)tmp_ptr, size)) - pr_info("%s: th vi ftm cfg failed\n", __func__); + pr_debug("%s: th vi ftm cfg failed\n", __func__); kfree(tmp_ptr); } @@ -2617,7 +2617,7 @@ static void afe_send_cal_spv4_tx(int port_id) if (afe_spk_prot_prepare(port_id, 0, AFE_PARAM_ID_SP_V4_TH_VI_FTM_CFG, (union afe_spkr_prot_config *)tmp_ptr, size)) - pr_info("%s: th vi ftm cfg failed\n", __func__); + pr_debug("%s: th vi ftm cfg failed\n", __func__); kfree(tmp_ptr); this_afe.th_ftm_cfg.mode = MSM_SPKR_PROT_DISABLED; @@ -2650,7 +2650,7 @@ static void afe_send_cal_spv4_tx(int port_id) if (afe_spk_prot_prepare(port_id, 0, AFE_PARAM_ID_SP_V4_TH_VI_V_VALI_CFG, (union afe_spkr_prot_config *)tmp_ptr, size)) - pr_info("%s: th vi v-vali cfg failed\n", __func__); + pr_debug("%s: th vi v-vali cfg failed\n", __func__); kfree(tmp_ptr); this_afe.v_vali_cfg.mode = MSM_SPKR_PROT_DISABLED; @@ -2682,7 +2682,7 @@ static void afe_send_cal_spv4_tx(int port_id) AFE_PARAM_ID_SP_V4_EX_VI_MODE_CFG, &afe_spk_config, sizeof(struct afe_sp_v4_param_ex_vi_mode_cfg))) - pr_info("%s: ex vi mode cfg failed\n", __func__); + pr_debug("%s: ex vi mode cfg failed\n", __func__); ex_vi_ftm_cfg->num_ch = this_afe.num_spkrs; @@ -2695,7 +2695,7 @@ static void afe_send_cal_spv4_tx(int port_id) if (afe_spk_prot_prepare(port_id, 0, AFE_PARAM_ID_SP_V4_EX_VI_FTM_CFG, (union afe_spkr_prot_config *)tmp_ptr, size)) - pr_info("%s: ex vi ftm cfg failed\n", __func__); + pr_debug("%s: ex vi ftm cfg failed\n", __func__); kfree(tmp_ptr); this_afe.ex_ftm_cfg.mode = MSM_SPKR_PROT_DISABLED; } @@ -2883,7 +2883,7 @@ static void afe_send_cal_spv4_rx(int port_id) if (afe_spk_prot_prepare(port_id, 0, AFE_PARAM_ID_SP_V4_OP_MODE, &afe_spk_config, sizeof(union afe_spkr_prot_config))) - pr_info("%s: RX MODE_VI_PROC_CFG failed\n", + pr_debug("%s: RX MODE_VI_PROC_CFG failed\n", __func__); } mutex_unlock(&this_afe.cal_data[AFE_FB_SPKR_PROT_CAL]->lock); @@ -2997,7 +2997,7 @@ static int afe_send_hw_delay(u16 port_id, u32 rate) __func__, port_id, ret); fail_cmd: - pr_info("%s: port_id 0x%x rate %u delay_usec %d status %d\n", + pr_debug("%s: port_id 0x%x rate %u delay_usec %d status %d\n", __func__, port_id, rate, delay_entry.delay_usec, ret); return ret; } @@ -3021,7 +3021,7 @@ static struct cal_block_data *afe_find_cal_topo_id_by_port( /* Skip cal_block if it is already marked stale */ if (cal_utils_is_cal_stale(cal_block)) continue; - pr_info("%s: port id: 0x%x, dev_acdb_id: %d\n", __func__, + pr_debug("%s: port id: 0x%x, dev_acdb_id: %d\n", __func__, port_id, this_afe.dev_acdb_id[afe_port_index]); path = ((afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_TX)?(TX_DEVICE):(RX_DEVICE)); @@ -3031,14 +3031,14 @@ static struct cal_block_data *afe_find_cal_topo_id_by_port( if (this_afe.dev_acdb_id[afe_port_index] > 0) { if (afe_top->acdb_id == this_afe.dev_acdb_id[afe_port_index]) { - pr_info("%s: top_id:%x acdb_id:%d afe_port_id:0x%x\n", + pr_debug("%s: top_id:%x acdb_id:%d afe_port_id:0x%x\n", __func__, afe_top->topology, afe_top->acdb_id, q6audio_get_port_id(port_id)); return cal_block; } } else { - pr_info("%s: top_id:%x acdb_id:%d afe_port:0x%x\n", + pr_debug("%s: top_id:%x acdb_id:%d afe_port:0x%x\n", __func__, afe_top->topology, afe_top->acdb_id, q6audio_get_port_id(port_id)); return cal_block; @@ -3095,7 +3095,7 @@ static int afe_get_cal_topology_id(u16 port_id, u32 *topology_id, *topology_id = (u32)afe_top_info->topology; cal_utils_mark_cal_used(cal_block); - pr_info("%s: port_id = 0x%x acdb_id = %d topology_id = 0x%x cal_type_index=%d ret=%d\n", + pr_debug("%s: port_id = 0x%x acdb_id = %d topology_id = 0x%x cal_type_index=%d ret=%d\n", __func__, port_id, afe_top_info->acdb_id, afe_top_info->topology, cal_type_index, ret); unlock: @@ -3123,7 +3123,7 @@ static int afe_send_port_topology_id(u16 port_id) ret = afe_get_cal_topology_id(port_id, &topology_id, AFE_TOPOLOGY_CAL); if (ret < 0 && q6afe_is_afe_lsm_port(port_id)) { if (port_id >= AFE_PORT_ID_VA_CODEC_DMA_TX_0 && port_id <= AFE_PORT_ID_VA_CODEC_DMA_TX_2) { - pr_info("%s: Check for LSM topology\n", __func__); + pr_debug("%s: Check for LSM topology\n", __func__); ret = afe_get_cal_topology_id(port_id, &topology_id, AFE_LSM_TOPOLOGY_CAL); } @@ -3154,7 +3154,7 @@ static int afe_send_port_topology_id(u16 port_id) this_afe.topology[index] = topology_id; rtac_update_afe_topology(port_id); done: - pr_info("%s: AFE set topology id 0x%x enable for port 0x%x ret %d\n", + pr_debug("%s: AFE set topology id 0x%x enable for port 0x%x ret %d\n", __func__, topology_id, port_id, ret); return ret; @@ -3391,7 +3391,7 @@ static struct cal_block_data *afe_find_cal(int cal_index, int port_id) struct audio_cal_info_afe *afe_cal_info = NULL; int afe_port_index = q6audio_get_port_index(port_id); - pr_info("%s: cal_index %d port_id 0x%x port_index %d\n", __func__, + pr_debug("%s: cal_index %d port_id 0x%x port_index %d\n", __func__, cal_index, port_id, afe_port_index); if (afe_port_index < 0) { pr_err("%s: Error getting AFE port index %d\n", @@ -3403,7 +3403,7 @@ static struct cal_block_data *afe_find_cal(int cal_index, int port_id) &this_afe.cal_data[cal_index]->cal_blocks) { cal_block = list_entry(ptr, struct cal_block_data, list); afe_cal_info = cal_block->cal_info; - pr_info("%s: acdb_id %d dev_acdb_id %d sample_rate %d afe_sample_rates %d\n", + pr_debug("%s: acdb_id %d dev_acdb_id %d sample_rate %d afe_sample_rates %d\n", __func__, afe_cal_info->acdb_id, this_afe.dev_acdb_id[afe_port_index], afe_cal_info->sample_rate, @@ -3412,12 +3412,12 @@ static struct cal_block_data *afe_find_cal(int cal_index, int port_id) this_afe.dev_acdb_id[afe_port_index]) && (afe_cal_info->sample_rate == this_afe.afe_sample_rates[afe_port_index])) { - pr_info("%s: cal block is a match, size is %zd\n", + pr_debug("%s: cal block is a match, size is %zd\n", __func__, cal_block->cal_data.size); goto exit; } } - pr_info("%s: no matching cal_block found\n", __func__); + pr_debug("%s: no matching cal_block found\n", __func__); cal_block = NULL; exit: @@ -3430,7 +3430,7 @@ static int send_afe_cal_type(int cal_index, int port_id) int ret; int afe_port_index = q6audio_get_port_index(port_id); - pr_info("%s: cal_index is %d\n", __func__, cal_index); + pr_debug("%s: cal_index is %d\n", __func__, cal_index); if (this_afe.cal_data[cal_index] == NULL) { pr_warn("%s: cal_index %d not allocated!\n", @@ -3447,7 +3447,7 @@ static int send_afe_cal_type(int cal_index, int port_id) } mutex_lock(&this_afe.cal_data[cal_index]->lock); - pr_info("%s: dev_acdb_id[%d] is %d\n", + pr_debug("%s: dev_acdb_id[%d] is %d\n", __func__, afe_port_index, this_afe.dev_acdb_id[afe_port_index]); if (((cal_index == AFE_COMMON_RX_CAL) || @@ -3465,7 +3465,7 @@ static int send_afe_cal_type(int cal_index, int port_id) goto unlock; } - pr_info("%s: Sending cal_index cal %d\n", __func__, cal_index); + pr_debug("%s: Sending cal_index cal %d\n", __func__, cal_index); ret = remap_cal_data(cal_block, cal_index); if (ret) { @@ -5407,7 +5407,7 @@ static int __afe_port_start(u16 port_id, union afe_port_config *afe_config, port_id = VIRTUAL_ID_TO_PORTID(port_id); } - pr_info("%s: port id: 0x%x\n", __func__, port_id); + pr_debug("%s: port id: 0x%x\n", __func__, port_id); index = q6audio_get_port_index(port_id); if (index < 0 || index >= AFE_MAX_PORTS) { @@ -7629,7 +7629,7 @@ static struct dentry *debugfs_afelb_gain; static int afe_debug_open(struct inode *inode, struct file *file) { file->private_data = inode->i_private; - pr_info("%s: debug intf %s\n", __func__, (char *) file->private_data); + pr_debug("%s: debug intf %s\n", __func__, (char *) file->private_data); return 0; } @@ -7687,7 +7687,7 @@ static ssize_t afe_debug_write(struct file *filp, if (!strcmp(lb_str, "afe_loopback")) { rc = afe_get_parameters(lbuf, param, 3); if (!rc) { - pr_info("%s: %lu %lu %lu\n", lb_str, param[0], param[1], + pr_debug("%s: %lu %lu %lu\n", lb_str, param[0], param[1], param[2]); if ((param[0] != AFE_LOOPBACK_ON) && (param[0] != @@ -7716,7 +7716,7 @@ static ssize_t afe_debug_write(struct file *filp, } else if (!strcmp(lb_str, "afe_loopback_gain")) { rc = afe_get_parameters(lbuf, param, 2); if (!rc) { - pr_info("%s: %s %lu %lu\n", + pr_debug("%s: %s %lu %lu\n", __func__, lb_str, param[0], param[1]); rc = q6audio_validate_port(param[0]); @@ -8528,7 +8528,7 @@ int afe_close(int port_id) ret = -EINVAL; goto fail_cmd; } - pr_info("%s: port_id = 0x%x\n", __func__, port_id); + pr_debug("%s: port_id = 0x%x\n", __func__, port_id); if ((port_id == RT_PROXY_DAI_001_RX) || (port_id == RT_PROXY_DAI_002_TX)) { pr_debug("%s: before decrementing pcm_afe_instance %d\n", @@ -9661,7 +9661,7 @@ static int afe_spv4_get_calib_data( } memcpy(&calib_resp->res_cfg, &this_afe.spv4_calib_data.res_cfg, sizeof(this_afe.calib_data.res_cfg)); - pr_info("%s: state %s resistance %d %d\n", __func__, + pr_debug("%s: state %s resistance %d %d\n", __func__, fbsp_state[calib_resp->res_cfg.th_vi_ca_state], calib_resp->res_cfg.r0_cali_q24[SP_V2_SPKR_1], calib_resp->res_cfg.r0_cali_q24[SP_V2_SPKR_2]); @@ -9700,7 +9700,7 @@ int afe_spk_prot_get_calib_data(struct afe_spkr_prot_get_vi_calib *calib_resp) } memcpy(&calib_resp->res_cfg, &this_afe.calib_data.res_cfg, sizeof(this_afe.calib_data.res_cfg)); - pr_info("%s: state %s resistance %d %d\n", __func__, + pr_debug("%s: state %s resistance %d %d\n", __func__, fbsp_state[calib_resp->res_cfg.th_vi_ca_state], calib_resp->res_cfg.r0_cali_q24[SP_V2_SPKR_1], calib_resp->res_cfg.r0_cali_q24[SP_V2_SPKR_2]); diff --git a/techpack/audio/include/elliptic/elliptic_device.h b/techpack/audio/include/elliptic/elliptic_device.h index 6a9886ada24c..ba141b14445c 100644 --- a/techpack/audio/include/elliptic/elliptic_device.h +++ b/techpack/audio/include/elliptic/elliptic_device.h @@ -45,10 +45,10 @@ extern struct class *elliptic_class; pr_err("[ELUS] : (%s) : " string "\n", __func__, ##arg) #define EL_PRINT_W(string, arg...) \ - pr_warn("[ELUS] : (%s) : " string "\n", __func__, ##arg) + pr_debug("[ELUS] : (%s) : " string "\n", __func__, ##arg) #define EL_PRINT_I(string, arg...) \ - pr_info("[ELUS] : (%s) : " string "\n", __func__, ##arg) + pr_debug("[ELUS] : (%s) : " string "\n", __func__, ##arg) #define EL_PRINT_D(string, arg...) \ pr_debug("[ELUS] : (%s) : " string "\n", __func__, ##arg)