Skip to content

Commit ac2bd37

Browse files
committed
codec : update something not that import
1 parent 8469a08 commit ac2bd37

File tree

4 files changed

+10
-47
lines changed

4 files changed

+10
-47
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,25 @@ Codes test on the kernel version below
1717

1818
[I2C](./debug/i2c/README.md)
1919

20-
[REGULATOR (ACT8846 PMU)](./debug/regulator/README.md)
20+
[Regulator (ACT8846, RK818)](./debug/regulator/README.md)
2121

22-
[REGULATOR (RK818 PMU)](./debug/regulator/README.md)
22+
[Platform_Driver_Test](./debug/platform_driver_test/README.md)
2323

24-
[PLATFORM_DRIVER_TEST](./debug/platform_driver_test/README.md)
24+
[PWM Backlight](./debug/pwm/README.md)
2525

26-
[PWM BACKLIGHT](./debug/pwm/README.md)
26+
[Regmap](./debug/regmap/README.md)
2727

28-
[REGMAP](./debug/regmap/README.md)
28+
[Audio (ES8323, ES8316)](./debug/codec/README.md)
2929

30-
[AUDIO (ES8323)](./debug/codec/README.md)
30+
[Timer](./debug/timer/README.md)
3131

32-
[TIMER](./debug/timer/README.md)
32+
[Timer And Workqueue](./debug/timer_workq/README.md)
3333

34-
[TIMER AND WORKQUEUE](./debug/timer_workq/README.md)
34+
[Workqueue](./debug/workqueue/README.md)
3535

36-
[WORKQUEUE](./debug/workqueue/README.md)
36+
[Notify](./debug/notify_chain/README.md)
3737

38-
[NOTIFY](./debug/notify_chain/README.md)
39-
40-
[SCRIPT](./script/README.md)
38+
[Script](./script/README.md)
4139

4240
# 使用方法(单独编译模块)或者放到内核目录中编译
4341

debug/codec/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
spk-con-gpio = <&gpio7 GPIO_B7 GPIO_ACTIVE_HIGH>;
2222
hp-con-gpio = <&gpio0 GPIO_B5 GPIO_ACTIVE_HIGH>;
2323
hp-det-gpio = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
24-
hub_rest = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>;
25-
hub_en = <&gpio7 GPIO_B2 GPIO_ACTIVE_HIGH>;
2624
};
2725
};
2826

debug/codec/es8323.c

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,6 @@ void es8323_i2c_shutdown(struct i2c_client *client)
643643
*/
644644
int gpio_setup(struct es8323_chip *chip, struct i2c_client *client)
645645
{
646-
int hub_rest = -1;
647-
int hub_en = -1;
648646
int ret = 0;
649647
enum of_gpio_flags flags;
650648

@@ -705,35 +703,6 @@ int gpio_setup(struct es8323_chip *chip, struct i2c_client *client)
705703
gpio_direction_input(chip->hp_det_gpio);
706704
}
707705

708-
hub_en = of_get_named_gpio_flags(client->dev.of_node, "hub_en", 0, &flags);
709-
if (hub_en > 0)
710-
{
711-
printk("request gpio%d for hub enable gpio\n", hub_en);
712-
ret = devm_gpio_request(chip->dev, hub_en, "hub_en");
713-
if (ret != 0)
714-
{
715-
printk("%s request hub en error", __func__);
716-
return ret;
717-
}
718-
gpio_direction_output(hub_en, 1);
719-
msleep(10);
720-
}
721-
722-
hub_rest = of_get_named_gpio_flags(client->dev.of_node, "hub_rest", 0, &flags);
723-
if (hub_rest > 0)
724-
{
725-
printk("request gpio%d for hub reset gpio\n", hub_rest);
726-
ret = devm_gpio_request(chip->dev, hub_rest, "hub_reset");
727-
if (ret != 0)
728-
{
729-
printk("%s request hub rst error", __func__);
730-
return ret;
731-
}
732-
gpio_direction_output(hub_rest, 0);
733-
msleep(20);
734-
gpio_set_value(hub_rest, 1);
735-
}
736-
737706
return 0;
738707
}
739708

debug/codec/es8323.dtsi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,5 @@ es8323: es8323@10 {
1818
spk-con-gpio = <&gpio7 GPIO_B7 GPIO_ACTIVE_HIGH>;
1919
hp-con-gpio = <&gpio0 GPIO_B5 GPIO_ACTIVE_HIGH>;
2020
hp-det-gpio = <&gpio7 GPIO_A4 GPIO_ACTIVE_HIGH>;
21-
hub_rest = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>;
22-
hub_en = <&gpio7 GPIO_B2 GPIO_ACTIVE_HIGH>;
2321
};
2422
};

0 commit comments

Comments
 (0)