Re: [alsa-devel] [PATCH] hda: Advanced power management for codecs.
7 Jan
2008
7 Jan
'08
6:34 p.m.
At Mon, 07 Jan 2008 12:31:49 -0500, Matthew Ranostay wrote:
@@ -2830,7 +2883,12 @@ static void stac92xx_hp_detect(struct hd for (i = 0; i < cfg->speaker_outs; i++) stac92xx_set_pinctl(codec, cfg->speaker_pins[i], AC_PINCTL_OUT_EN);
- }
for (i = 0; i < cfg->hp_outs; i++)
pwr_state |= 1 << (cfg->hp_pins[i] - 0xa);
- }
- /* power down unused ports */
- snd_hda_codec_write(codec, codec->afg, 0, 0x7ec, pwr_state);
Is this verb available on every STAC codec? I took a look at some specs but they don't show this verb at all.
Ah no this a new one for recent codecs, probably need to some sort of check for this.
Or is it equivalent to power down each unused pin widget? If so, we can do it somehow better in the common code.
Takashi
6160
Age (days ago)
6160
Last active (days ago)
0 comments
1 participants
participants (1)
-
Takashi Iwai