Opened 3 years ago

Closed 3 years ago

#11219 closed defect (fixed)

aplay broken in xo 1.75

Reported by: godiard Owned by: saadia
Priority: normal Milestone: 1.75-software
Component: kernel Version: Development build as of this date
Keywords: Cc:
Blocked By: #10831 Blocking:
Deployments affected: Action Needed: no action
Verified: no

Description (last modified by Quozl)

The activity Distance use the binaries aplay and arecord in the package alsa-utils
to play a sound in two xos and record the result and calculate the distance.
The last version in ASLO [1] is working in os3, but in os41, can't play the test sound
the commands used are:

/usr/bin/aplay fname

/usr/bin/arecord --file-type=raw --channels=1 --format=S16_LE --rate=48000 --duration=10  fname

I know record is not working in xo-1.75 but play should be working.

The test sound file can be downloaded from [2]

In a xo-1.75 if in the command line I do:

[olpc@localhost ~]$ /usr/bin/aplay ]outtqh4Xr
]outtqh4Xr: No such file or directory
[olpc@localhost ~]$ /usr/bin/aplay outtqh4Xr
Playing WAVE 'outtqh4Xr' : Unsigned 8 bit, Rate 48000 Hz, Stereo
ALSA lib pcm_mmap.c:369:(snd_pcm_mmap) mmap failed: No such device or address
aplay: set_params:1116: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  U8
SUBFORMAT:  STD
SAMPLE_BITS: 8
FRAME_BITS: 16
CHANNELS: 2
RATE: 48000
PERIOD_TIME: 5000
PERIOD_SIZE: 240
PERIOD_BYTES: 480
PERIODS: 4
BUFFER_TIME: 20000
BUFFER_SIZE: 960
BUFFER_BYTES: 1920
TICK_TIME: 0
/usr/bin/aplay -l

show a card

Attachments (1)

outtqh4Xr (32.0 KB) - added by godiard 3 years ago.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by godiard

comment:1 Changed 3 years ago by godiard

Attached is the file used to test aplay

comment:2 Changed 3 years ago by Quozl

  • Action Needed changed from diagnose to no action
  • Blocked By 10831 added
  • Component changed from not assigned to kernel
  • Description modified (diff)
  • Version changed from not specified to Development build as of this date

No action required until kernel audio driver is feature complete, then please retest.

comment:3 Changed 3 years ago by saadia

  • Action Needed changed from no action to test in build

comment:4 Changed 3 years ago by greenfeld

  • Action Needed changed from test in build to no action
  • Resolution set to fixed
  • Status changed from new to closed

Aplay seems to work in 11.3.1 os20, although the test file attached to this ticket is prone to causing the audio channel swap issue fixed by #11411 for later-made recordings.

Note: See TracTickets for help on using tickets.