From b1dffdc5f034983c4ae13fa152157c5b5b63ea69 Mon Sep 17 00:00:00 2001 From: "nengwen.chen" Date: Mon, 9 Oct 2023 09:26:52 +0800 Subject: [PATCH] atv_demod: delete debug logs in probe (V3.03) [1/1] PD#SWPL-140739 Problem: delete debug logs in probe. Solution: delete debug logs in probe. AMLATVDEMOD_VER "V3.03". Verify: TXHD2. Change-Id: Iecbd95e7ada3e2ec0d9976caf8a40595a75604f1 Signed-off-by: nengwen.chen --- drivers/media/atv_demod/atv_demod_driver.c | 53 +++++++++------------- 1 file changed, 21 insertions(+), 32 deletions(-) diff --git a/drivers/media/atv_demod/atv_demod_driver.c b/drivers/media/atv_demod/atv_demod_driver.c index 93c47c4f5..32d1b8797 100644 --- a/drivers/media/atv_demod/atv_demod_driver.c +++ b/drivers/media/atv_demod/atv_demod_driver.c @@ -68,7 +68,8 @@ /* 2023/07/04 --- V3.01 --- add afc enable and state IO control. */ /* fix nicam bg output again. */ /* 2023/09/11 --- V3.02 --- Fix afc(+/-2MHz). */ -#define AMLATVDEMOD_VER "V3.02" +/* 2023/10/09 --- V3.03 --- Delete debug logs in probe. */ +#define AMLATVDEMOD_VER "V3.03" struct aml_atvdemod_device *amlatvdemod_devp; @@ -552,23 +553,11 @@ static void aml_atvdemod_dt_parse(struct aml_atvdemod_device *pdev) ret = of_property_read_u32(node, "common_agc", &val); if (ret) { atvdemod_agc_new = 0; - pr_err("can't find common_agc.\n"); + //pr_err("can't find common_agc.\n"); } else { atvdemod_agc_new = val; } - ret = of_property_read_u32(node, "audio_gain_val", &val); - if (ret) - pr_err("can't find audio_gain_val.\n"); - else - set_audio_gain_val(val); - - ret = of_property_read_u32(node, "video_gain_val", &val); - if (ret) - pr_err("can't find video_gain_val.\n"); - else - set_video_gain_val(val); - /* agc pin mux */ ret = of_property_read_string(node, "pinctrl-names", &pdev->pin_name); if (ret) { @@ -673,10 +662,10 @@ static int aml_atvdemod_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); if (!res) { dev->irq = -1; - pr_err("can't get irq resource.\n"); + //pr_err("can't get irq resource.\n"); } else { dev->irq = res->start; - pr_err("get irq resource %d.\n", dev->irq); + //pr_err("get irq resource %d.\n", dev->irq); } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); @@ -695,9 +684,9 @@ static int aml_atvdemod_probe(struct platform_device *pdev) goto fail_get_resource; } - pr_info("demod start = 0x%p, size = 0x%x, base = 0x%p.\n", - (void *) res->start, size_io_reg, - dev->demod_reg_base); + //pr_info("demod start = 0x%p, size = 0x%x, base = 0x%p.\n", + // (void *) res->start, size_io_reg, + // dev->demod_reg_base); res = platform_get_resource(pdev, IORESOURCE_MEM, 1); if (!res) { @@ -713,9 +702,9 @@ static int aml_atvdemod_probe(struct platform_device *pdev) goto fail_get_resource; } - pr_info("hiu start = 0x%p, size = 0x%x, base = 0x%p.\n", - (void *) res->start, size_io_reg, - dev->hiu_reg_base); + //pr_info("hiu start = 0x%p, size = 0x%x, base = 0x%p.\n", + // (void *) res->start, size_io_reg, + // dev->hiu_reg_base); } res = platform_get_resource(pdev, IORESOURCE_MEM, 2); @@ -732,9 +721,9 @@ static int aml_atvdemod_probe(struct platform_device *pdev) /* goto fail_get_resource; */ } - pr_info("periphs start = 0x%p, size = 0x%x, base = 0x%p.\n", - (void *) res->start, size_io_reg, - dev->periphs_reg_base); + //pr_info("periphs start = 0x%p, size = 0x%x, base = 0x%p.\n", + // (void *) res->start, size_io_reg, + // dev->periphs_reg_base); } res = platform_get_resource(pdev, IORESOURCE_MEM, 3); @@ -751,9 +740,9 @@ static int aml_atvdemod_probe(struct platform_device *pdev) goto fail_get_resource; } - pr_info("audiodemod start = 0x%p, size = 0x%x, base = 0x%p.\n", - (void *) res->start, size_io_reg, - dev->audiodemod_reg_base); + //pr_info("audiodemod start = 0x%p, size = 0x%x, base = 0x%p.\n", + // (void *) res->start, size_io_reg, + // dev->audiodemod_reg_base); } /* atv audio source: ATV mono or ADEC, audio select input control */ @@ -761,22 +750,22 @@ static int aml_atvdemod_probe(struct platform_device *pdev) if (is_meson_txlx_cpu() || is_meson_txhd_cpu()) { dev->audio_reg_base = ioremap(round_down(0xffd0d340, 0x3), 4); - pr_info("audio_reg_base = 0x%p.\n", dev->audio_reg_base); + //pr_info("audio_reg_base = 0x%p.\n", dev->audio_reg_base); } else #endif if (is_meson_t3_cpu() || is_meson_t5m_cpu() || is_meson_t3x_cpu()) { dev->audio_reg_base = ioremap(round_down(0xfe33074c, 0x3), 4); - pr_info("audio_reg_base = 0x%p.\n", dev->audio_reg_base); + //pr_info("audio_reg_base = 0x%p.\n", dev->audio_reg_base); } else if (cpu_after_eq(MESON_CPU_MAJOR_ID_TL1)) { dev->audio_reg_base = ioremap(round_down(0xff60074c, 0x3), 4); - pr_info("audio_reg_base = 0x%p.\n", dev->audio_reg_base); + //pr_info("audio_reg_base = 0x%p.\n", dev->audio_reg_base); } else { dev->audio_reg_base = NULL; - pr_info("audio_reg_base = NULL.\n"); + //pr_info("audio_reg_base = NULL.\n"); } aml_atvdemod_dt_parse(dev);