]> 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)
commit67d7da0805280291e6662cb043faa61e3153e2ed
tree8a3a51fa48599e700fdc580e78d66125bbec9f92
parentd7847e355a2d9c0bc741acbc9464cd1669394578
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