audio: Spk_mute has no effect [1/1]
authorShuai Li <shuai.li@amlogic.com>
Mon, 2 Sep 2019 11:10:53 +0000 (19:10 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 3 Sep 2019 05:56:05 +0000 (22:56 -0700)
PD#OTT-6073

Problem:
Spk_mute has no effect.

Solution:
The gpio get function get the wrong name.
After correction, it works good.

Verify:
TM2.

Change-Id: Icf0356ec3238fda6e78e778ebaa812af445ccfd5
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
sound/soc/amlogic/auge/card.c

index d7404bf54ec05bfce66fab2a8d5f54233f573491..a5569c2c047e4f7e024aac5974b321a422ff20f9 100644 (file)
@@ -733,7 +733,7 @@ static int aml_card_parse_gpios(struct device_node *node,
        bool active_low;
        int ret;
 
-       gpio = of_get_named_gpio_flags(node, "spk_mute", 0, &flags);
+       gpio = of_get_named_gpio_flags(node, "spk_mute-gpios", 0, &flags);
        priv->spk_mute_gpio = gpio;
 
        if (gpio_is_valid(gpio)) {