/* Parse the pin default config value and returns the string of the jack connectivity, i.e. external or internal connection.  */
const char* snd_hda_get_jack_connectivity(u32 cfg)
/* Parse the pin default config value and returns the string of the jack connectivity, i.e. external or internal connection.  */
const char* snd_hda_get_jack_connectivity(u32 cfg)
{
	static char *jack_locations[4] = { "Ext", "Int", "Sep", "Oth" };
	return jack_locations[(cfg >> (AC_DEFCFG_LOCATION_SHIFT + 4)) & 3];
}