From 6ede74ac1a8f2f2ad447e5ce81ba9697ea2d1bfd Mon Sep 17 00:00:00 2001 From: Mengdong Lin Date: Fri, 10 Aug 2012 14:11:58 +0200 Subject: [PATCH] --- yaml --- r: 321907 b: refs/heads/master c: e037cb4a54e26b5f55f856e0e7445cfcfb2f3d31 h: refs/heads/master i: 321905: 42c26fb3f1244d0b0258b11582d34cc050dc8381 321903: a82e56a3dc48e50d7af8646d6d6b7d5bd88af580 v: v3 --- [refs] | 2 +- trunk/sound/pci/hda/hda_codec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index cc79e53b0128..2512f555ce4d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 14bc9c6dc694e2d7930802f7afd275de25ef8394 +refs/heads/master: e037cb4a54e26b5f55f856e0e7445cfcfb2f3d31 diff --git a/trunk/sound/pci/hda/hda_codec.c b/trunk/sound/pci/hda/hda_codec.c index 88a9c20eb7a2..629131ad7b8b 100644 --- a/trunk/sound/pci/hda/hda_codec.c +++ b/trunk/sound/pci/hda/hda_codec.c @@ -3497,7 +3497,7 @@ static bool snd_hda_codec_get_supported_ps(struct hda_codec *codec, hda_nid_t fg { int sup = snd_hda_param_read(codec, fg, AC_PAR_POWER_STATE); - if (sup < 0) + if (sup == -1) return false; if (sup & power_state) return true;