#12606 NORM 4-softw: xo-4 can't record and play sound at the same time

Zarro Boogs per Child bugtracker at laptop.org
Thu Mar 7 15:11:03 EST 2013


#12606: xo-4 can't record and play sound at the same time
---------------------+------------------------------------------------------
 Reporter:  godiard  |                 Owner:               
     Type:  defect   |                Status:  new          
 Priority:  normal   |             Milestone:  4-software   
Component:  kernel   |               Version:  not specified
 Keywords:           |           Next_action:  diagnose     
 Verified:  0        |   Deployment_affected:               
Blockedby:           |              Blocking:  11596        
---------------------+------------------------------------------------------
 Distance activity start recording audio, play a noise in both machines and
 finish recording, later process the recording and use the time difference
 between the noise generated in both xos to calculate the distance.

 The xo-4 can't play & record at the same time sound with different ratio
 or format, then I have modified the Distance activity to have both in
 format S16_LE, 44Kb, Mono.

 Anyway, the record stops when the noise played ends, then is not possible
 for the activity calculate the distance.

 Is possible reproduce the error form the command line:

 1) Download http://dev.laptop.org/~gonzalo/noise-16bits-mono

 2) Record:

 {{{
 [olpc at xo-1e-88-13 logs]$ arecord  --file-type=raw --channels=1
 --format=S16_LE --rate=48000  /tmp/test5 &
 [1] 5353
 Recording raw data '/tmp/test5' : Signed 16 bit Little Endian, Rate 48000
 Hz, Mono
 }}}

 3) Sing, sing a song....

 4) Start playing the noise (continue singing)

 {{{
 [olpc at xo-1e-88-13 logs]$ aplay /home/olpc/noise-16bits-mono
 Playing WAVE '/home/olpc/noise-16bits-mono' : Signed 16 bit Little Endian,
 Rate 48000 Hz, Mono
 [olpc at xo-1e-88-13 logs]$ arecord: pcm_read:1828: read error: Error de
 entrada/salida
 5353
 [1]+  Salida 1                arecord --file-type=raw --channels=1
 --format=S16_LE --rate=48000 /tmp/test5
 }}}

 RESULT: The recording process ends with a error and the recorded sound
 finish _after_ the noise is played (the noise is included in the
 recording)

 The recorded sound can be played with:

 aplay --file-type=raw --channels=1 --format=S16_LE --rate=48000 /tmp/test5

-- 
Ticket URL: <http://dev.laptop.org/ticket/12606>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list