flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
DarkLight 21 Feb 2009, 16:19
How to manipulate(turn on/off) the internal speaker of PC in the Linux?
|
|||
![]() |
|
Endre 22 Feb 2009, 12:46
For programming internal speaker see e.g. this document.
|
|||
![]() |
|
DarkLight 23 Feb 2009, 14:57
Sorry. But that document is not for assembler.
|
|||
![]() |
|
Dex4u 24 Feb 2009, 17:38
Maybe not what you want, but you could just as easy use the sound driver
http://asm.sourceforge.net/articles/audio.html |
|||
![]() |
|
Coddy41 24 Feb 2009, 23:17
That does look good... I'm going to print it, and read when the power goes out
![]() |
|||
![]() |
|
DarkLight 25 Feb 2009, 09:59
I am new in assembler(consequently also in Linux assembler
![]() ![]() About article given by Dex4u: I think that it is good article(unfortunately not for ALSA) and may be I use it in the future. Thank you. |
|||
![]() |
|
Endre 27 Feb 2009, 10:01
What system do you have? I mean, 32-bit or 64-bit?
|
|||
![]() |
|
DarkLight 28 Feb 2009, 09:13
intel p4 32bit
opensuse 11.0 Linux kernel updated to 2.6.28 |
|||
![]() |
|
DJ Mauretto 28 Feb 2009, 14:38
Hello,
you can try with functin 101 ( SYS_IOPERM) to set Input/Output permission,then use standard internal speaker port (Low Level), i don't know if there are prepackage system function for that. _________________ Nil Volentibus Arduum ![]() |
|||
![]() |
|
Endre 28 Feb 2009, 20:44
DarkLight, I created a little code which demonstrates you how to drive internal speaker on linux. Since fasm's preprocessing capabilities are rather inconvenient for this task I wrote everything for gnu assembler (don't be afraid in intel syntax). I hope it does not disturb you despite the fact that we're just here on the fasm forum. Of course you can translate the code into fasm syntax if you wish, but in this case you have to look up each constant in the header files and to define them manually in your fasm source. Theorethically you can even debug this snippet if you compile it with '-g' as stated in the comment. You must run the program with root privilegies, otherwise you will get an error message about your missing rights.
|
|||||||||||
![]() |
|
DarkLight 01 Mar 2009, 18:21
Thank you very much !
I never forget your goodness to me. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.