From: Lu Guanqun Date: Wed, 6 Apr 2011 15:25:11 +0000 (+0800) Subject: ASoC: check channel mismatch between cpu_dai and codec_dai X-Git-Tag: v2.6.39-rc5~21^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b04cfcf70b35e032071a6b482273cc642675c8e4;p=pandora-kernel.git ASoC: check channel mismatch between cpu_dai and codec_dai Suppose we have: cpu_dai channels_min = 1 channels_max = 1 codec_dai channels_min = 2 channels_max = 2 This is a mismatch that should not happen, however according to the current code, the result of runtime->hw will be: channels_min = 2 channels_max = 1 We better spot it early. This patch checks this mismatch. Signed-off-by: Lu Guanqun Signed-off-by: Mark Brown --- Reading git-diff-tree failed