ASoC: DaVinci: Fix divide by zero error during 1st execution
authorTroy Kisky <troy.kisky@boundarydevices.com>
Fri, 11 Sep 2009 21:29:02 +0000 (14:29 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 23 Sep 2009 17:08:56 +0000 (10:08 -0700)
commit81ac55aa14c863821248d9e82694c79bb556694d
tree6484713a22832c2557cbdf79901481b80abf3191
parentdf0fd5e5e117329436fdea568455545ca18a71f0
ASoC: DaVinci: Fix divide by zero error during 1st execution

When both playback and capture stream were open
davinci_i2s_hw_params was setting parameters for
the wrong stream. The fix for davinci_i2s_hw_params
is sufficient, but it looks like a race still happens
in davici_pcm_open. This patch also makes the race smaller
but the next patch provides a better fix.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-i2s.c
sound/soc/davinci/davinci-pcm.c