write system call fails

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium, kodachi

write system call fails

Postby veenit_vora » Sun Feb 13, 2011 10:12 am

Hi All,

I am developing a real-time streaming application wherein I receive a DVB-T stream, decode it and play it back real-time. Very frequently the write system call to playback decoded data fails. Could anyone suggest/guide me on how I can work towards resolving this? I am using git flavour of linux and this for DM6467 embedded system from Texas Instruments.

Regards,
Veenit
veenit_vora
 
Posts: 2
Joined: Sun Feb 13, 2011 9:59 am

Re: write system call fails

Postby cesium » Sun Feb 13, 2011 4:56 pm

You should provide the forum a lot more data. For example, paste here output of 'lsmod', 'uname -r', etc.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: write system call fails

Postby veenit_vora » Mon Feb 14, 2011 10:19 pm

Hi,

The output of lsmod is:
Module Size Used by
dsplinkk 101520 0
cmemk 20062 0
tsif_data 8251 4
tsif_control 9302 3 tsif_data
SI2165 22733 1
xc5000 20474 1 SI2165

The output of uname -r is:
2.6.32-rc2-davinci1-svn1601

Regards,
Veenit
veenit_vora
 
Posts: 2
Joined: Sun Feb 13, 2011 9:59 am

Re: write system call fails

Postby cesium » Tue Feb 15, 2011 2:44 am

Well, it's an OSS4 support forum, and you seem to have a problem with something else per lsmod (I don't see any OSS4 or ALSA modules... dsp issue I guess?). Anyhow, did you open the device in blocking or nonblocking mode? I guess the latter? If so, it's possible the write error is just EAGAIN (In which case either you have a different issue, or you'll need to make a buffer there, etc.). You should check the errno returned by write().
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am


Return to Linux

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests