Audio: the speaker has "po" noise when bootlogo displayed [1/1]

PD#SWPL-127490

Problem:
the speaker has "po" noise when bootlogo displayed

Solution:
when audio dac init, mute spk pa

Verify:
use txhd2

Change-Id: I641252c2ceccdd11cfcb99d0eedf5d71899a6d38
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
This commit is contained in:
jiebing chen
2023-06-16 13:43:16 +08:00
committed by Qianggui Song
parent fb2b156069
commit 97e393eb00
2 changed files with 7 additions and 1 deletions
@@ -41,6 +41,7 @@
aml-audio-card,name = "AML-AUGESOUND";
/*spk mute gpio*/
spk_mute-gpios = <&gpio GPIODV_6 GPIO_ACTIVE_LOW>;
spk_mute_sleep_time = <800>;
/*avout mute gpio*/
avout_mute-gpios = <&gpio GPIODV_5 GPIO_ACTIVE_HIGH>;
/* headphone insert det */
+6 -1
View File
@@ -968,6 +968,7 @@ static int aml_card_parse_gpios(struct device_node *node,
int gpio;
bool active_low;
unsigned int sleep_time = 500;
unsigned int spk_mute_sleep_time = 200;
gpio = of_get_named_gpio_flags(node, "spk_mute-gpios", 0, &flags);
priv->spk_mute_gpio = gpio;
@@ -986,7 +987,11 @@ static int aml_card_parse_gpios(struct device_node *node,
(active_low) ? GPIOF_OUT_INIT_LOW :
GPIOF_OUT_INIT_HIGH);
} else {
msleep(200);
if (!of_property_read_u32(node,
"spk_mute_sleep_time", &spk_mute_sleep_time))
msleep(spk_mute_sleep_time);
else
msleep(200);
if (!priv->spk_mute_flag)
gpio_set_value(priv->spk_mute_gpio,
(active_low) ? GPIOF_OUT_INIT_HIGH :