]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5670: Add disabled item in dmic pin enum
authorBard Liao <bardliao@realtek.com>
Tue, 17 Feb 2015 05:59:26 +0000 (13:59 +0800)
committerMark Brown <broonie@kernel.org>
Sat, 21 Feb 2015 09:30:14 +0000 (18:30 +0900)
commit1c6e3e519f185f714b20a8d50faa2d6c3e9ccbee
tree608fb13f5ed333ed712101962d00d17140148a51
parente716639644c99cea0dd635682be67de26d48dbf6
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 <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5670.h