diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-08-30 07:58:50 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-08-30 08:05:58 +0200 |
commit | 3a182c848946584a241b4ae220359888bb2f5936 (patch) | |
tree | 66666f675149a0cebb8706b50d72936fb202f466 /sound/pci/hda/hda_controller.h | |
parent | 87246f7fd572f9c3db752708730d68cc9eb08d72 (diff) | |
download | lwn-3a182c848946584a241b4ae220359888bb2f5936.tar.gz lwn-3a182c848946584a241b4ae220359888bb2f5936.zip |
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>
Diffstat (limited to 'sound/pci/hda/hda_controller.h')
-rw-r--r-- | sound/pci/hda/hda_controller.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_controller.h b/sound/pci/hda/hda_controller.h index 3c9a2f81cfbf..33b99839753d 100644 --- a/sound/pci/hda/hda_controller.h +++ b/sound/pci/hda/hda_controller.h @@ -121,7 +121,7 @@ struct azx { int capture_streams; int capture_index_offset; int num_streams; - const int *jackpoll_ms; /* per-card jack poll interval */ + int jackpoll_interval; /* jack poll interval in jiffies */ /* Register interaction. */ const struct hda_controller_ops *ops; |