Commit 0b9751c7 authored by Mark Brown's avatar Mark Brown

ASoC: Intel: Fix build

One of the recently introduced commits hadn't been build tested, fix
that.
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 753597fb
...@@ -722,12 +722,12 @@ static void hdac_hdmi_set_power_state(struct hdac_ext_device *edev, ...@@ -722,12 +722,12 @@ static void hdac_hdmi_set_power_state(struct hdac_ext_device *edev,
unsigned int state; unsigned int state;
if (get_wcaps(&edev->hdev, nid) & AC_WCAP_POWER) { if (get_wcaps(&edev->hdev, nid) & AC_WCAP_POWER) {
if (!snd_hdac_check_power_state(&edev->hdac, nid, pwr_state)) { if (!snd_hdac_check_power_state(&edev->hdev, nid, pwr_state)) {
for (count = 0; count < 10; count++) { for (count = 0; count < 10; count++) {
snd_hdac_codec_read(&edev->hdac, nid, 0, snd_hdac_codec_read(&edev->hdev, nid, 0,
AC_VERB_SET_POWER_STATE, AC_VERB_SET_POWER_STATE,
pwr_state); pwr_state);
state = snd_hdac_sync_power_state(&edev->hdac, state = snd_hdac_sync_power_state(&edev->hdev,
nid, pwr_state); nid, pwr_state);
if (!(state & AC_PWRST_ERROR)) if (!(state & AC_PWRST_ERROR))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment