On Thu, 6 Aug 2009 09:12:24 +0530 Ritesh Raj Sarraf wrote: > Hi Randy, > > On Thursday 06 Aug 2009 04:52:11 Randy Dunlap wrote: > > +void hda_power_on(void) > > +{ > > + FILE *file; > > + > > + file = fopen("/sys/module/snd_hda_intel/parameters/power_save", > > "w"); + if (!file) > > + return; > > + fprintf(file,"1"); > > + fclose(file); > > + if (access("/dev/dsp", F_OK)) > > + return; > > + file = fopen("/dev/dsp", "w"); > > + if (file) { > > + fprintf(file,"1"); > > + fclose(file); > > + } > > +} > > + > > What is the "/dev/dsp" stuff for ? > Does that too save power ?
Hi, That's certainly a good question. I just copied the powertop ac97 code and that's what it does. Hopefully someone else here can explain... --- ~Randy LPC 2009, Sept. 23-25, Portland, Oregon http://linuxplumbersconf.org/2009/ _______________________________________________ Discuss mailing list Discuss@lesswatts.org http://lists.lesswatts.org/listinfo/discuss