ALSA: hda - Clean up jackpoll_ms option handling
authorTakashi Iwai <tiwai@suse.de>
Thu, 30 Aug 2018 05:58:50 +0000 (07:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Aug 2018 06:05:58 +0000 (08:05 +0200)
commit3a182c848946584a241b4ae220359888bb2f5936
tree66666f675149a0cebb8706b50d72936fb202f466
parent87246f7fd572f9c3db752708730d68cc9eb08d72
ALSA: hda - Clean up jackpoll_ms option handling

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: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c