flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
DarkLight
How to manipulate(turn on/off) the internal speaker of PC in the Linux?
|
|||
![]() |
|
Endre
For programming internal speaker see e.g. this document.
|
|||
![]() |
|
DarkLight
Sorry. But that document is not for assembler.
|
|||
![]() |
|
Dex4u
Maybe not what you want, but you could just as easy use the sound driver
http://asm.sourceforge.net/articles/audio.html |
|||
![]() |
|
Coddy41
That does look good... I'm going to print it, and read when the power goes out
![]() |
|||
![]() |
|
DarkLight
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
What system do you have? I mean, 32-bit or 64-bit?
|
|||
![]() |
|
DarkLight
intel p4 32bit
opensuse 11.0 Linux kernel updated to 2.6.28 |
|||
![]() |
|
DJ Mauretto
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
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
Thank you very much !
I never forget your goodness to me. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.