Skip to contentSkip to conversation

DMA interrupt not getting triggered(nailed the problem need solution)

DISCUSSION ANISH KUMAR 2 participants 2 messages Feb 8, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

If the initial hardware state happens to result in LRCLK being where the lrsync() function is trying to get it then the driver will start up, but the misclocking of the configuration will result in ALSA detecting an error which will eventually result in a restart of the audio stream.

Mark in my case it is not restarting the audio stream(though it is trying to call trigger again for restarting) because in s3c_snd_lrsync function again i am getting time out(ETIMEDOUT).

iiscon = readl(s3c_i2s.regs + S3C_IISCON);
if (iiscon & S3C_IISCON_LRI)
break;

This LRI register bit is not getting set properly causing timeout.How this situation is not coming always(4/10)?? And who should suppose to set it?

If my machine driver had a problem then this should have come always??

Thanks for your reply.

#1 lore raw
Quoted 7 lines · ANISH KUMAR
Quoted 4 lines

If the initial hardware state happens to result in LRCLK being where the lrsync() function is trying to get it then the driver will start up, but the misclocking of the configuration will result in ALSA detecting an error which will eventually result in a restart of the audio stream.

Mark in my case it is not restarting the audio stream(though it is trying to call trigger again for restarting) because in s3c_snd_lrsync function again i am getting time out(ETIMEDOUT).

...and the reason it is back in lrsync() is that it's trying to restart the audio stream.

Quoted 2 lines

This LRI register bit is not getting set properly causing timeout.How this situation is not coming always(4/10)?? And who should suppose to set it?

The LRI register reports the hardware state and so is updated autonomously by the hardware.

Quoted 1 line

If my machine driver had a problem then this should have come always??

As I said in the e-mail to which you are replying:

| If the initial hardware state happens to result in LRCLK being where the
| lrsync() function is trying to get it then the driver will start up, but
| the misclocking of the configuration will result in ALSA detecting an
| error which will eventually result in a restart of the audio stream.