Patch "ASoC: codecs: lpass-tx-macro: set active_decimator correct default value" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ASoC: codecs: lpass-tx-macro: set active_decimator correct default value

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     asoc-codecs-lpass-tx-macro-set-active_decimator-corr.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 70d12c94b311aa7c500ee9d3934a7308a3b45ee8
Author: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
Date:   Thu Nov 16 17:44:21 2023 +0100

    ASoC: codecs: lpass-tx-macro: set active_decimator correct default value
    
    [ Upstream commit a2f35ed1d237c459100adb0c39bb811d7f170977 ]
    
    The -1 value for active_decimator[dai_id] is considered as "not set",
    but at probe the table is initialized a 0, this prevents enabling the
    DEC0 Mixer since it will be considered as already set.
    
    Initialize the table entries as -1 to fix tx_macro_tx_mixer_put().
    
    Fixes: 1c6a7f5250ce ("ASoC: codecs: tx-macro: fix active_decimator array")
    Fixes: c1057a08af43 ("ASoC: codecs: tx-macro: fix kcontrol put")
    Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20231116-topic-sm8x50-upstream-tx-macro-fix-active-decimator-set-v1-1-6edf402f4b6f@xxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c
index 3e33418898e82..ebddfa74ce0a0 100644
--- a/sound/soc/codecs/lpass-tx-macro.c
+++ b/sound/soc/codecs/lpass-tx-macro.c
@@ -2021,6 +2021,11 @@ static int tx_macro_probe(struct platform_device *pdev)
 
 	tx->dev = dev;
 
+	/* Set active_decimator default value */
+	tx->active_decimator[TX_MACRO_AIF1_CAP] = -1;
+	tx->active_decimator[TX_MACRO_AIF2_CAP] = -1;
+	tx->active_decimator[TX_MACRO_AIF3_CAP] = -1;
+
 	/* set MCLK and NPL rates */
 	clk_set_rate(tx->mclk, MCLK_FREQ);
 	clk_set_rate(tx->npl, MCLK_FREQ);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux