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)
commit83af57dd515cf06883f6e954dd0efa9b15b514a6
tree8a3a51fa48599e700fdc580e78d66125bbec9f92
parent412bbe7d5b8cdb103af82c3616149138c50d1efa
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