dts: m400: audio: disable i2sclk disable on startup

PD#141217: audio: fix M400 board noise when device startup

Change-Id: I7030a2648df5e49580d72eaa784fe2c3d0bbdc81
Signed-off-by: Peipeng Zhao <peipeng.zhao@amlogic.com>
This commit is contained in:
Peipeng Zhao
2017-06-06 13:51:58 +08:00
committed by Victor Wan
parent f8a52fe548
commit b020e59c86
3 changed files with 7 additions and 3 deletions

View File

@@ -522,6 +522,7 @@
mute_gpio-gpios = <&gpio GPIOH_5 0>;
mute_inv;
hp_disable;
i2sclk_disable_startup;
hp_paraments = <800 300 0 5 1>;
pinctrl-names = "aml_audio_i2s";
pinctrl-0 = <&audio_i2s_pins>;

View File

@@ -269,6 +269,7 @@ CONFIG_AMLOGIC_SND_CODEC_AMLT9015=y
CONFIG_AMLOGIC_SND_CODEC_PMU3=y
CONFIG_AMLOGIC_SND_SOC=y
CONFIG_AMLOGIC_SND_SPLIT_MODE=y
CONFIG_AMLOGIC_SND_SOC_MESON=y
CONFIG_USB_HIDDEV=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

View File

@@ -68,7 +68,6 @@ static void aml_i2s_play(void)
audio_out_i2s_enable(1);
}
static void aml_audio_start_timer(struct aml_audio_private_data *p_aml_audio,
unsigned long delay)
{
@@ -764,8 +763,11 @@ static int aml_audio_probe(struct platform_device *pdev)
goto err;
}
aml_i2s_play();
ret = of_property_read_bool(np, "i2sclk_disable_startup");
if (!ret) {
pr_info("enable i2sclk in startup\n");
aml_i2s_play();
}
p_aml_audio->data = (void *)card;
INIT_WORK(&p_aml_audio->pinmux_work, aml_pinmux_work_func);
schedule_work(&p_aml_audio->pinmux_work);