please choosego to mobile | Continue to access the PC version
1234
Return to list Post new posts
Author: Giachi

[SOLVED] audio i2s with OpenElec

[Copy link]

0

threads

20

posts

986

credits

Senior member

Rank: 4

credits
986
Published in 2016-7-16 05:37:17 | Show all floors
PCM 5102 works with OpenELEC.
How to add daudio to hub, i want sound on hdmi and daudio together.

4

threads

1118

posts

9144

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9144
Published in 2016-7-16 17:22:58 | Show all floors
Wolfman replied at 2016-7-15 22:37
PCM 5102 works with OpenELEC.
How to add daudio to hub, i want sound on hdmi and daudio together.

I don't think that is possible. According to script.bin:
  1. [audiohub]
  2. hub_used = 1
  3. codec_used = 1
  4. spdif_used = 0
  5. hdmi_used = 1
Copy code

Only spdif, hdmi and analog can be tied together in one audiohub interface. However, with some ALSA scripting magic, you might succed, but I don't know enough about it to help you. However, I have seen some tutorials about that on net...

0

threads

1

posts

148

credits

Registered member

Rank: 2

credits
148
Published in 2016-7-20 07:35:38 | Show all floors
Edited by kmp56 at 2016-7-20 07:40

My short manual for OPi+

OrangePi+ + OpenElec + DAC audio (PCM5102 or ES9023)

1. Install latest OpenElec image on your microSD card

2. Using bin2fex convert script.bin to script.fex
Oryginal script.bin rename to script.bin.00

3. Edit script.fex :

[pcm0]
daudio_used = 1

; i2s_din = portA21<2><1><default><default>  (PA21 is used: hdmi_cec_pin = portA21<0><0><default><default>)

[w1_para]
w1_used = 0

4. Using fex2bin convert script.fex do script.bin

5. In /storage/.config/ craete autostart.sh file and make it executable

6. Edit autostart.sh :
(
modprobe sunxi-daudiodma0
modprobe sunxi-snddaudio0
modprobe sunxi-daudio0
modprobe snddaudio0
) &

7. Connect your DAC (PCM5102 or ES9023)

8. Run OpenElec and configure sound source.

Works greate for me !

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

4

threads

53

posts

2931

credits

Gold member

Rank: 6Rank: 6

credits
2931
 Author| Published in 2016-7-23 05:40:01 | Show all floors
Good!     

0

threads

20

posts

986

credits

Senior member

Rank: 4

credits
986
Published in 2016-8-15 20:11:15 | Show all floors
Hello.
I2S stop working with latest image.
Please help.

0

threads

20

posts

986

credits

Senior member

Rank: 4

credits
986
Published in 2016-8-15 20:13:45 | Show all floors
lsmod shows that modules are loaded but no daudio card  aplay - l show.

3

threads

15

posts

211

credits

Intermediate member

Rank: 3Rank: 3

credits
211
Published in 2016-8-15 20:27:01 | Show all floors
Thats because you need to patch scripts.bin again

0

threads

20

posts

986

credits

Senior member

Rank: 4

credits
986
Published in 2016-8-15 22:05:04 | Show all floors
Edited by Wolfman at 2016-8-15 22:08

I have changed script.bin but there is no daudio card in openelec options like it was.I did only manual update not new image.

3

threads

15

posts

211

credits

Intermediate member

Rank: 3Rank: 3

credits
211
Published in 2016-8-16 02:13:50 | Show all floors
Edited by tom123 at 2016-8-16 02:16

I have this new build, and i do have option for i2s. And dont change to portA21 but portPA21 otherwise it wont compile. And check autostart script

0

threads

20

posts

986

credits

Senior member

Rank: 4

credits
986
Published in 2016-8-16 23:32:17 | Show all floors
My mistake now working.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list