Input/output names for SoC-integrated audio adapters doesn't get localizad
Hello!
I noticed that input/output names SoC-integrated audio adapters doesn't get localized in Gnome Control Center. Few examples below:
Dell Venue 8 Pro 5855: "Speaker", "MonoSpeaker", "Headphones", "DMIC1 Internal Microphones", "DMIC2 Internal Microphones", "Headset mic" is listed (rt5670 and cht-bsw-rt5672 drivers) but "Speaker" and "DMIC1 Internal Microphones" never works. Dell Venue 11 Pro 7140: "Speaker playback", "Headphones playback", and "Main Microphone" (rt286 and broadwell-audio drivers). HP Stream 7 Tablet: "MonoSpeaker", "Headphones" and "Internal Microphone on IN3" (bytcr-rt5640 driver). HP Pro Tablet 608 G1: "Speaker", "Headphones", "Internal Microphone" and "Headset Microphone" (cx2072x driver). Lenovo Miix 320-10IRC: "Speaker", "Headphones" and "Internal Microphone" (rt5645 and cht-bsw-rt5645 drivers). And another stand out example with similar issue is Dell WD15 docking station: "Headphone", "Line Out", "Microphone".
So there is "Speaker", "MonoSpeaker" and "Speaker playback" for speaker, "Headphone", "Headphones" and "Headphones playback" for headphones, "Internal Microphone", "Internal Microphone on IN1", "Internal Microphone on IN3", "DMIC1 Internal Microphones", "DMIC2 Internal Microphones", "Headset mic", "Headset Microphone" and "Main Microphone" for microphones.
Unlike localized names for HD-Audio audio adapters, all names from the list above is always displayed in English on non-English installations because this names is coming from alsa-lib UCM configuration files. I don't think this is critical from localization point of view, but this definitely makes Gnome look less polished, as for example Windows face same issue (as I can see on Lenovo Yoga C630 WOS with "Speakers" as audio output name in Russian version of the OS) yet they apply localization strings to wide range of drivers for SoC-integrated audio adapters, so inputs/outputs appear with localized names to user on most of devices (as I can see on BayTrail/CherryTrail-based laptops and tablets).
I see different ways of resolving this. For instance, it should be relatively easy to fetch all possible input/output names from alsa-lib UCM configs, and add quirks to Gnome Control Center to map names from UCM to regular "Speaker", "Headphones", "Line Out", etc. localization strings. However, I think names in UCM configs should be unified first, to make localization easier, as I guess there is no reason to use two different names for "Headset mic" and "Headset Microphone", and three different names for "Headphone", "Headphones" and "Headphones playback", etc.