Randy Dunlap wrote:
> 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...
making sure we have write permissions to the audio device, and that it exists.
Auke
_______________________________________________
Discuss mailing list
[email protected]
http://lists.lesswatts.org/listinfo/discuss