Ticket #11219 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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:
Action Needed: no action Verified: no
Deployments affected: Blocked By: #10831
Blocking:

Description (last modified by Quozl) (diff)

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

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

Change History

Changed 3 years ago by godiard

Changed 3 years ago by godiard

Attached is the file used to test aplay

Changed 3 years ago by Quozl

  • version changed from not specified to Development build as of this date
  • next_action changed from diagnose to no action
  • component changed from not assigned to kernel
  • description modified (diff)
  • blockedby 10831 added

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

Changed 3 years ago by saadia

  • next_action changed from no action to test in build

Changed 3 years ago by greenfeld

  • status changed from new to closed
  • next_action changed from test in build to no action
  • resolution set to fixed

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.