mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 08:22:39 +00:00
ASoC: simple-card: tidyup cpu/codec dai_fmt settings for non-DT
30d0341e7d
(ASoC: simple-card: simplify the daifmt code)
simplify cpu/codec dai_fmt which consists from
dai specific format + common format.
But, it didn't care about non-DT case.
This patch fixes it
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
f687d900d3
commit
81985bd63f
@ -307,6 +307,9 @@ static int asoc_simple_card_probe(struct platform_device *pdev)
|
||||
sizeof(priv->cpu_dai));
|
||||
memcpy(&priv->codec_dai, &cinfo->codec_dai,
|
||||
sizeof(priv->codec_dai));
|
||||
|
||||
priv->cpu_dai.fmt |= cinfo->daifmt;
|
||||
priv->codec_dai.fmt |= cinfo->daifmt;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user