switch (ca0132_quirk(spec)) {
case QUIRK_SBZ:
- snd_hda_codec_write(codec, 0x01, 0,
- AC_VERB_SET_GPIO_DIRECTION, 0x07);
- snd_hda_codec_write(codec, 0x01, 0,
- AC_VERB_SET_GPIO_MASK, 0x07);
- snd_hda_codec_write(codec, 0x01, 0,
- AC_VERB_SET_GPIO_DATA, 0x04);
+ snd_hda_codec_set_gpio(codec, 0x07, 0x07, 0x04, 0);
snd_hda_codec_write(codec, 0x01, 0,
AC_VERB_SET_GPIO_DATA, 0x06);
break;
case QUIRK_R3DI:
- snd_hda_codec_write(codec, 0x01, 0,
- AC_VERB_SET_GPIO_DIRECTION, 0x1E);
- snd_hda_codec_write(codec, 0x01, 0,
- AC_VERB_SET_GPIO_MASK, 0x1F);
- snd_hda_codec_write(codec, 0x01, 0,
- AC_VERB_SET_GPIO_DATA, 0x0C);
+ snd_hda_codec_set_gpio(codec, 0x1F, 0x1E, 0x0C, 0);
break;
default:
break;