From 33601898ddd5976a66c81db69505101222b5af41 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Sat, 29 Jul 2023 17:33:24 +0200
Subject: [PATCH 367/484] 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 cbd727bf5241..7b8e6a95aed0 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -2951,6 +2951,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.49.0

