From: Elinor Montmasson elinor.montmasson@savoirfairelinux.com
Add new optional dts property "cpu-slot-num", which allows to set a custom number of TDM slots for the CPU DAI when using the dummy codec.
Signed-off-by: Elinor Montmasson elinor.montmasson@savoirfairelinux.com Co-authored-by: Philip-Dylan Gleonec philip-dylan.gleonec@savoirfairelinux.com --- sound/soc/fsl/fsl-asoc-card.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 12d01970850d..66bcb6aa498a 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -722,6 +722,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) priv->card.dapm_routes = NULL; priv->card.num_dapm_routes = 0; of_property_read_u32(np, "cpu-slot-width", &priv->cpu_priv.slot_width); + of_property_read_u32(np, "cpu-slot-num", &priv->cpu_priv.slot_num); } else { dev_err(&pdev->dev, "unknown Device Tree compatible\n"); ret = -EINVAL;