From: Troy Kisky Date: Fri, 11 Sep 2009 21:29:02 +0000 (-0700) Subject: ASoC: DaVinci: Fix divide by zero error during 1st execution X-Git-Tag: v2.6.32-rc3~9^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81ac55aa14c863821248d9e82694c79bb556694d;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed