Patch "ASoC: qcom: sdm845: set driver name correctly" has been added to the 5.4-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: qcom: sdm845: set driver name correctly

to the 5.4-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-qcom-sdm845-set-driver-name-correctly.patch
and it can be found in the queue-5.4 subdirectory.

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



commit c9baadb941b6cea4d8dfc671ef6ca74913eb4d70
Author: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
Date:   Fri Oct 23 10:58:49 2020 +0100

    ASoC: qcom: sdm845: set driver name correctly
    
    [ Upstream commit 3f48b6eba15ea342ef4cb420b580f5ed6605669f ]
    
    With the current state of code, we would endup with something like
    below in /proc/asound/cards for 2 machines based on this driver.
    
    Machine 1:
     0 [DB845c            ]: DB845c - DB845c
                           DB845c
    Machine 2:
     0 [LenovoYOGAC6301]: Lenovo-YOGA-C63 - Lenovo-YOGA-C630-13Q50
                         LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216
    
    This is not very UCM friendly both w.r.t to common up configs and
    card identification, and UCM2 became totally not usefull with just
    one ucm sdm845.conf for two machines which have different setups
    w.r.t HDMI and other dais.
    
    Reasons for such thing is partly because Qualcomm machine drivers never
    cared to set driver_name.
    
    This patch sets up driver name for the this driver to sort out the
    UCM integration issues!
    
    after this patch contents of /proc/asound/cards:
    
    Machine 1:
     0 [DB845c         ]: sdm845 - DB845c
                          DB845c
    Machine 2:
     0 [LenovoYOGAC6301]: sdm845 - Lenovo-YOGA-C630-13Q50
                         LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216
    
    with this its possible to align with what UCM2 expects and we can have
    sdm845/DB845.conf
    sdm845/LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216.conf
    ... for board variants. This should scale much better!
    
    Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20201023095849.22894-1-srinivas.kandagatla@xxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c
index 7e6c41e63d8e1..23e1de61e92e4 100644
--- a/sound/soc/qcom/sdm845.c
+++ b/sound/soc/qcom/sdm845.c
@@ -16,6 +16,7 @@
 #include "qdsp6/q6afe.h"
 #include "../codecs/rt5663.h"
 
+#define DRIVER_NAME	"sdm845"
 #define DEFAULT_SAMPLE_RATE_48K		48000
 #define DEFAULT_MCLK_RATE		24576000
 #define TDM_BCLK_RATE		6144000
@@ -407,6 +408,7 @@ static int sdm845_snd_platform_probe(struct platform_device *pdev)
 		goto data_alloc_fail;
 	}
 
+	card->driver_name = DRIVER_NAME;
 	card->dapm_widgets = sdm845_snd_widgets;
 	card->num_dapm_widgets = ARRAY_SIZE(sdm845_snd_widgets);
 	card->dev = dev;



[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