diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-07-17 14:30:23 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-07-22 09:13:56 +0200 |
commit | 551626ec0ad28dc43cae3094c35be7088cc625ab (patch) | |
tree | f71b904072d30b12cf98f3d28f21202909276791 /sound/pci/es1938.c | |
parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) |
ALSA: hda/hdmi - Don't report spurious jack state changes
The HDMI jack handling reports the state change always via
snd_jack_report() whenever hdmi_present_sense() is called, even if the
state itself doesn't change from the previous time. This is mostly
harmless but still a bit confusing to user-space.
This patch reduces such spurious jack state changes and reports only
when the state really changed. Also, as a minor optimization, avoid
overwriting the pin ELD data when the state is identical.
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/es1938.c')
0 files changed, 0 insertions, 0 deletions