Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Application] OPL3 with hwdep
@ 2003-01-12 19:01 Mardy
  2003-01-12 19:12 ` Jaroslav Kysela
  0 siblings, 1 reply; 3+ messages in thread
From: Mardy @ 2003-01-12 19:01 UTC (permalink / raw)
  To: alsa-devel

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... :-(

-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Application] OPL3 with hwdep
  2003-01-12 19:01 [Application] OPL3 with hwdep Mardy
@ 2003-01-12 19:12 ` Jaroslav Kysela
  2003-01-12 19:55   ` Mardy
  0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Kysela @ 2003-01-12 19:12 UTC (permalink / raw)
  To: Mardy; +Cc: alsa-devel@lists.sourceforge.net

On Sun, 12 Jan 2003, Mardy wrote:

> 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 <perex@suse.cz>
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Application] OPL3 with hwdep
  2003-01-12 19:12 ` Jaroslav Kysela
@ 2003-01-12 19:55   ` Mardy
  0 siblings, 0 replies; 3+ messages in thread
From: Mardy @ 2003-01-12 19:55 UTC (permalink / raw)
  To: alsa-devel@lists.sourceforge.net

On Sun, Jan 12, 2003 at 08:12:53PM +0100, Jaroslav Kysela wrote:
> On Sun, 12 Jan 2003, Mardy wrote:
> 
> > 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).

-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-12 19:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-12 19:01 [Application] OPL3 with hwdep Mardy
2003-01-12 19:12 ` Jaroslav Kysela
2003-01-12 19:55   ` Mardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox