Christos

Members
  • Content count

    247
  • Joined

  • Last visited

About Christos

  • Rank
    Elite member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

395 profile views
  1. H3 I2S0 DT overlay

    Well, this is what I initialy done -> https://forum.armbian.com/topic/5643-h3-i2s0-dt-overlay/?do=findComment&comment=43519 I did verify in the generated .o/.ko that the dummy codec device (which has both concurrent capture/playback) gets compiled in the source tree. But for some unknown reason it did not work with the new I2S. Could be my overlay, dont know. Also, that has no HW limitations, it can be used from anyone without hardware (if the underline I2S driver is ok of course..)
  2. Kernel 4.14 for sun8i h3 wanted

    @jernej The developer is a very nice guy, after all its just free software and he offers his time for free on this. The sunxi mainline effort page though should have been detailed on what has been done and what is missing. Now people got expectations based on it.
  3. Kernel 4.14 for sun8i h3 wanted

    @zador.blood.stained HDMI's audio is I2S2, thus without an underlying I2S driver HDMI is without audio, so the I2S driver got quickly out with minimal functionality just to accommodate that. Anyway, IMHO it looks there is plenty of work that needs to be done in that field of I2S.
  4. Kernel 4.14 for sun8i h3 wanted

    @jernej Tried quite a bit to get things to work regarding the I2S0, yet it looks the driver that was included in 4.14 is very limited, most likely because from what I understand it was meant mainly to give some kind of working status to the hdmi.. and thats it, nothing else. IMHO someone has to correct the sunxi mainline effort table at least stating what this I2S driver actualy does and what is pending so we stop banging our heads on the wall wondering why stuff dont work.
  5. Kernel 4.14 for sun8i h3 wanted

    @ssuloev Thanks, but it seems there are more underlying problems than simply adding this overlay -> https://forum.armbian.com/topic/5643-h3-i2s0-dt-overlay/ So far, have seen no working result on having playback and capture and additionaly it looks there are I2S driver problems with 192KHz or at 24 and 32bits.
  6. Kernel 4.14 for sun8i h3 wanted

    Is there any chance to have a 'working' overlay for I2S0? Up to now we were not able to have a playback and capture overlay for the new I2S driver (we also found the timing issues @ssuloev mentions as really frustrating since 192KHz and 24/32bit do not work either)
  7. Kernel Headers 5.34

    Since you are developing kernel code, then IMHO is better to build Armbian yourself, the process is straightforward and generates a complete image for SD. In the files that got build, one .deb is the required headers and you can install it manually with dpkg later on. -> https://docs.armbian.com/Developer-Guide_Build-Preparation/
  8. H3 I2S0 DT overlay

    @Valery Rezvyakov I'm also a novice regarding DT so trying to find any info available. Either way you did an excellent job here. Thank you very much! Hope someone can give us a helping hand here on how to have a combined overlay.
  9. H3 I2S0 DT overlay

    @Valery Rezvyakov Many thanks, very nice. How can we have both of those overlays working together, meaning to have both playback and capture devices present. As it is now, it enables either playback or capture, but we need both of them active. Tried to enable both overlays, but only one of them gets through to pulseaudio/alsa. In the armbianEnv.txt file, in the line specifying the overlays, whichever overlay gets there last, only that device is shown in alsa If the line is user_overlays=sun8i-h3-I2S-out i2s-soundcard-overlay then root@orangepipc:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: allwinnerhdmi [allwinner,hdmi], device 0: 1c22800.i2s-i2s-hifi i2s-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@orangepipc:~# arecord -l **** List of CAPTURE Hardware Devices **** card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: adau7002 [adau7002], device 0: 1c22000.i2s-adau7002-hifi adau7002-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@orangepipc:~# we have new capture but no new playback If the line is user_overlays=i2s-soundcard-overlay sun8i-h3-I2S-out then root@orangepipc:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: I2Smaster [I2S-master], device 0: 1c22000.i2s-pcm5102a-hifi pcm5102a-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: allwinnerhdmi [allwinner,hdmi], device 0: 1c22800.i2s-i2s-hifi i2s-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@orangepipc:~# arecord -l **** List of CAPTURE Hardware Devices **** card 2: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@orangepipc:~# we have new playback but no new capture How can we have both of them active? Playback and Capture?
  10. H3 I2S0 DT overlay

    Hi @Valery Rezvyakov Thank you for this solution, it does produce the output/playback device indeed. root@orangepipc:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: I2Smaster [I2S-master], device 0: 1c22000.i2s-pcm5102a-hifi pcm5102a-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: allwinnerhdmi [allwinner,hdmi], device 0: 1c22800.i2s-i2s-hifi i2s-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@orangepipc:~# Is there any way to have also the input enabled? root@orangepipc:~# arecord -l **** List of CAPTURE Hardware Devices **** card 1: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 root@orangepipc:~# Currently it is only the playback visible, is there any codec that we could use in order to give us the record input too?
  11. H3 I2S0 DT overlay

    BTW, that test does not need any actual HW present, it can be done with just the board itself. Thus anyone can try it and see the results.
  12. H3 I2S0 DT overlay

    Hi @Valery Rezvyakov Thank you for the hint, I understand that you use the pcm5102a codec which is the same as a dummy linux codec. Yet after I tried it, is again not showing up. The I2S0 is at i2s@01c22000 and that is not shown up in the dmesg although uboot DT is not complaining again with your modified overlay. Again the uboot DT is passing ok without error, dmesg is not showing I2S0 and aplay -l is not showing it I'm attaching the related dmesg. dmesg2.txt
  13. H3 I2S0 DT overlay

    @zador.blood.stained Most likely I do something in error here.. This is the overlay I use /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target = <&i2s0>; __overlay__ { pinctrl-names = "default"; pinctrl-0 = <&i2s0_pins>; status = "okay"; }; }; fragment@1 { target-path = "/"; __overlay__ { codec_dummy:codec_dummy { #sound-dai-cells = <0>; compatible = "linux,snd-soc-dummy"; status = "okay"; }; }; }; fragment@2 { target-path = "/"; __overlay__ { sound { compatible = "simple-audio-card"; simple-audio-card,name = "simple-card-test"; status = "okay"; simple-audio-card,cpu { sound-dai = <&i2s0>; }; simple-audio-card,codec { sound-dai = <&codec_dummy>; }; }; }; }; }; Uboot is not complaining on boot Found U-Boot script /boot/boot.scr 3708 bytes read in 203 ms (17.6 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 237 bytes read in 164 ms (1000 Bytes/s) 5700002 bytes read in 539 ms (10.1 MiB/s) 6790768 bytes read in 610 ms (10.6 MiB/s) Found mainline kernel configuration 31409 bytes read in 1097 ms (27.3 KiB/s) 1164 bytes read in 169 ms (5.9 KiB/s) Applying user provided DT overlay simple-codec-overlay.dtbo 4179 bytes read in 686 ms (5.9 KiB/s) Applying kernel provided DT fixup script (sun8i-h3-fixup.scr) ## Executing script at 44000000 ## Loading init Ramdisk from Legacy Image at 43300000 ... but I2S0 is not present, either with aplay -l nor in dmesg. Is there something that I need to change in my overlay or is some kind of bug?.. uboot.txt simple-codec-overlay.dts dmesg.txt
  14. H3 I2S0 DT overlay

    Hmm.. tried by using the 'snd-soc-dummy' generic linux codec, as you mention this might not be present, right? For pins, it looks they are already patched in when I do the 'Mainline' build selection. -> https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/00-20-add-i2s-DT-pins.patch Since this patch is there, do I need to do anything more for them?
  15. Hi, OPiPC with latest mainline (ARMBIAN 5.34 user-built Ubuntu 16.04.3 LTS 4.13.12-sunxi). Need to test the I2S0. From what I see in patches, the I2S driver code is already there so I just need an overlay to use it. Is there any DT overlay for using the H3 I2S0 with any codec ? Even as a generic simple-audio-codec ? Christos