All of lore.kernel.org
 help / color / mirror / Atom feed
* vxpocket 440 with alsa, problems with vxloader
@ 2005-01-14 11:42 andersvi
  2005-01-14 12:09 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: andersvi @ 2005-01-14 11:42 UTC (permalink / raw)
  To: alsa-user; +Cc: alsa-devel

Im having trouble getting a Digigram VXPocket PCMCIA with alsa.

copied vxp440.conf to /etc/pcmcia/ - makes the card recognised by
cardmgr when inserted.

The drivers - snd_vxp440 and friend, seem to load and run.
Either by entering them in /etc/modprobe.conf or having them
loaded by cardmgr.

  $/sbin/lsmod | grep vx
  snd_vxp440              4800  0 
  snd_vx_cs              14848  1 snd_vxp440
  snd_vx_lib             45696  1 snd_vx_cs
  snd_hwdep              10784  1 snd_vx_lib
  snd_pcm               120968  4 snd_pcm_oss,snd_vx_lib,snd_intel8x0,snd_ac97_codec
  snd                    72836  11 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_vx_cs,snd_vx_lib,snd_hwdep,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
  pcmcia                 22148  6 snd_vxp440,snd_vx_cs
  pcmcia_core            59840  3 snd_vx_cs,pcmcia,yenta_socket

However, running vxloader only leaves me with an error:

  $ vxloader
  vxloader: no VX-compatible cards found
  $

running alsaconf doesnt find any vxpocket card.

alsa is version 1.0.7

has anybody a hint to get this further?

-anders


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

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

* Re: vxpocket 440 with alsa, problems with vxloader
  2005-01-14 11:42 vxpocket 440 with alsa, problems with vxloader andersvi
@ 2005-01-14 12:09 ` Takashi Iwai
  2005-01-14 14:15   ` Anders Vinjar
  2005-01-14 14:30   ` andersvi
  0 siblings, 2 replies; 6+ messages in thread
From: Takashi Iwai @ 2005-01-14 12:09 UTC (permalink / raw)
  To: andersvi; +Cc: alsa-user, alsa-devel

At Fri, 14 Jan 2005 12:42:20 +0100,
andersvi@extern.uio.no wrote:
> 
> Im having trouble getting a Digigram VXPocket PCMCIA with alsa.
> 
> copied vxp440.conf to /etc/pcmcia/ - makes the card recognised by
> cardmgr when inserted.
> 
> The drivers - snd_vxp440 and friend, seem to load and run.
> Either by entering them in /etc/modprobe.conf or having them
> loaded by cardmgr.
> 
>   $/sbin/lsmod | grep vx
>   snd_vxp440              4800  0 
>   snd_vx_cs              14848  1 snd_vxp440
>   snd_vx_lib             45696  1 snd_vx_cs
>   snd_hwdep              10784  1 snd_vx_lib
>   snd_pcm               120968  4 snd_pcm_oss,snd_vx_lib,snd_intel8x0,snd_ac97_codec
>   snd                    72836  11 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_vx_cs,snd_vx_lib,snd_hwdep,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
>   pcmcia                 22148  6 snd_vxp440,snd_vx_cs
>   pcmcia_core            59840  3 snd_vx_cs,pcmcia,yenta_socket
> 
> However, running vxloader only leaves me with an error:
> 
>   $ vxloader
>   vxloader: no VX-compatible cards found
>   $
> 
> running alsaconf doesnt find any vxpocket card.
> 
> alsa is version 1.0.7

vxpocket/vxp440 driver in ALSA 1.0.7 has a severe bug.
Try ALSA 1.0.8 instead.

On ALSA 1.0.8, the firmware is loaded via hotplug automatically, so
you don't need vxloader.  (It's only for 2.6 kernels.)
Don't forget to update alsa-firmware, too.


Takashi


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

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

* Re: vxpocket 440 with alsa, problems with vxloader
  2005-01-14 12:09 ` Takashi Iwai
@ 2005-01-14 14:15   ` Anders Vinjar
  2005-01-14 14:46     ` [Alsa-devel] " Takashi Iwai
  2005-01-14 14:30   ` andersvi
  1 sibling, 1 reply; 6+ messages in thread
From: Anders Vinjar @ 2005-01-14 14:15 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-user, alsa-devel

Thanks alot for response.  It got me further, but still no sound
out.  Anybody got a clue where this gets wrong?

>>> "TI" == Takashi Iwai <tiwai@suse.de> writes:

>> alsa is version 1.0.7

TI> vxpocket/vxp440 driver in ALSA 1.0.7 has a severe bug.
TI> Try ALSA 1.0.8 instead.
TI> 
TI> On ALSA 1.0.8, the firmware is loaded via hotplug automatically, so
TI> you don't need vxloader.  (It's only for 2.6 kernels.)
TI> Don't forget to update alsa-firmware, too.

With alsa-1.0.8, and upgraded firmware it behaves as follows.
Pcmcia card is card-1, builtin sound is card-0:

  $ alsamixer -c1
  alsamixer: function snd_ctl_open failed for hw:1: No such device

Plugging in the card gives output:

  $ alsamixer -c1
  No mixer elems found

And trying to play through the pcmcia-card does not work:

  $ aplay -D hw:0,0 test.wav
  Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
  $ aplay -D hw:1,0 test.wav
  ALSA lib pcm_hw.c:1174:(snd_pcm_hw_open) open /dev/snd/pcmC1D0p failed: No such device
  aplay: main:508: audio open error: No such device

Seems the card is detected 

  $ cat /proc/asound/cards 
  0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
		       Intel 82801DB-ICH4 with STAC9750/51 at 0xf4fff800, irq 17
  1 [VXPocket440    ]: VXPocket440 - Digigram VXPocket440
		       Digigram VXPocket440 at 0x100, irq 3

But all "parameters" are set to zero or something. 

  $ cat /proc/asound/card1/vx-status 
  Digigram VXPocket440 at 0x100, irq 3
  DSP audio info:
  Input Source: Line
  Clock Mode: Auto
  Clock Source: Internal
  Frequency: 0
  Detected Frequency: 0
  Detected UER type: Consumer
  Min/Max/Cur IBL: 0/0/0 (granularity=0)

  $ cat /proc/asound/devices 
    0: [0- 0]: ctl
   20: [0- 4]: digital audio playback
   27: [0- 3]: digital audio capture
   26: [0- 2]: digital audio capture
   25: [0- 1]: digital audio capture
   16: [0- 0]: digital audio playback
   24: [0- 0]: digital audio capture
    1:       : sequencer
   33:       : timer
   32: [1- 0]: ctl
   36: [1- 0]: hardware dependent


  $ uname -a
  Linux localhost 2.6.10-2.1.ll.rhfc2.ccrma #1 Thu Dec 30 06:24:24 EST 2004 i686 i686 i386 GNU/Linux
  $ 




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

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

* Re: vxpocket 440 with alsa, problems with vxloader
  2005-01-14 12:09 ` Takashi Iwai
  2005-01-14 14:15   ` Anders Vinjar
@ 2005-01-14 14:30   ` andersvi
  1 sibling, 0 replies; 6+ messages in thread
From: andersvi @ 2005-01-14 14:30 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-user, alsa-devel

Thanks alot for response.  It got me further, but still no sound
out.  Anybody got a clue where this gets wrong?

>>> "TI" == Takashi Iwai <tiwai@suse.de> writes:

>> alsa is version 1.0.7

TI> vxpocket/vxp440 driver in ALSA 1.0.7 has a severe bug.
TI> Try ALSA 1.0.8 instead.
TI> 
TI> On ALSA 1.0.8, the firmware is loaded via hotplug automatically, so
TI> you don't need vxloader.  (It's only for 2.6 kernels.)
TI> Don't forget to update alsa-firmware, too.

With alsa-1.0.8, and upgraded firmware it behaves as follows.
Pcmcia card is card-1, builtin sound is card-0:

  $ alsamixer -c1
  alsamixer: function snd_ctl_open failed for hw:1: No such device

Plugging in the card gives output:

  $ alsamixer -c1
  No mixer elems found

And trying to play through the pcmcia-card does not work:

  $ aplay -D hw:0,0 test.wav
  Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
  $ aplay -D hw:1,0 test.wav
  ALSA lib pcm_hw.c:1174:(snd_pcm_hw_open) open /dev/snd/pcmC1D0p failed: No such device
  aplay: main:508: audio open error: No such device

Seems the card is detected 

  $ cat /proc/asound/cards 
  0 [I82801DBICH4   ]: ICH4 - Intel 82801DB-ICH4
		       Intel 82801DB-ICH4 with STAC9750/51 at 0xf4fff800, irq 17
  1 [VXPocket440    ]: VXPocket440 - Digigram VXPocket440
		       Digigram VXPocket440 at 0x100, irq 3

But all "parameters" are set to zero or something. 

  $ cat /proc/asound/card1/vx-status 
  Digigram VXPocket440 at 0x100, irq 3
  DSP audio info:
  Input Source: Line
  Clock Mode: Auto
  Clock Source: Internal
  Frequency: 0
  Detected Frequency: 0
  Detected UER type: Consumer
  Min/Max/Cur IBL: 0/0/0 (granularity=0)

  $ cat /proc/asound/devices 
    0: [0- 0]: ctl
   20: [0- 4]: digital audio playback
   27: [0- 3]: digital audio capture
   26: [0- 2]: digital audio capture
   25: [0- 1]: digital audio capture
   16: [0- 0]: digital audio playback
   24: [0- 0]: digital audio capture
    1:       : sequencer
   33:       : timer
   32: [1- 0]: ctl
   36: [1- 0]: hardware dependent


  $ uname -a
  Linux localhost 2.6.10-2.1.ll.rhfc2.ccrma #1 Thu Dec 30 06:24:24 EST 2004 i686 i686 i386 GNU/Linux
  $ 


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

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

* Re: [Alsa-devel] vxpocket 440 with alsa, problems with vxloader
  2005-01-14 14:15   ` Anders Vinjar
@ 2005-01-14 14:46     ` Takashi Iwai
  2005-01-14 23:36       ` andersvi
  0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2005-01-14 14:46 UTC (permalink / raw)
  To: Anders Vinjar; +Cc: alsa-user, alsa-devel

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

At Fri, 14 Jan 2005 15:15:17 +0100,
Anders Vinjar wrote:
> 
> Thanks alot for response.  It got me further, but still no sound
> out.  Anybody got a clue where this gets wrong?
> 
> >>> "TI" == Takashi Iwai <tiwai@suse.de> writes:
> 
> >> alsa is version 1.0.7
> 
> TI> vxpocket/vxp440 driver in ALSA 1.0.7 has a severe bug.
> TI> Try ALSA 1.0.8 instead.
> TI> 
> TI> On ALSA 1.0.8, the firmware is loaded via hotplug automatically, so
> TI> you don't need vxloader.  (It's only for 2.6 kernels.)
> TI> Don't forget to update alsa-firmware, too.
> 
> With alsa-1.0.8, and upgraded firmware it behaves as follows.
> Pcmcia card is card-1, builtin sound is card-0:

Does your kernel support hotplug firmware loader (CONFIG_FW_LOADER)?
And is hotplug working?

Check whether /proc/asound/devices whether you have a "[1-0] hardware
dependent device".  If you have it, the hotplug firmware loader isn't
enabled.  Use vxloader, run "vxloader -c1".

With the attached patch, you can check whether the firmware is loaded
or not via the proc file.


Takashi

[-- Attachment #2: Type: text/plain, Size: 868 bytes --]

Index: alsa-kernel/drivers/vx/vx_core.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/drivers/vx/vx_core.c,v
retrieving revision 1.12
diff -u -r1.12 vx_core.c
--- alsa-kernel/drivers/vx/vx_core.c	20 Dec 2004 11:04:40 -0000	1.12
+++ alsa-kernel/drivers/vx/vx_core.c	14 Jan 2005 14:43:46 -0000
@@ -610,6 +610,10 @@
 	static char *uer_type[] = { "Consumer", "Professional", "Not Present" };
 	
 	snd_iprintf(buffer, "%s\n", chip->card->longname);
+	snd_iprintf(buffer, "Xilinx Firmware: %s\n",
+		    chip->chip_status & VX_STAT_XILINX_LOADED ? "Loaded" : "No");
+	snd_iprintf(buffer, "Device Initialized: %s\n",
+		    chip->chip_status & VX_STAT_DEVICE_INIT ? "Yes" : "No");
 	snd_iprintf(buffer, "DSP audio info:");
 	if (chip->audio_info & VX_AUDIO_INFO_REAL_TIME)
 		snd_iprintf(buffer, " realtime");

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

* Re: vxpocket 440 with alsa, problems with vxloader
  2005-01-14 14:46     ` [Alsa-devel] " Takashi Iwai
@ 2005-01-14 23:36       ` andersvi
  0 siblings, 0 replies; 6+ messages in thread
From: andersvi @ 2005-01-14 23:36 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-user, alsa-devel

>>>>> "TI" == Takashi Iwai <tiwai@suse.de> writes:

    TI> Does your kernel support hotplug firmware loader (CONFIG_FW_LOADER)?
    TI> And is hotplug working?

    TI> Check whether /proc/asound/devices whether you have a "[1-0] hardware
    TI> dependent device".  If you have it, the hotplug firmware loader isn't
    TI> enabled.  Use vxloader, run "vxloader -c1".

Theres no such line there now.  It was earlier today though... Hmmm

Sticking in the card now leaves the following trail in
/var/log/messages:

Jan 15 00:25:34 localhost kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Jan 15 00:25:34 localhost cardmgr[2616]: socket 0: Digigram VX-POCKET440
Jan 15 00:25:35 localhost kernel: snd-vxp440: RequestIO: Resource in use
Jan 15 00:25:35 localhost cardmgr[2616]: get dev info on socket 0 failed: No such device

and "/sbin/lsmod | grep vx" shows a list of snd_vxp440 and
friends.

However, theres no trace inside /proc/asound/cards or any
/proc/asound/card1/ directory, and i cant find the card anywhere
else.

$ amixer -c 1
amixer: Mixer attach hw:1 error: No such device

    TI> With the attached patch, you can check whether the firmware is loaded
    TI> or not via the proc file.

Which proc file are you suggesting here?



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

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

end of thread, other threads:[~2005-01-14 23:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14 11:42 vxpocket 440 with alsa, problems with vxloader andersvi
2005-01-14 12:09 ` Takashi Iwai
2005-01-14 14:15   ` Anders Vinjar
2005-01-14 14:46     ` [Alsa-devel] " Takashi Iwai
2005-01-14 23:36       ` andersvi
2005-01-14 14:30   ` andersvi

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.