diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-02 12:13:41 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-11-04 07:25:41 -0500 |
commit | b7027cc29e158ec2d1c5e53c69f3e9e6a0d02a48 (patch) | |
tree | f28c3d38216ce61acfbbe8f29cd6ea6f707d1d52 /sound | |
parent | 09f9a891e9c8a3a5f75216c292a5420eb73a9c8b (diff) |
[ALSA] hda-codec - Show power state in proc file
Modules: HDA generic driver
Show the power state of each widget in proc file.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_proc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c index 08f6a6efc5e..39ddf1cd901 100644 --- a/sound/pci/hda/hda_proc.c +++ b/sound/pci/hda/hda_proc.c | |||
@@ -281,6 +281,11 @@ static void print_codec_info(snd_info_entry_t *entry, snd_info_buffer_t *buffer) | |||
281 | print_pcm_caps(buffer, codec, nid); | 281 | print_pcm_caps(buffer, codec, nid); |
282 | } | 282 | } |
283 | 283 | ||
284 | if (wid_caps & AC_WCAP_POWER) | ||
285 | snd_iprintf(buffer, " Power: 0x%x\n", | ||
286 | snd_hda_codec_read(codec, nid, 0, | ||
287 | AC_VERB_GET_POWER_STATE, 0)); | ||
288 | |||
284 | if (wid_caps & AC_WCAP_CONN_LIST) { | 289 | if (wid_caps & AC_WCAP_CONN_LIST) { |
285 | int c, curr = -1; | 290 | int c, curr = -1; |
286 | if (conn_len > 1 && wid_type != AC_WID_AUD_MIX) | 291 | if (conn_len > 1 && wid_type != AC_WID_AUD_MIX) |