From 89ee4c035940bee63ce18ab3b429f3be270fe624 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Sat, 29 Jul 2023 17:33:24 +0200
Subject: [PATCH 338/463] ASoC: codecs: rt5640: Keep the codec enabled when
 idle

This makes analog audio work even without any i2s streams being enabled.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
 sound/soc/codecs/rt5640.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 0b1308ee8b6e1..96e687401653d 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -2948,6 +2948,8 @@ static const struct snd_soc_component_driver soc_component_dev_rt5640 = {
 	.num_dapm_widgets	= ARRAY_SIZE(rt5640_dapm_widgets),
 	.dapm_routes		= rt5640_dapm_routes,
 	.num_dapm_routes	= ARRAY_SIZE(rt5640_dapm_routes),
+	.suspend_bias_off	= 1,
+	.idle_bias_on		= 1,
 	.use_pmdown_time	= 1,
 	.endianness		= 1,
 };
-- 
2.46.0

