]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Don't check connection in lowlevel accessors
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 07:50:06 +0000 (08:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 5 Feb 2017 07:47:25 +0000 (08:47 +0100)
commit12035dd99bd6d4ec18faec92679e397af235b748
tree8a3a51fa48599e700fdc580e78d66125bbec9f92
parent5371e95efdd1474da050f2642e8964f690945fa0
ALSA: x86: Don't check connection in lowlevel accessors

The lowlevel register read/write don't have to be careful about the
connection state.  It should be checked in the caller side instead.
By dropping the check, we can simplify the code, and readability.

This patch also refacors the functions slightly: namely,
- drop the useless always-zero return values
- fold the inline functions to the main accessor functions themselves
- move the DP audio hack for AUD_CONFIG to the caller side
- simplify snd_intelhad_eanble_audio() and drop the unused
  had_read_modify()

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c