]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: davinci-mcasp: Fix ruledata setup in davinci_mcasp_startup
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 7 Apr 2015 11:03:53 +0000 (14:03 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 7 Apr 2015 11:05:44 +0000 (12:05 +0100)
commit4cd9db08598454e4d051b818c5f1d61ac7539a47
treebda0bbad6d76044e76e8a714046bf998022a4168
parent7b3d165a282145e605247148d3dec034814e0a78
ASoC: davinci-mcasp: Fix ruledata setup in davinci_mcasp_startup

Passing &mcasp->ruledata[dir] to snd_pcm_hw_rule_add() is not correct since
commit:
7b3d165a2821 ASoC: davinci-mcasp: Index ruledata in drvdata with substream->stream
now sets up the struct based on the substream->stream (0 or 1) while we pass
a pointer which we take with dir (1 or 2). This will lead kernel crash.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c