Jump to content

Recommended Posts

Posted (edited)

I have a question, does anyone know a method to start
in the Opi Lite system the I2S audio interface and in particular I mean the module: PCM5102 / PCM5102a
On my old OrangePi Lite board, sound and audio in the configuration as mentioned above really work great ... but unfortunately the Armbian system that I use is no longer supported. This is the Ubuntu version (xenial) and kernel: 3.4.113-sun8i, I managed to update some programs important to me, e.g. mpd / mpc but not to the latest versions. I also have another version of OrangePI 3 LTS and I know that on this model it is rather impossible to start I2S + PCM5102 so I used a good sound card under USB and it is OK. However, I think that it should be possible on the Pi Lite? so far I have tried such a howto ... but without success.
 

armbian-add-overlay sun8i-h3-I2S-out.dts

entry in the file sun8i-h3-I2S-out.dts :

/dts-v1/;
/plugin/;

/ {
	compatible = "allwinner,sun8i-h3";

 	fragment@0 { 
 		target-path = "/"; 
 		__overlay__ { 
			pcm5102a: pcm5102a {
			#sound-dai-cells = <0>;
			compatible = "ti,pcm5102a";
			pcm510x,format = "i2s";
			};
 		}; 
 	}; 

	fragment@1 {
		target = <&i2s0>;
		__overlay__ {
			status = "okay";
			pinctrl-0 = <&i2s0_pins>;
			sound-dai = <&pcm5102a>;
			pinctrl-names = "default";
		};
	};

	fragment@2 {
		target-path = "/";
		__overlay__ {
			sound_i2s {
				compatible = "simple-audio-card";
				simple-audio-card,name = "I2S-master";
				simple-audio-card,mclk-fs = <256>;
				simple-audio-card,format = "i2s";
		                status = "okay";

				simple-audio-card,cpu {
					sound-dai = <&i2s0>;
				};

				simple-audio-card,codec {
					sound-dai = <&pcm5102a>;
				};
			};
		};
	};
};

and an additional entry in the armbianEnv.txt file

user_overlays=sun8i-h3-I2S-out

I once did it according to another tutorial but it was on the old Ubuntu Xenial system

https://www.dimdim.gr/2016/12/orange-pi-one-lite-as-music-streamers-part-2/

 

It would be useful to update the system and kernel after a dozen or so years 🙂

Edited by kris777

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines