/* Parse the pin default config value and returns the string of the jack type, i.e. the purpose of the jack, such as Line-Out or CD.  */
const char* snd_hda_get_jack_type(u32 cfg)
/* Parse the pin default config value and returns the string of the jack type, i.e. the purpose of the jack, such as Line-Out or CD.  */
const char* snd_hda_get_jack_type(u32 cfg)
{
	static char *jack_types[16] = {
		"Line Out", "Speaker", "HP Out", "CD",
		"SPDIF Out", "Digital Out", "Modem Line", "Modem Hand",
		"Line In", "Aux", "Mic", "Telephony",
		"SPDIF In", "Digitial In", "Reserved", "Other"
	};
	return jack_types[(cfg & AC_DEFCFG_DEVICE)
				>> AC_DEFCFG_DEVICE_SHIFT];
}