Skip to content

Commit

Permalink
ASoC: simple-card: tidyup cpu/codec dai_fmt settings for non-DT
Browse files Browse the repository at this point in the history
30d0341
(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>
  • Loading branch information
morimoto authored and broonie committed Mar 5, 2014
1 parent f687d90 commit 81985bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/generic/simple-card.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit 81985bd

Please sign in to comment.