ALSA: hda - print power state for AFG node in proc file
It seems useful, and power states are required for AFG nodes, so I see no reason not to print it. As a bonus, also print the AFG nid. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
e4cc615340
commit
f4f0a8c478
@@ -603,6 +603,8 @@ static void print_codec_info(struct snd_info_entry *entry,
|
|||||||
print_amp_caps(buffer, codec, codec->afg, HDA_INPUT);
|
print_amp_caps(buffer, codec, codec->afg, HDA_INPUT);
|
||||||
snd_iprintf(buffer, "Default Amp-Out caps: ");
|
snd_iprintf(buffer, "Default Amp-Out caps: ");
|
||||||
print_amp_caps(buffer, codec, codec->afg, HDA_OUTPUT);
|
print_amp_caps(buffer, codec, codec->afg, HDA_OUTPUT);
|
||||||
|
snd_iprintf(buffer, "State of AFG node 0x%02x:\n", codec->afg);
|
||||||
|
print_power_state(buffer, codec, codec->afg);
|
||||||
|
|
||||||
nodes = snd_hda_get_sub_nodes(codec, codec->afg, &nid);
|
nodes = snd_hda_get_sub_nodes(codec, codec->afg, &nid);
|
||||||
if (! nid || nodes < 0) {
|
if (! nid || nodes < 0) {
|
||||||
|
Reference in New Issue
Block a user