[Letux-kernel] [RFC v2 0/5] CI20 sound
H. Nikolaus Schaller
hns at goldelico.com
Sun May 2 11:24:43 CEST 2021
> Am 02.05.2021 um 11:16 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>
>
> It now basically works:
>
> root at letux:~# aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: ci20 [ci20], device 0: headphones 100200a4.audio-codec-0 [headphones 100200a4.audio-codec-0]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 0: ci20 [ci20], device 1: hdmi i2s-hifi-1 [hdmi i2s-hifi-1]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> root at letux:~# amixer
> Simple mixer control Master,0
> Capabilities: pvolume cvolume pswitch pswitch-joined
> Playback channels: Front Left - Front Right
> Capture channels: Front Left - Front Right
> Limits: Playback 0 - 31 Capture 0 - 63
> Front Left: Playback 25 [81%] [on] Capture 51 [81%]
> Front Right: Playback 25 [81%] [on] Capture 51 [81%]
> Simple mixer control Headphone,0
> Capabilities: pvolume pswitch pswitch-joined
> Playback channels: Front Left - Front Right
> Limits: Playback 0 - 31
> Mono:
> Front Left: Playback 22 [71%] [on]
> Front Right: Playback 22 [71%] [on]
> Simple mixer control Mic,0
> Capabilities: cvolume cvolume-joined cswitch cswitch-joined
> Capture channels: Mono
> Limits: Capture 0 - 7
> Mono: Capture 0 [0%] [off]
> Simple mixer control ADC,0
> Capabilities: cenum
> Items: AIP1 AIP2
> Item0: AIP1
> root at letux:~#
>
> Except that there is no sound but an I/O error and the aplay command takes longer than expected:
>
> root at letux:~# time aplay /usr/share/sounds/alsa/Front_Center.wav
> Playing WAVE /usr/share/sounds/alsa/Front_Center.wav : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
> aplay: pcm_write:1939: write error: Input/output error
>
> real 0m13.141s
> user 0m0.021s
> sys 0m0.012s
> root at letux:~#
BTW: all effects (I/O-error and no sound) and the extra long time seem to be symptoms of a problem
of the jz4740-i2s driver. I have tried with both variants, the upstream one and a variant which I had
patched to be able to access the Codec of the Alpha 400.
The upstream version needs 23 seconds while the patched one just needs these 13 seconds as logged above.
This indicates that there is the same codec communication problem as with the jz4730+codec...
So I think we are narrowing down the issues.
BTW: head set detect on CI20 works after finding the right headset (it is 3.5mm and not 2.5mm
as I originally thought).
BR,
Nikolaus
More information about the Letux-kernel
mailing list