• Takashi Iwai's avatar
    ALSA: hda - Clean up jackpoll_ms option handling · 3a182c84
    Takashi Iwai authored
    Currently the jackpoll_ms option value is passed indirectly by
    referring to an array in chip->jackpoll_ms although each card needs to
    see only the assigned value.  Also, the sanity check is done at each
    time in get_jackpoll_interval() although basically jackpoll_ms option
    is a read-only, hence we need to evaluate only once at probe time.
    
    This patch is the code simplification about the above points: the jack
    polling interval is directly set to chip->jackpoll_interval so that it
    can be simply copied to each codec.
    
    No functional change but only code reduction.
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    3a182c84
hda_intel.c 73.4 KB