summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-06-09 08:22:26 +0300
committerTakashi Iwai <tiwai@suse.de>2015-06-09 08:22:26 +0300
commit8654844cf51d434dad5d4d9f48dc99d1ac89aad7 (patch)
treece1ad2eb865c6f5e15b4f7f119e05e439d675a53 /sound/pci/hda/hda_codec.c
parent01ec65c812ef829c815d2f37a97cc4eb7925f8ae (diff)
parent132bd96bc56f9cafd24b71de389984d0e83a0956 (diff)
downloadlinux-8654844cf51d434dad5d4d9f48dc99d1ac89aad7.tar.xz
Merge branch 'for-linus' into for-next
Resolve the non-trivial conflict due to the hdac regmap API changes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 54380ed03697..938ee4a6bd3a 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -436,8 +436,9 @@ static unsigned int get_num_devices(struct hda_codec *codec, hda_nid_t nid)
get_wcaps_type(wcaps) != AC_WID_PIN)
return 0;
- if (_snd_hdac_read_parm(&codec->core, nid, AC_PAR_DEVLIST_LEN, &parm))
- return 0; /* error */
+ parm = snd_hdac_read_parm_uncached(&codec->core, nid, AC_PAR_DEVLIST_LEN);
+ if (parm == -1)
+ parm = 0;
return parm & AC_DEV_LIST_LEN_MASK;
}