/* Configure GPIOx as CMOS */
snd_hda_codec_write(codec, fg, 0, 0x7e7, 0);
- snd_hda_codec_write(codec, fg, 0,
- AC_VERB_SET_GPIO_MASK, gpiomask);
- snd_hda_codec_write_sync(codec, fg, 0,
- AC_VERB_SET_GPIO_DIRECTION, gpiodir); /* sync */
-
- msleep(1);
-
- snd_hda_codec_write_sync(codec, fg, 0,
- AC_VERB_SET_GPIO_DATA, gpiostate); /* sync */
+ snd_hda_codec_set_gpio(codec, gpiomask, gpiodir, gpiostate, 1);
}
/* hook for controlling mic-mute LED GPIO */