ASoC: rt5670: Add IRQ function

This patch adds the IRQ function support of rt5670. We use a flag
named dev_gpio in platform data to inform codec driver if the IRQ
function is used or not. Also, we export rt5670_set_jack_detect
for machine driver to pass the jack point.

Signed-off-by: Bard Liao <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
Bard Liao 2015-03-11 11:42:44 +08:00 • committed by Mark Brown
commit d3ef705434
3 changed files with 179 additions and 2 deletions

View file

@ -14,6 +14,7 @@
struct rt5670_platform_data {
int jd_mode;
bool in2_diff;
bool dev_gpio;
bool dmic_en;
unsigned int dmic1_data_pin;