[PATCH 11/16] ASoC: tas2781: use 0 as default prog/conf index

From: Gergo Koteles
Date: Wed Dec 06 2023 - 19:05:08 EST


Invalid indexes are not the best default values.

Signed-off-by: Gergo Koteles <soyer@xxxxxx>
---
sound/soc/codecs/tas2781-comlib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/tas2781-comlib.c b/sound/soc/codecs/tas2781-comlib.c
index f914123c7284..635f97db033b 100644
--- a/sound/soc/codecs/tas2781-comlib.c
+++ b/sound/soc/codecs/tas2781-comlib.c
@@ -307,8 +307,8 @@ int tasdevice_init(struct tasdevice_priv *tas_priv)
goto out;
}

- tas_priv->cur_prog = -1;
- tas_priv->cur_conf = -1;
+ tas_priv->cur_prog = 0;
+ tas_priv->cur_conf = 0;

for (i = 0; i < tas_priv->ndev; i++) {
tas_priv->tasdevice[i].cur_book = -1;
--
2.43.0