Skip to contentSkip to conversation

vxpocket 440 with alsa, problems with vxloader

DISCUSSION [email protected] 2 participants 6 messages Jan 14, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

At Fri, 14 Jan 2005 12:42:20 +0100,

Quoted 22 lines · [email protected] 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:

Quoted 7 lines
  $ 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

#2 lore raw

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

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

"TI" == Takashi Iwai <[email protected]> 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

#3 lore raw

At Fri, 14 Jan 2005 15:15:17 +0100,

Quoted 15 lines · Anders Vinjar

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

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

"TI" == Takashi Iwai <[email protected]> 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.

Quoted 2 lines

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

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

drivers/vx/vx_core.c +4 -0
diff -u -r1.12 vx_core.c
@@ -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");
#4 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"TI" == Takashi Iwai <[email protected]> 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

#5 lore raw
In reply to Takashi Iwai

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

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

"TI" == Takashi Iwai <[email protected]> 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