From: Bard Liao Date: Tue, 17 Feb 2015 05:59:26 +0000 (+0800) Subject: ASoC: rt5670: Add disabled item in dmic pin enum X-Git-Tag: omap-for-v4.2/o2_dc~120^2~1^2~13^2~1^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7371bd1f4aeb4e1c44b8c1ba8e36ebba4250b59c;p=pandora-kernel.git ASoC: rt5670: Add disabled item in dmic pin enum Currently, we will configure dmic related pin definition if pdata.dmic_en is true. However, there is no disable option in the enum. So, any dmic is used, all 3 dmic related pins will be configured. It may cause unexpected pin definition. This patch adds a disable item for each dmic enum and take it as default. So the driver will not set the pin configuration if we don't set dmicx_data_pin in platform data. Signed-off-by: Bard Liao Signed-off-by: Mark Brown --- Reading git-diff-tree failed