All of lore.kernel.org
 help / color / mirror / Atom feed
* playback write error (DMA or IRQ trouble)
@ 2008-06-02  7:09 Harsha priya gupta
  2008-06-02  7:32 ` Takashi Iwai
  0 siblings, 1 reply; 15+ messages in thread
From: Harsha priya gupta @ 2008-06-02  7:09 UTC (permalink / raw)
  To: Alsa-devel

Can anyone give me a clue as to when i would get such an error?

-- 
-Harsha

^ permalink raw reply	[flat|nested] 15+ messages in thread
* playback write error(DMA or IRQ trouble?)
@ 2011-05-20  5:10 innoway
  2011-05-20  5:22 ` Raymond Yau
  0 siblings, 1 reply; 15+ messages in thread
From: innoway @ 2011-05-20  5:10 UTC (permalink / raw)
  To: alsa-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1909 bytes --]

 I develop an embedded system on the Linux board with Freescale i.MX27
(ARM processor).   I succeed on sound, which is transferred using
Synchronous Serial Interface (SSI). It,s fine and then I try to do test
of inserting or pulling out a USB memory stick in the USB host connector
while sounding.   I get the following error message from
snd_pcm_lib_write1() of <linux src>/sound /core/pcm_lib.c after waiting
for a while (about 10sec).       playback  write error (DMA or IRQ
trouble?)   and then from snd_pcm_drain() of <linux
src>/sound/core/pcm_native.c      playback drain error (DMA or IRQ
trouble?)   (No sound during this period)

and then it is sounding again.

I want to prevent the sound from stopping even if something happens
suddenly such as the USB memory stick is plugged in or out.

I try to fix the above programs, but I don't succeed.

Can someone give me the clue?   [13:21:38]:/proc# cat interrupts
           CPU0
 12:       3456         -  mxc_i2c
 16:        141          -  CSPI_IRQ
 18:        952          -  mxcintuart
 26:    1051255     -  MXC Timer Tick
 28:      29446        -  PCMCIA IRQ, ide0
 50:         33           -  fec
 54:        793          -  ehci_hcd:usb1
 56:          1            -  arc_udc
 61:          0            -  LCDC
117:          0           -  m66291_udc
147:          0           -  PMIC_IRQ
157:     337179     -  SMSC_LAN911x_ISR
176:          0           -  fec(MII)

[13:35:03]:/proc# cat dma
dma channel  0: unused
dma channel  1: unused
dma channel  2: unused
dma channel  3: unused
dma channel  4: unused
dma channel  5: unused
dma channel  6: unused
dma channel  7: unused
dma channel  8: unused
dma channel  9: unused
dma channel 10: unused
dma channel 11: unused
dma channel 12: unused
dma channel 13: unused
dma channel 14: unused
dma channel 15: unused   Thank you

Masanori Inoue

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



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: playback write error(DMA or IRQ trouble?)
@ 2011-05-22  6:46 innoway
  0 siblings, 0 replies; 15+ messages in thread
From: innoway @ 2011-05-22  6:46 UTC (permalink / raw)
  To: Raymond Yau; +Cc: alsa-devel

 I'll try to fix the programs from this Monday and I think I have to
learn alsa system more deeply because I 'm a newcomer about it. Thank you

  2011/5/20 <innoway@mymelody.com>:
  > I develop an embedded system on the Linux board with Freescale
  i.MX27
  > (ARM processor). I succeed on sound, which is transferred using
  > Synchronous Serial Interface (SSI). It,s fine and then I try to do
  test
  > of inserting or pulling out a USB memory stick in the USB host
  connector
  > while sounding. I get the following error message from
  > snd_pcm_lib_write1() of <linux src>/sound /core/pcm_lib.c after
  waiting
  > for a while (about 10sec). playback write error (DMA or IRQ
  > trouble?) and then from snd_pcm_drain() of <linux
  > src>/sound/core/pcm_native.c playback drain error (DMA or IRQ
  > trouble?) (No sound during this period)
  >
  > and then it is sounding again.
  >
  > I want to prevent the sound from stopping even if something happens
  > suddenly such as the USB memory stick is plugged in or out.
  >
  > I try to fix the above programs, but I don't succeed.
  >
  > Can someone give me the clue? [13:21:38]:/proc# cat interrupts
  > CPU0
  > 12: 3456 - mxc_i2c
  > 16: 141 - CSPI_IRQ
  > 18: 952 - mxcintuart
  > 26: 1051255 - MXC Timer Tick
  > 28: 29446 - PCMCIA IRQ, ide0
  > 50: 33 - fec
  > 54: 793 - ehci_hcd:usb1
  > 56: 1 - arc_udc
  > 61: 0 - LCDC
  > 117: 0 - m66291_udc
  > 147: 0 - PMIC_IRQ
  > 157: 337179 - SMSC_LAN911x_ISR
  > 176: 0 - fec(MII)
  >
  > [13:35:03]:/proc# cat dma
  > dma channel 0: unused
  > dma channel 1: unused
  > dma channel 2: unused
  > dma channel 3: unused
  > dma channel 4: unused
  > dma channel 5: unused
  > dma channel 6: unused
  > dma channel 7: unused
  > dma channel 8: unused
  > dma channel 9: unused
  > dma channel 10: unused
  > dma channel 11: unused
  > dma channel 12: unused
  > dma channel 13: unused
  > dma channel 14: unused
  > dma channel 15: unused Thank you
  >
  > Masanori Inoue
  >

  This error also occur in snd-hda-intel

  echo 32768 > /proc/asound/Intel/pcm0p/sub0/prealloc

  speaker-test which use maximum buffer size also have (DMA or IRQ
  error
  in system log

  THis seem to be related to the schedule_timeout

  tout = schedule_timeout(msecs_to_jiffies(10000));

  I guess this is why PA server treat avail > 10 seconds is invalid
  _______________________________________________
  Alsa-devel mailing list
  Alsa-devel@alsa-project.org
  http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2011-05-22  6:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-02  7:09 playback write error (DMA or IRQ trouble) Harsha priya gupta
2008-06-02  7:32 ` Takashi Iwai
2008-06-02  7:56   ` Harsha priya gupta
2008-06-02  8:07     ` Takashi Iwai
2008-06-02  9:03       ` Harsha priya gupta
2008-06-02  9:24         ` Takashi Iwai
2008-06-02  9:36           ` Harsha priya gupta
2008-06-02  9:40             ` Takashi Iwai
2008-06-02  9:46               ` Harsha priya gupta
2008-06-02 10:02                 ` Takashi Iwai
2008-06-02 10:09                   ` Harsha priya gupta
2008-06-02 10:11                     ` Takashi Iwai
2011-05-20  5:10 playback write error(DMA or IRQ trouble?) innoway
2011-05-20  5:22 ` Raymond Yau
2011-05-22  6:46 innoway

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.