Jump to content

kevinplatt

Members
  • Posts

    3
  • Joined

  • Last visited

  1. Doing a git diff on the two files show that the phandles have changed for various locations which might have caused the devices not to be addressed well. I apologize for lack of activity, I just bought a new laptop recently so I didnt have the build environment ready. I'll try looking at upstream dts changes. And I'll report back once I am able to build images for my nanopi-a64s.
  2. I'll try incorporating the patches into the dev and the next branch of the build to test on my two nanopi-a64. I will be rebuilding the images to test it again on my spare time. Also if successful i might make a PR request so that we can have a supported image. BTW, my use case for this is just having a 7 inch touch screen attached to the nanopi-a64 and it kinda serves as my dashboard for tasks assigned to me and reminders for system administration in the office. Also, having spotifyd on the nanopi and have it play spotify to my bluetooth earphones or switching to wired earphones when they die while i am in the office.
  3. I have two boards of nanopi-a64. after following the instructions here to enable usb and hdmi audio, i've tried also making the audio jack working (at least for audio output). I did the inclusion of a custom board config as stated in post #1 of this thread. Here is my patch file I add to <armbian-build-path>/patch/kernel/sunxi-dev/ I named it xxx-xxx-nanopi-a64-fix-usb-and-audio.patch so that it would be executed last on the patching stage of the build. diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts index 9b9d915..0b671c7 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts @@ -283,3 +283,48 @@ &usbphy { status = "okay"; }; + +&codec { + status = "okay"; +}; + +&codec_analog { + cpvdd-supply = <&reg_eldo1>; + status = "okay"; +}; + +&dai { + status = "okay"; +}; + +&i2s1 { + status = "okay"; +}; + +&i2s2 { + status = "okay"; +}; + +&sound { + simple-audio-card,aux-devs = <&codec_analog>; + simple-audio-card,widgets = "Microphone", "Microphone Jack", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Left DAC", "AIF1 Slot 0 Left", + "Right DAC", "AIF1 Slot 0 Right", + "Headphone Jack", "HP", + "AIF1 Slot 0 Left ADC", "Left ADC", + "AIF1 Slot 0 Right ADC", "Right ADC", + "MIC2", "Microphone Jack"; + status = "okay"; +}; + +&sound_hdmi { + status = "okay"; +}; + +&usb_otg { + dr_mode = "host"; + status = "okay"; +}; + Adding it at the patching stage avoids having to decompile and recompile into dtb and replacing the one at the boot. So far so good, audio on hdmi and the audio jack works, you just have to set the default sink device on pulse audio's settings if you want to use either audio outputs. Be aware though that is needed to hold the linux-dtb-dev-sunxi and linux-dtb-dev-sunxi64 packages so that the patches above wont be lost when running apt-get upgrade.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines