Explorar o código

ALSA: hda - Use get_wcaps_type()

Replace the open-code with get_wcaps_type() macro.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai %!s(int64=14) %!d(string=hai) anos
pai
achega
1682c81746
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      sound/pci/hda/patch_cirrus.c

+ 1 - 2
sound/pci/hda/patch_cirrus.c

@@ -349,8 +349,7 @@ static hda_nid_t get_adc(struct hda_codec *codec, hda_nid_t pin,
 		hda_nid_t pins[2];
 		unsigned int type;
 		int j, nums;
-		type = (get_wcaps(codec, nid) & AC_WCAP_TYPE)
-			>> AC_WCAP_TYPE_SHIFT;
+		type = get_wcaps_type(get_wcaps(codec, nid));
 		if (type != AC_WID_AUD_IN)
 			continue;
 		nums = snd_hda_get_connections(codec, nid, pins,