Jump to content
  • 0

Orange Pi 4 Kernel 5.x.x rt5651 sound and bluetooth fixed


iamdrq

Question

 

:DOh,I fixed this problem spend 2 weeks,I finally heard sound from 3.5 mm jack (this jack is OMTP otherwise need keep press headphone button)

 

I see this topic,and I compair https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/sound/soc/codecs/rt5640.c and https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/sound/soc/codecs/rt5651.c,this rt5651 not enable mclk and orangepi4"s rt5651 linked i2s1,the i2s1's SCLK_I2S_8CH parent not SCLK_I2S1_8CH defult and need set alsamixer in following(also use alsactl save this alsamixer state):

amixer set 'HPO L' on
amixer set 'HPO R' on
amixer set 'HPOVOL L' on
amixer set 'HPOVOL R' on
amixer set 'HPO MIX HPVOL' on
amixer set 'OUT MIXL DAC L1' on
amixer set 'OUT MIXR DAC R1' on
amixer set 'Stereo DAC MIXL DAC L1' on
amixer set 'Stereo DAC MIXR DAC R1' on

And I not familiar with electronics,I did some patch and hope this can help armbian fix 

fix-i2s1-clk.patch orangepi4-rt5651.patch orangepi4-i2s_8ch_mclk.dts

Armbian applied this patch to 'Armbian build system' and with minor tweaks,you can use it by 'Armbian build system' latest branch.:D

Link to comment
Share on other sites

Recommended Posts

  • 0
4 hours ago, haajee said:

Is it possible to add the bluetooth and sound fix to the armbian kernel/firmware? After every kernel update  sound and bluetooth stops working and it´s clear this fix works. :) Should be really nice!

It is fixed for some time already. It's just that there were no releases built for the board in the meantime.

It is however part of v20.05.1 - after you upgrade you should not see it disappearing again.

Link to comment
Share on other sites

Donate your old hardware to community. Start a giveaway Raffle!

  • 0
On 6/2/2020 at 9:42 PM, piter75 said:

It is fixed for some time already. It's just that there were no releases built for the board in the meantime.

It is however part of v20.05.1 - after you upgrade you should not see it disappearing again.

 

I has upgraded and even with a clean image Focal Desktop from here doesn´t Bluetooth works... Bleutoothctl list doesn´t show the bluetooth module also. hciconfig shows the adapter but with status down. When i try to start with hciconfig hci0 up i got the error messge: Can't init device hci0: Operation not supported (95).

Link to comment
Share on other sites

  • 0
1 hour ago, haajee said:

hciconfig shows the adapter but with status down

Did you change the mac address of the interface by using `btmgmt` according to this message?

Without it the device is using default mac address from firmware and thus is set to `DOWN RAW` status.

 

Link to comment
Share on other sites

  • 0

Hmm this week i thought i has restored the driver HCD file with the other mac adress. Restored again and it´s ok, But better: i have bluetooth now working i wanted. I stream from my orangepi music to a bluetooth device and it works like a charm. I have used this 2 site for reference:

https://wiki.archlinux.org/index.php/Bluetooth_headset

http://mygeeks014.blogspot.com/2017/05/audio-streaming-to-bluetooth-speaker.html

 

Very very nice! Thank you all.

 

Link to comment
Share on other sites

  • 0

Oh and btw i got contineusly the error

 

bluetoothd[808]: a2dp-sink profile connect failed for F2:BF:67:4E:E2:A6: Protocol not available

The solution therefore is to run manually bluetooth-modules-discover.

 

pactl load-module module-bluetooth-discover

 

Link to comment
Share on other sites

  • 0
On 7/16/2020 at 8:20 PM, Alex_ro said:

hi!

i am install this patch,

mic not work.

on image  'OrangePi_4_ubuntu_bionic_desktop_linux4.4.179_v1.3.img' mic work

oh,this patch was out of date,and it is use of mainline.you can use the armbian's image latest

Link to comment
Share on other sites

  • 0

Hi everyone, My orangepi4 3.5mm jack isn't sound suddenly. I think isn't driver problem, because I flashed orange pi official image(include Linux and Android). I guess the sound ic rt5651 was broke (I send my board to orange pi, but was told me the repair cost up to 50% the product price and excluded ic rt5651 cost, finally I give up). so, I have reservations about my rt5651 sound patch and I hope armbian think whether remove that patch.@piter75

Link to comment
Share on other sites

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
Answer this question...

×   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...