• Takashi Iwai's avatar
    ALSA: hda - Check connectivity for auto-mic of Realtek codecs · b59bdf3b
    Takashi Iwai authored
    Some Realtek codecs don't provide the full connections for certain pins
    from each ADC; e.g. ACL662/ALC272 gives only one of two digital-mic pins
    for each ADC.  Thus, depending on the digital mic pin, the ADC/MUX to be
    used has to be chosen properly.
    
    This patch adds the check of the connectivity of pins at auto-mic mode.
    If no proper connectivity is found, auto_mic flag is turned off to be
    sure.
    
    Also the mux_idx is determined during this check so it won't be checked
    in the unsol event any more.
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    b59bdf3b
patch_realtek.c 571 KB