Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* VXPocket 440
@ 2004-05-08  8:54 Anders Johansson
  0 siblings, 0 replies; 4+ messages in thread
From: Anders Johansson @ 2004-05-08  8:54 UTC (permalink / raw)
  To: alsa-devel

Hi,

I am trying to get full duplex 4 channel I/O with minimum latency to
work on a Digiram VXpocket 440, and I am having some problems. All log
files and test scripts that I have been using are found under the link
at the end of this mail:

1. If i turn on preemptive multitasking the log fills up with 
   error messages about Bad scheduling and I cant get anything through
   the card.

2. ACPI seems to make the kernel more instable and more easy to
   crash.

3. If i pipe sound from arecord to aplay and use too small buffer size
   the kernel locks. I need buffer-space > 2048 bytes to avoid buffer
   over and under runs see atest.log and atest. aplay uses 50% of CPU.
   Kernel lockups occur when buffer-space is below 1024 bytes.

4. Using all four channels is only possible with S16_LE not S24_LE.

5. I have written an application which loop backs sound from jackds
   inputs to outputs. JACK never receives any samples however so
   nothing is played or recorded. See jtest and jtest.log
   When jack runs ksoftirqd used ~15 % of the CPU. 

6. When trying to run jack and increasing buffer length to 1024
   samples and above I get: jackd: pcm.c:5946: snd_pcm_mmap_commit:
   Assertion `frames <= snd_pcm_mmap_avail(pcm)' failed. I assume this
   is related to my asoundrc file.


The device is a SBC with very limited resources so debugging is a
bit hard for me. My application is demo system for a new type of
hearing aid. I know a little bit about alsa and have previously helped
you debug M-Audio delta 1010LT.

Where do you suggest I start? I guess the problem is in the interrupt
handling in the PCMCIA subsystem.

This is the link for my logs and scripts:
http://www.watri.org.au/~ajh/debug/

Thank you for your help,
//Anders



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3

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

* vxpocket 440
@ 2006-10-27  9:37 Anders Johansson
  2006-10-28 11:31 ` Anders Johansson
  0 siblings, 1 reply; 4+ messages in thread
From: Anders Johansson @ 2006-10-27  9:37 UTC (permalink / raw)
  To: alsa-devel

Hi,

I am trying to configure a VX-Pocket 440 on a DELL laptop, Debian
etch, Kernel version 2.6.17.

I have the same card running on a SONY laptop with Debian sarge and a
2.6.8 kernel, no problem.


Syslog says:
Oct 28 01:19:29 asil kernel: pccard: PCMCIA card inserted into slot 0
Oct 28 01:19:29 asil kernel: pcmcia: registering new device pcmcia0.0
Oct 28 01:19:29 asil kernel: vxpocket: too many cards found
Oct 28 01:19:29 asil kernel: snd-vxpocket: probe of 0.0 failed with error -22
Oct 28 01:19:29 asil kernel: vxpocket: too many cards found
Oct 28 01:19:29 asil kernel: snd-vxpocket: probe of 0.0 failed with error -22


vxloader says:
vxloader: no VX-compatible cards found


cardctl info:
PRODID_1="Digigram"
PRODID_2="VX-POCKET440"
PRODID_3="V1.0"
PRODID_4="R1.0"
MANFID=01f1,0100
FUNCID=254


cardctl ident:
Socket 0:
  product info: "Digigram", "VX-POCKET440", "V1.0", "R1.0"
  manfid: 0x01f1, 0x0100
  function: 254 ((null))


Which looks fine to me.

 
I understand that hotplug is supposed to be able to load firmware
nowdays, but where can I find the firmware? is it the same as in the
alsa-frmware package? and in that case which files, and where do I put
them?


Cheers,
//Anders

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

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

* Re: vxpocket 440
  2006-10-27  9:37 vxpocket 440 Anders Johansson
@ 2006-10-28 11:31 ` Anders Johansson
  2006-10-30  9:22   ` Anders Johansson
  0 siblings, 1 reply; 4+ messages in thread
From: Anders Johansson @ 2006-10-28 11:31 UTC (permalink / raw)
  To: alsa-devel

Hi,

I have had some more luck getting this thing going. I rebooted and
managed to get alsamixer working. Also compiled and installed kernel 
2.6.18.1 (SMP, no preemption), with alsa message logging. 


This is what the boot messages in syslog looks like:

Oct 28 18:21:07 asil kernel: ALSA sound/pcmcia/vx/vxpocket.c:220: vxpocket_config called
Oct 28 18:21:07 asil kernel: ALSA sound/pcmcia/vx/vxpocket.c:245: VX-pocket 440 is detected
Oct 28 18:21:07 asil kernel: ALSA sound/pcmcia/vx/vxpocket.c:188: vxpocket assign resources: port = 0x2100, irq = 3
Oct 28 18:21:07 asil kernel: ALSA sound/pcmcia/vx/vxp_ops.c:170: check ISR_HF2
Oct 28 18:21:07 asil kernel: ALSA sound/pcmcia/vx/vxp_ops.c:205: xilinx: dsp size received 0x577b, orig 0x577b
Oct 28 18:21:07 asil kernel: ALSA sound/drivers/vx/vx_uer.c:214: set internal clock to 0x4b from freq 48000
Oct 28 18:21:07 asil kernel: ALSA sound/drivers/vx/vx_core.c:700: checksum = 0xabaa657f
Oct 28 18:21:07 asil kernel: ALSA sound/drivers/vx/vx_pcm.c:261: vx_set_ibl: size = 2016, max = 2016, min = 504, gran = 126
Oct 28 18:21:07 asil kernel: ALSA sound/drivers/vx/vx_pcm.c:261: vx_set_ibl: size = 504, max = 2016, min = 504, gran = 126


Why is there ony one message about loaded firmware? I thought there
were 4 firmware files?



I have tried accessing the card, both directly using arecord, aplay
and using JACK, but with no luck, only some data gets in or out from the
card. Trying to use JACK results in the following error messages:

Oct 28 18:24:41 asil kernel: ALSA sound/drivers/vx/vx_uer.c:214: set internal clock to 0x571 from freq 8000
Oct 28 18:24:42 asil kernel: ALSA sound/drivers/vx/vx_core.c:299: <7>ALSA sound/drivers/vx/vx_core.c:299: msg got error = 0x802a15 at
cmd[0]
Oct 28 18:24:42 asil kernel: ALSA sound/drivers/vx/vx_pcm.c:795: vx: cannot start stream
Oct 28 18:24:42 asil kernel: ALSA sound/drivers/vx/vx_pcm.c:687: error hbuffer
Oct 28 18:24:42 asil kernel: ALSA sound/drivers/vx/vx_core.c:299: msg got error = 0xcfe at cmd[0]
Oct 28 18:24:43 asil kernel: ALSA sound/drivers/vx/vx_core.c:69: vx_check_reg_bit: timeout, reg=ISR, mask=0x10, val=0x7

I have managed to get JACK working with bigger bigger buffer size
(512 samples) but I don't get any sound through.


Playing a wav file works, but results in the following error 
messages:

Oct 28 18:35:36 asil kernel: ALSA sound/drivers/vx/vx_core.c:299: msg got error = 0xc00 at cmd[0]
Oct 28 18:35:36 asil kernel: ALSA sound/drivers/vx/vx_pcm.c:799: vx: cannot start pipe


Recording works sometimes, but sometimes only for a fraction of a
second, after that only noise is recorded.


Playing and recording simultaneously (using arecord | aplay) hardly
ever works, and no error messages are logged. When there is an error
message it is most often the same as for playback.


The biggest problem is that the machine often hangs when the sound
card is used. I have not been able to reproduce the problem in any
consistent way (use of uninitialised pointer perhaps)?



I really need to get the card working, downgrading is not an option
due to a very new chipset. 


Please help me,
//Anders

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

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

* Re: vxpocket 440
  2006-10-28 11:31 ` Anders Johansson
@ 2006-10-30  9:22   ` Anders Johansson
  0 siblings, 0 replies; 4+ messages in thread
From: Anders Johansson @ 2006-10-30  9:22 UTC (permalink / raw)
  To: alsa-devel

Hi,

I have found 3 consistent ways to reproduce the hard locks. 

1. Unplug the power cord. 
   If the sound card is in use, the application using the sound card hangs.
   When the application is restarted, the computer locks.
   The sound card is not in use when the cord is unplugged the
   computer locks the next time it is accessed (either via mixer or
   sound I/O).

2. Access mixer and sound I/O simultaneously. 

3. On buffer overrun. 
   If the CPU is under load, so that ALSA is dropping
   samples, the application using the sound card sometimes hangs.
   The next time the sound card is accessed the computer locks.


I still get a variety of error messages in the syslog before the card
hangs:

Type 1:
Oct 30 16:31:10 asil kernel: ALSA sound/drivers/vx/vx_core.c:69:
<7>ALSA sound/drivers/vx/vx_core.c:69: vx_check_reg_bit: timeout,
reg=ISR, mask=0x10, val=0x3
Oct 30 16:31:10 asil kernel: ALSA sound/drivers/vx/vx_core.c:282:
vx_send_msg: send IRQ_MESSAGE error
Oct 30 16:31:10 asil kernel: ALSA sound/drivers/vx/vx_pcm.c:799: vx:
cannot start pipe

Type 2 sometimes repeated several times:
Oct 30 16:16:52 asil kernel: ALSA sound/drivers/vx/vx_core.c:69:
vx_check_reg_bit: timeout, reg=ISR, mask=0x2, val=0x0
Oct 30 16:16:52 asil kernel: ALSA sound/drivers/vx/vx_core.c:271:
vx_send_msg: wait tx empty error

Type 3:
Oct 30 15:44:57 asil kernel: ALSA sound/drivers/vx/vx_core.c:299: msg
got error = 0x0 at cmd[0]
Oct 30 15:44:57 asil kernel: ALSA sound/drivers/vx/vx_pcm.c:795: vx:
cannot start stream


Also if the card is ejected, it will not get detected when reinserted.

Could this be a problem with the pcmcia bridge or the chipset? Do you
think a bios upgrade could help?


Cheers,
//Anders

P.S. If no one can help me, please tell me that so that I can stop sending
mails to the list, or redirect me to a list where I can get help. D.S.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

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

end of thread, other threads:[~2006-10-30  9:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27  9:37 vxpocket 440 Anders Johansson
2006-10-28 11:31 ` Anders Johansson
2006-10-30  9:22   ` Anders Johansson
  -- strict thread matches above, loose matches on Subject: below --
2004-05-08  8:54 VXPocket 440 Anders Johansson

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