Skip to contentSkip to conversation

OPL3 with hwdep

Application Mardy 2 participants 3 messages Jan 12, 2003

lore
Share & tools
lore

Mardy

author
#0 lore raw

I want to make a simple OPL3 beeper, but I'm stuck with snd_hwdep_open(), I just don't know what string I should call it with.

pupilla:~$ cat /proc/asound/cards 
0 [CARD_0         ]: CMI8738-MC6 - C-Media PCI CMI8738-MC6
                     C-Media PCI CMI8738-MC6 (model 55) at 0xb800, irq 9
pupilla:~$ cat /proc/asound/hwdep 
00-00: OPL3 FM
pupilla:~$ cat /proc/asound/devices 
  0: [0- 0]: ctl
  8: [0- 0]: raw midi
 18: [0- 2]: digital audio playback
 26: [0- 2]: digital audio capture
 17: [0- 1]: digital audio playback
 16: [0- 0]: digital audio playback
 24: [0- 0]: digital audio capture
  4: [0- 0]: hardware dependent
  1:       : sequencer
 33:       : timer

I've tried lots of combinations, but it always fail... :-(

Signature · 9 lines
Saluti,
    Mardy
http://castellina.org/interlingua


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
#1 lore raw
Quoted 2 lines · Mardy

I want to make a simple OPL3 beeper, but I'm stuck with snd_hwdep_open(), I just don't know what string I should call it with.

hw:# (where # is your card number or string identification), it is usually 'hw:0'; or the more simple way is to pass 'default' string as hwdep name

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

author
#2 lore raw
Quoted 7 lines · Jaroslav Kysela
Quoted 2 lines · Mardy

I want to make a simple OPL3 beeper, but I'm stuck with snd_hwdep_open(), I just don't know what string I should call it with.

hw:# (where # is your card number or string identification), it is usually 'hw:0'; or the more simple way is to pass 'default' string as hwdep name

Tried both, but I still get a -2.
I'm using Debian woody (libasound2 0.9.0beta10a-3).

Signature · 9 lines
Saluti,
    Mardy
http://castellina.org/interlingua


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com