Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316118
b: refs/heads/master
c: 0c7f46a
h: refs/heads/master
v: v3
  • Loading branch information
Wang Xingchao authored and Takashi Iwai committed Jun 7, 2012
1 parent 199bd26 commit f6903b1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 167d2d55bfb4628169a57e3adbb1e5b097dca0f5
refs/heads/master: 0c7f46ad927cbd29965d4971730de713b478d270
16 changes: 16 additions & 0 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -3504,6 +3504,22 @@ void snd_hda_codec_set_power_to_all(struct hda_codec *codec, hda_nid_t fg,
}
EXPORT_SYMBOL_HDA(snd_hda_codec_set_power_to_all);

/*
* supported power states check
*/
static bool snd_hda_codec_get_supported_ps(struct hda_codec *codec, hda_nid_t fg,
unsigned int power_state)
{
int sup = snd_hda_param_read(codec, fg, AC_PAR_POWER_STATE);

if (sup < 0)
return false;
if (sup & power_state)
return true;
else
return false;
}

/*
* set power state of the codec
*/
Expand Down

0 comments on commit f6903b1

Please sign in to comment.