Sound output fails

Bug #2018657 reported by Heinrich Schuchardt
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-allwinner (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am running Ubuntu Lunar on the LicheeRV dock with a loudspeaker connected.

The 'aplay -l' command shows that a playback device exists:

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sun20icodec [sun20i-codec], device 0: sun20i-codec snd-soc-dummy-dai-0 [sun20i-codec snd-soc-dummy-dai-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

But playback fails:

$ sudo aplay PinkPanther30.wav
Playing WAVE 'PinkPanther30.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
aplay: pcm_write:2127: write error: Input/output error

Best regards

Heinrich

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: linux-image-5.19.0-1009-allwinner 5.19.0-1009.9
ProcVersionSignature: Ubuntu 5.19.0-1009.9-allwinner 5.19.17
Uname: Linux 5.19.0-1009-allwinner riscv64
ApportVersion: 2.26.1-0ubuntu2
Architecture: riscv64
CasperMD5CheckResult: unknown
CloudArchitecture: riscv64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20230415.1
CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
Date: Sat May 6 18:37:23 2023
ProcCpuinfoMinimal:
 processor : 0
 hart : 0
 isa : rv64imafdc
 mmu : sv39
 uarch : thead,c906
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=vt220
SourcePackage: linux-allwinner
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

After several successful calls in file alsa-lib/src/pcm/pcm.c, function snd_pcm_hw_writei()

   ioctl(fd, SNDRV_PCM_IOCTL_WRITEI_FRAMES, &xferi)

returns an error EIO with fd pointing to /dev/snd/pcmC0D0p.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

As the error message seems to be created on the last frame, the main question is why there is not sound output at all.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-allwinner (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.