Skip to content

Commit

Permalink
sound/soc/adi/adrv936x_box: ADAU1761 configure MICBIAS voltage
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
  • Loading branch information
mhennerich committed Aug 8, 2017
1 parent 7fb824a commit abf66b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sound/soc/adi/adrv936x_box.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <sound/soc.h>

#include "../codecs/ts3a227e.h"
#include "../codecs/adau17x1.h"

static struct snd_soc_jack headset_jack;

Expand Down Expand Up @@ -224,6 +225,12 @@ static int asoc_simple_card_dai_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_jack_add_gpios(&simple_card_mic_jack, 1,
&simple_card_mic_jack_gpio);
}

adau17x1_set_micbias_voltage(rtd->codec,
ADAU17X1_MICBIAS_0_65_AVDD);

snd_soc_dapm_force_enable_pin(&rtd->card->dapm, "MICBIAS");

return 0;
}

Expand Down

0 comments on commit abf66b5

Please sign in to comment.