All of lore.kernel.org
 help / color / mirror / Atom feed
* module_init fails with OEM SoundBlaster Live!
@ 2003-11-02 11:46 Peter Chapman
  2003-11-03 12:20 ` Takashi Iwai
  2003-11-03 16:28 ` James Courtier-Dutton
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Chapman @ 2003-11-02 11:46 UTC (permalink / raw)
  To: alsa-devel

I have an SBLive! which came with a Dell Dimension PC. The snd-emu10k1
module has been refusing to load ("EMU10K1/Audigy soundcard not found or
device busy"), however I found the following patch makes it work:

Index: alsa-kernel/pci/emu10k1/emumixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emumixer.c,v
retrieving revision 1.18
diff -u -r1.18 emumixer.c
--- alsa-kernel/pci/emu10k1/emumixer.c	23 Oct 2003 14:34:53 -0000	1.18
+++ alsa-kernel/pci/emu10k1/emumixer.c	2 Nov 2003 11:23:13 -0000
@@ -540,10 +540,6 @@
 			return -ENOMEM;
 		if ((err = snd_ctl_add(card, kctl)))
 			return err;
-		if ((kctl = snd_ctl_new1(&snd_emu10k1_spdif_control, emu)) == NULL)
-			return -ENOMEM;
-		if ((err = snd_ctl_add(card, kctl)))
-			return err;
 	}
 
 	if (emu->audigy) {


By no coincidence I'm sure, I never got the spdif output on the card to
work. Perhaps it's a cut-down OEM version? I noticed a DELL OEM entry in
snd_emu10k1_ids[], but my card does not match that device id. Here is
the lspci output:

03:03.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
        Subsystem: Creative Labs CT4780 SBLive! Value
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 32 (500ns min, 5000ns max)
        Interrupt: pin A routed to IRQ 19
        Region 0: I/O ports at b000 [size=32]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

with lspci -n:
03:03.0 Class 0401: 1102:0002 (rev 07)
        Subsystem: 1102:8022
etc....

could a failure to add the spdif control be made non-fatal perhaps?

Thanks,
Pete Chapman


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

* Re: module_init fails with OEM SoundBlaster Live!
  2003-11-02 11:46 module_init fails with OEM SoundBlaster Live! Peter Chapman
@ 2003-11-03 12:20 ` Takashi Iwai
  2003-11-03 13:20   ` Peter Chapman
  2003-11-03 16:28 ` James Courtier-Dutton
  1 sibling, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2003-11-03 12:20 UTC (permalink / raw)
  To: Peter Chapman; +Cc: alsa-devel

At Sun, 2 Nov 2003 11:46:34 +0000,
Peter Chapman wrote:
> 
> I have an SBLive! which came with a Dell Dimension PC. The snd-emu10k1
> module has been refusing to load ("EMU10K1/Audigy soundcard not found or
> device busy"), however I found the following patch makes it work:

most likely your ac97 codec chip has the IEC958 control, which
conflicts with the native emu10k1's control.
please check /proc/asound/card0/ac97#0 (with your patch).


> Index: alsa-kernel/pci/emu10k1/emumixer.c
> ===================================================================
> RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emumixer.c,v
> retrieving revision 1.18
> diff -u -r1.18 emumixer.c
> --- alsa-kernel/pci/emu10k1/emumixer.c	23 Oct 2003 14:34:53 -0000	1.18
> +++ alsa-kernel/pci/emu10k1/emumixer.c	2 Nov 2003 11:23:13 -0000
> @@ -540,10 +540,6 @@
>  			return -ENOMEM;
>  		if ((err = snd_ctl_add(card, kctl)))
>  			return err;
> -		if ((kctl = snd_ctl_new1(&snd_emu10k1_spdif_control, emu)) == NULL)
> -			return -ENOMEM;
> -		if ((err = snd_ctl_add(card, kctl)))
> -			return err;
>  	}
>  
>  	if (emu->audigy) {
> 
> 
> By no coincidence I'm sure, I never got the spdif output on the card to
> work. Perhaps it's a cut-down OEM version? I noticed a DELL OEM entry in
> snd_emu10k1_ids[], but my card does not match that device id.

the one for DELL's board was addedd experimentally, but it got never
worked.  apparently it's totally different chip from emu10k1.


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

* Re: module_init fails with OEM SoundBlaster Live!
  2003-11-03 12:20 ` Takashi Iwai
@ 2003-11-03 13:20   ` Peter Chapman
  2003-11-03 14:45     ` Takashi Iwai
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Chapman @ 2003-11-03 13:20 UTC (permalink / raw)
  To: alsa-devel

On Mon, Nov 03, 2003 at 01:20:22PM +0100, Takashi Iwai tiwai-at-suse.de |alsa-devel| wrote:
> At Sun, 2 Nov 2003 11:46:34 +0000,
> Peter Chapman wrote:
> > 
> > I have an SBLive! which came with a Dell Dimension PC. The snd-emu10k1
> > module has been refusing to load ("EMU10K1/Audigy soundcard not found or
> > device busy"), however I found the following patch makes it work:
> 
> most likely your ac97 codec chip has the IEC958 control, which
> conflicts with the native emu10k1's control.
> please check /proc/asound/card0/ac97#0 (with your patch).
> 
> 

Is this what you mean?
$ cat /proc/asound/card0/codec97#0/ac97#0-0
0-0/0: Cirrus Logic CS4297A rev 4

Capabilities     : -headphone out-
DAC resolution   : 20-bit
ADC resolution   : 18-bit
3D enhancement   : Crystal Semi 3D Stereo Enhancement

Current setup
Mic gain         : +0dB [+0dB]
POP path         : pre 3D
Sim. stereo      : off
3D enhancement   : off
Loudness         : off
Mono output      : MIX
Mic select       : Mic1
ADC/DAC loopback : off
Extended ID      : codec=0 rev=0 AMAP DSA=0
Extended status  :
SPDIF Control    : Consumer PCM Category=0x2 Generation=1 Rate=48kHz

I can't find any mention of IEC958, but then I don't really know what
I'm doing! I can check the chips on the card itself when I get home, if
that will help.

Thanks,
Pete


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

* Re: module_init fails with OEM SoundBlaster Live!
  2003-11-03 13:20   ` Peter Chapman
@ 2003-11-03 14:45     ` Takashi Iwai
  2003-11-03 15:56       ` Peter Chapman
  0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2003-11-03 14:45 UTC (permalink / raw)
  To: Peter Chapman; +Cc: alsa-devel

At Mon, 3 Nov 2003 13:20:12 +0000,
Peter Chapman wrote:
> 
> On Mon, Nov 03, 2003 at 01:20:22PM +0100, Takashi Iwai tiwai-at-suse.de |alsa-devel| wrote:
> > At Sun, 2 Nov 2003 11:46:34 +0000,
> > Peter Chapman wrote:
> > > 
> > > I have an SBLive! which came with a Dell Dimension PC. The snd-emu10k1
> > > module has been refusing to load ("EMU10K1/Audigy soundcard not found or
> > > device busy"), however I found the following patch makes it work:
> > 
> > most likely your ac97 codec chip has the IEC958 control, which
> > conflicts with the native emu10k1's control.
> > please check /proc/asound/card0/ac97#0 (with your patch).
> > 
> > 
> 
> Is this what you mean?
> $ cat /proc/asound/card0/codec97#0/ac97#0-0
> 0-0/0: Cirrus Logic CS4297A rev 4
> 
> Capabilities     : -headphone out-
> DAC resolution   : 20-bit
> ADC resolution   : 18-bit
> 3D enhancement   : Crystal Semi 3D Stereo Enhancement
> 
> Current setup
> Mic gain         : +0dB [+0dB]
> POP path         : pre 3D
> Sim. stereo      : off
> 3D enhancement   : off
> Loudness         : off
> Mono output      : MIX
> Mic select       : Mic1
> ADC/DAC loopback : off
> Extended ID      : codec=0 rev=0 AMAP DSA=0
> Extended status  :
> SPDIF Control    : Consumer PCM Category=0x2 Generation=1 Rate=48kHz
> 
> I can't find any mention of IEC958, but then I don't really know what
> I'm doing! I can check the chips on the card itself when I get home, if
> that will help.

IEC958 is aka SPDIF.  you see it in the above too :)

does the board have spdif i/o?


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

* Re: module_init fails with OEM SoundBlaster Live!
  2003-11-03 14:45     ` Takashi Iwai
@ 2003-11-03 15:56       ` Peter Chapman
  2003-11-03 18:12         ` Takashi Iwai
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Chapman @ 2003-11-03 15:56 UTC (permalink / raw)
  To: alsa-devel

On Mon, Nov 03, 2003 at 03:45:52PM +0100, Takashi Iwai tiwai-at-suse.de |alsa-devel| wrote:
> At Mon, 3 Nov 2003 13:20:12 +0000,
> Peter Chapman wrote:
> > 
> > Is this what you mean?
> > $ cat /proc/asound/card0/codec97#0/ac97#0-0
> > 0-0/0: Cirrus Logic CS4297A rev 4
> > 
> > Capabilities     : -headphone out-
> > DAC resolution   : 20-bit
> > ADC resolution   : 18-bit
> > 3D enhancement   : Crystal Semi 3D Stereo Enhancement
> > 
> > Current setup
> > Mic gain         : +0dB [+0dB]
> > POP path         : pre 3D
> > Sim. stereo      : off
> > 3D enhancement   : off
> > Loudness         : off
> > Mono output      : MIX
> > Mic select       : Mic1
> > ADC/DAC loopback : off
> > Extended ID      : codec=0 rev=0 AMAP DSA=0
> > Extended status  :
> > SPDIF Control    : Consumer PCM Category=0x2 Generation=1 Rate=48kHz
> > 
> > I can't find any mention of IEC958, but then I don't really know what
> > I'm doing! I can check the chips on the card itself when I get home, if
> > that will help.
> 
> IEC958 is aka SPDIF.  you see it in the above too :)
> 
> does the board have spdif i/o?
> 
> 
> Takashi

Oh, I see! :) Yes, there is an spdif connector on the card, however I've
never managed to make it work, either under Linux or Windows. Not even
using Dell's own Windows drivers.
I've always suspected that I had a crippled version of the card from
Dell, but maybe it's just defective?
Personally, I'm happy to modify the source before I build it, but I
wonder if there are other people with the same hardware. I suppose time
will tell as 2.6.0 bings a whole load more alsa users.

Pete


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

* Re: module_init fails with OEM SoundBlaster Live!
  2003-11-02 11:46 module_init fails with OEM SoundBlaster Live! Peter Chapman
  2003-11-03 12:20 ` Takashi Iwai
@ 2003-11-03 16:28 ` James Courtier-Dutton
  1 sibling, 0 replies; 9+ messages in thread
From: James Courtier-Dutton @ 2003-11-03 16:28 UTC (permalink / raw)
  To: Peter Chapman; +Cc: alsa-devel

Peter Chapman wrote:
> I have an SBLive! which came with a Dell Dimension PC. The snd-emu10k1
> 
> with lspci -n:
> 03:03.0 Class 0401: 1102:0002 (rev 07)
>         Subsystem: 1102:8022
> etc....
> 
> could a failure to add the spdif control be made non-fatal perhaps?
> 
> Thanks,
> Pete Chapman
> 
> 
The 0x1102:0x0002 is a standard emu10k1 chip, and not the cut down version.

If it was a 0x1102:0x0006, it would be the really strange dell one, so 
this one is just a bit strange!

We could use the emu->serial or Subsystem Vendor ID to use to identify 
this card, and create a special case for it.

Cheers
James






-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

* Re: module_init fails with OEM SoundBlaster Live!
  2003-11-03 15:56       ` Peter Chapman
@ 2003-11-03 18:12         ` Takashi Iwai
  2003-11-03 21:40           ` Peter Chapman
  0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2003-11-03 18:12 UTC (permalink / raw)
  To: Peter Chapman; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 1719 bytes --]

At Mon, 3 Nov 2003 15:56:06 +0000,
Peter Chapman wrote:
> 
> On Mon, Nov 03, 2003 at 03:45:52PM +0100, Takashi Iwai tiwai-at-suse.de |alsa-devel| wrote:
> > At Mon, 3 Nov 2003 13:20:12 +0000,
> > Peter Chapman wrote:
> > > 
> > > Is this what you mean?
> > > $ cat /proc/asound/card0/codec97#0/ac97#0-0
> > > 0-0/0: Cirrus Logic CS4297A rev 4
> > > 
> > > Capabilities     : -headphone out-
> > > DAC resolution   : 20-bit
> > > ADC resolution   : 18-bit
> > > 3D enhancement   : Crystal Semi 3D Stereo Enhancement
> > > 
> > > Current setup
> > > Mic gain         : +0dB [+0dB]
> > > POP path         : pre 3D
> > > Sim. stereo      : off
> > > 3D enhancement   : off
> > > Loudness         : off
> > > Mono output      : MIX
> > > Mic select       : Mic1
> > > ADC/DAC loopback : off
> > > Extended ID      : codec=0 rev=0 AMAP DSA=0
> > > Extended status  :
> > > SPDIF Control    : Consumer PCM Category=0x2 Generation=1 Rate=48kHz
> > > 
> > > I can't find any mention of IEC958, but then I don't really know what
> > > I'm doing! I can check the chips on the card itself when I get home, if
> > > that will help.
> > 
> > IEC958 is aka SPDIF.  you see it in the above too :)
> > 
> > does the board have spdif i/o?
> > 
> > 
> > Takashi
> 
> Oh, I see! :) Yes, there is an spdif connector on the card, however I've
> never managed to make it work, either under Linux or Windows. Not even
> using Dell's own Windows drivers.
> I've always suspected that I had a crippled version of the card from
> Dell, but maybe it's just defective?

no idea.  but you can try the attached patch.
it disables the ac97's spdif control but it still keeps the emu10k1's
one.  if you have an spdif receiver, give it a try.


Takashi

[-- Attachment #2: dell-emu10k1-fix.dif --]
[-- Type: application/octet-stream, Size: 841 bytes --]

Index: alsa-kernel/pci/emu10k1/emumixer.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/emu10k1/emumixer.c,v
retrieving revision 1.16
diff -u -r1.16 emumixer.c
--- alsa-kernel/pci/emu10k1/emumixer.c	23 Oct 2003 17:00:15 -0000	1.16
+++ alsa-kernel/pci/emu10k1/emumixer.c	3 Nov 2003 18:09:48 -0000
@@ -540,6 +540,11 @@
 			return -ENOMEM;
 		if ((err = snd_ctl_add(card, kctl)))
 			return err;
+		if ((kctl = ctl_find(card, SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT))) != NULL) {
+			/* already defined by ac97, remove it */
+			/* FIXME: or do we need both controls? */
+			remove_ctl(card, SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT));
+		}
 		if ((kctl = snd_ctl_new1(&snd_emu10k1_spdif_control, emu)) == NULL)
 			return -ENOMEM;
 		if ((err = snd_ctl_add(card, kctl)))

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

* Re: module_init fails with OEM SoundBlaster Live!
  2003-11-03 18:12         ` Takashi Iwai
@ 2003-11-03 21:40           ` Peter Chapman
  2003-11-04 15:22             ` Takashi Iwai
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Chapman @ 2003-11-03 21:40 UTC (permalink / raw)
  To: alsa-devel

On Mon, Nov 03, 2003 at 07:12:47PM +0100, Takashi Iwai tiwai-at-suse.de |alsa-devel| wrote:
> 
> no idea.  but you can try the attached patch.
> it disables the ac97's spdif control but it still keeps the emu10k1's
> one.  if you have an spdif receiver, give it a try.
> 
> 
> Takashi

Takashi, your patch lets me load the emu10k1 module. For me that's the
most important thing. My spdif output is still dead, though (my minidisc
keeps saying "no signal" even when I enable the control with alsamixer).
The card doesn't have an spdif receiver.
Thanks again,

Pete


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

* Re: module_init fails with OEM SoundBlaster Live!
  2003-11-03 21:40           ` Peter Chapman
@ 2003-11-04 15:22             ` Takashi Iwai
  0 siblings, 0 replies; 9+ messages in thread
From: Takashi Iwai @ 2003-11-04 15:22 UTC (permalink / raw)
  To: Peter Chapman; +Cc: alsa-devel

At Mon, 3 Nov 2003 21:40:17 +0000,
Peter Chapman wrote:
> 
> On Mon, Nov 03, 2003 at 07:12:47PM +0100, Takashi Iwai tiwai-at-suse.de |alsa-devel| wrote:
> > 
> > no idea.  but you can try the attached patch.
> > it disables the ac97's spdif control but it still keeps the emu10k1's
> > one.  if you have an spdif receiver, give it a try.
> > 
> > 
> > Takashi
> 
> Takashi, your patch lets me load the emu10k1 module. For me that's the
> most important thing. My spdif output is still dead, though (my minidisc
> keeps saying "no signal" even when I enable the control with alsamixer).
> The card doesn't have an spdif receiver.

what happens if you use "spdif" (or "iec958") pcm, e.g. aplay with
-Dspdif option?


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

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

end of thread, other threads:[~2003-11-04 15:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-02 11:46 module_init fails with OEM SoundBlaster Live! Peter Chapman
2003-11-03 12:20 ` Takashi Iwai
2003-11-03 13:20   ` Peter Chapman
2003-11-03 14:45     ` Takashi Iwai
2003-11-03 15:56       ` Peter Chapman
2003-11-03 18:12         ` Takashi Iwai
2003-11-03 21:40           ` Peter Chapman
2003-11-04 15:22             ` Takashi Iwai
2003-11-03 16:28 ` James Courtier-Dutton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.