This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DVRRDK auido capture

Other Parts Discussed in Thread: TVP5158

Hi,

I have an audio issue in DVRRDK platform. Audio data will move to neighbor channel (channel 3) after an EPIPE error when only an input to channel 1. The log info as follow:

 frame=47,buffer=0x71,0xfb,0xb,0x0

frame=209,buffer=0x54,0xe9,0x8,0x0

frame=256,buffer=0x9b,0xf7,0xd,0x0

frame=256,buffer=0x65,0xfa,0xa,0x0

frame=256,buffer=0x14,0xc,0xfe,0xff

frame=256,buffer=0x5b,0xfa,0x13,0x0

frame=256,buffer=0x92,0xff,0xff,0xff

frame=256,buffer=0x5c,0x7,0x0,0x0

frame=256,buffer=0xf9,0xf6,0x2,0x0

frame=256,buffer=0x48,0xfd,0x16,0x0

frame=256,buffer=0x4e,0x1,0x0,0x0

frame=256,buffer=0x94,0xf7,0x9,0x0

frame=256,buffer=0xcf,0x0,0xe5,0xff

frame=256,buffer=0xe6,0xfa,0xff,0xff

frame=256,buffer=0x49,0xf5,0x14,0x0

frame=-32,buffer=0x23,0x2,0xff,0xff

plughw:0,0: overrun !!!

buffer=0x2ad11ce8

read_count=1474234

frame=-11,buffer=0x23,0x2,0xff,0xff

frame=256,buffer=0x0,0x0,0xc5,0x25

Buffer=0x2ad11ce8

frame=29,buffer=0xb,0x0,0x91,0x24

frame=227,buffer=0x4,0x0,0x34,0x24

frame=256,buffer=0xf4,0xff,0x23,0x20

frame=55,buffer=0xfc,0xff,0xa9,0x24

frame=201,buffer=0x17,0x0,0x4a,0xd8

frame=256,buffer=0xf4,0xff,0x3b,0x20

frame=62,buffer=0x1,0x0,0xe0,0x20

frame=194,buffer=0x8,0x0,0x1f,0x27

frame=256,buffer=0xf6,0xff,0xf5,0x21

frame=168,buffer=0xfc,0xff,0x75,0x25

frame=88,buffer=0xfb,0xff,0x6c,0xe0

frame=256,buffer=0x12,0x0,0xca,0x1b

frame=57,buffer=0x8,0x0,0x2,0x20

frame=199,buffer=0x9,0x0,0x94,0xe7

frame=256,buffer=0xf5,0xff,0xbb,0x20

 

Buffer data are audioCaptureBuf[2][3][4][5], that is channel 1 and channel 3 audio samples. Before -32(EPIPE), buffer[2][3] is validate audio date, while buffer[4][5] isn't. But after EPIPE error, buffer[2][3] isn't validate audio date, and buffer[4][5] is. It seems the data in capture buffer move two bytes.

  I modified AUDIO_SAMPLES_TO_READ_PER_CHANNEL from 250 to 256, which will decrease the frequency of EPIPE error, but can't remove it. And I print the buffer address before and after EPIPE, no shift. Sometimes next EPIPE error will move the data back, and sometimes not, there is no rule.

   My platform is DVRRDK_V5B, software is 03.00.00.00. Audio input tvp5158. Please kindly give me some suggestion, thanks!