[Letux-kernel] jz4730 sound

H. Nikolaus Schaller hns at goldelico.com
Tue Jan 26 13:39:22 CET 2021


> Am 26.01.2021 um 11:37 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> Seems to be an issue with the routing table in:
> 
> 	sound: sound {
> 		compatible = "simple-scu-audio-card";
> 
> 		simple-audio-card,name = "sound";
> 		simple-audio-card,format = "left_j";
> 		simple-audio-card,bitclock-master = <&sndcodec>;
> 		simple-audio-card,frame-master = <&sndcodec>;
> 
> 		simple-audio-card,convert-rate = <48000>;
> 
> 		simple-audio-card,prefix = "ak4642";
> 		simple-audio-card,routing = "ak4642 Playback", "DAI0 Playback",
> 				"DAI0 Capture", "ak4642 Capture";
> 
> 		sndcpu: simple-audio-card,cpu {
> 			sound-dai = <&i2s>;
> 		};
> 
> 		sndcodec: simple-audio-card,codec {
> 			sound-dai = <&ak4642>;
> 			system-clock-frequency = <11289600>;
> 		};
> 	};

Well, I have commented out the simple-audio-card,routing and now we see a sound card :)

root at letux:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: A400 [Alpha 400], device 0: 10020000.i2s-ak4642-hifi ak4642-hifi-0 [10020000.i2s-ak4642-hifi ak4642-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root at letux:~# 

arecord thinks it should be doing something:

Recording WAVE 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono

but does not time out after given duration. Which means that there are no samples arriving in user-space.
This is to be expected since DMA is likely not working well.

We have a very good start and someone with more experience in ALSA
should be able to fix it...

BR,
Nikolaus



More information about the Letux-kernel mailing list