linux-sound.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
@ 2025-08-26 13:44 Hide Hako
  2025-08-28  8:47 ` Maud Spierings
  2025-08-28 12:04 ` Heiko Stuebner
  0 siblings, 2 replies; 6+ messages in thread
From: Hide Hako @ 2025-08-26 13:44 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	linux-sound, Hide Hako

Currently, analog sound is not output from the audio jack.
This patch allows you to select analog headphones in alsamixer.
Works with kernel 6.16.1, but not 6.17-rc1.

Points of concern:
6.16.1 kernel with ubuntu 25.04 Setting -> Sound -> Output Device
 I select Speakers Built-in Audio, the sound will be output from the audio jack.

Changes since v1:
- As pointed out by Jimmy, the file to be modified has been changed
  from rk3588-orangepi-5.dtsi to rk3588-orangepi-5-plus.dts.

Signed-off-by: Hide Hako <opi5plus@bcc.bai.ne.jp>
---
 arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
index 121e4d1c3..44bb15951 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
@@ -78,6 +78,7 @@ &analog_sound {
 	pinctrl-0 = <&hp_detect>;
 	simple-audio-card,aux-devs = <&speaker_amp>, <&headphone_amp>;
 	simple-audio-card,hp-det-gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
+	simple-audio-card,pin-switches = "Speaker", "Headphones";
 	simple-audio-card,widgets =
 		"Microphone", "Onboard Microphone",
 		"Microphone", "Microphone Jack",
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
  2025-08-26 13:44 [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus Hide Hako
@ 2025-08-28  8:47 ` Maud Spierings
  2025-08-29 11:59   ` Hide Hako
  2025-08-28 12:04 ` Heiko Stuebner
  1 sibling, 1 reply; 6+ messages in thread
From: Maud Spierings @ 2025-08-28  8:47 UTC (permalink / raw)
  To: opi5plus
  Cc: conor+dt, devicetree, heiko, krzk+dt, linux-arm-kernel,
	linux-kernel, linux-rockchip, linux-sound, robh

Hello Hide,

> Currently, analog sound is not output from the audio jack.
> This patch allows you to select analog headphones in alsamixer.
> Works with kernel 6.16.1, but not 6.17-rc1.
> 
> Points of concern:
> 6.16.1 kernel with ubuntu 25.04 Setting -> Sound -> Output Device
>  I select Speakers Built-in Audio, the sound will be output from the audio jack.
> 
> Changes since v1:
> - As pointed out by Jimmy, the file to be modified has been changed
>   from rk3588-orangepi-5.dtsi to rk3588-orangepi-5-plus.dts.
> 
> Signed-off-by: Hide Hako <opi5plus@bcc.bai.ne.jp>
> ---
>  arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
> index 121e4d1c3..44bb15951 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
> @@ -78,6 +78,7 @@ &analog_sound {
>  	pinctrl-0 = <&hp_detect>;
>  	simple-audio-card,aux-devs = <&speaker_amp>, <&headphone_amp>;
>  	simple-audio-card,hp-det-gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
I recommend rebasing on the latest next since my fix [1] was applied.
I also recommend testing it with that patch, for me that fixed the 
headphone detection and enabled audio playback. The microphone is not 
working yet though.

Link: 
https://lore.kernel.org/all/20250823-orangepi5-v1-1-ae77dd0e06d7@hotmail.com/ 
[1]

> +	simple-audio-card,pin-switches = "Speaker", "Headphones";
>  	simple-audio-card,widgets =
>  		"Microphone", "Onboard Microphone",
>  		"Microphone", "Microphone Jack",
> -- 
> 2.48.1

Kind regards,
Maud

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
  2025-08-26 13:44 [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus Hide Hako
  2025-08-28  8:47 ` Maud Spierings
@ 2025-08-28 12:04 ` Heiko Stuebner
  1 sibling, 0 replies; 6+ messages in thread
From: Heiko Stuebner @ 2025-08-28 12:04 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Hide Hako
  Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	linux-sound, Hide Hako

Hi Hide Hako,

Am Dienstag, 26. August 2025, 15:44:57 Mitteleuropäische Sommerzeit schrieb Hide Hako:
> Currently, analog sound is not output from the audio jack.
> This patch allows you to select analog headphones in alsamixer.
> Works with kernel 6.16.1, but not 6.17-rc1.
> 
> Points of concern:
> 6.16.1 kernel with ubuntu 25.04 Setting -> Sound -> Output Device
>  I select Speakers Built-in Audio, the sound will be output from the audio jack.
> 
> Changes since v1:
> - As pointed out by Jimmy, the file to be modified has been changed
>   from rk3588-orangepi-5.dtsi to rk3588-orangepi-5-plus.dts.

All of what Maud said, but also I think this deserves some

Fixes: 236d225e1ee7 ("arm64: dts: rockchip: Add board device tree for rk3588-orangepi-5-plus")

tag + could do the subject as 
  "arm64: dts: rockchip: Fix sound output from the audio jack on OrangePI5 Plus"

because this really sounds like it fixes functionality to is supposed
to be working :-)


Thanks a lot
Heiko

> Signed-off-by: Hide Hako <opi5plus@bcc.bai.ne.jp>
> ---
>  arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
> index 121e4d1c3..44bb15951 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts
> @@ -78,6 +78,7 @@ &analog_sound {
>  	pinctrl-0 = <&hp_detect>;
>  	simple-audio-card,aux-devs = <&speaker_amp>, <&headphone_amp>;
>  	simple-audio-card,hp-det-gpios = <&gpio1 RK_PD3 GPIO_ACTIVE_LOW>;
> +	simple-audio-card,pin-switches = "Speaker", "Headphones";
>  	simple-audio-card,widgets =
>  		"Microphone", "Onboard Microphone",
>  		"Microphone", "Microphone Jack",
> 





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
  2025-08-28  8:47 ` Maud Spierings
@ 2025-08-29 11:59   ` Hide Hako
  2025-08-29 12:09     ` Maud Spierings
  0 siblings, 1 reply; 6+ messages in thread
From: Hide Hako @ 2025-08-29 11:59 UTC (permalink / raw)
  To: Maud Spierings
  Cc: conor+dt, devicetree, heiko, krzk+dt, linux-arm-kernel,
	linux-kernel, linux-rockchip, linux-sound, robh

Hello Maud,

On 2025/08/28 17:47, Maud Spierings wrote:
> I recommend rebasing on the latest next since my fix [1] was applied.
> I also recommend testing it with that patch, for me that fixed the 
> headphone detection and enabled audio playback. The microphone is not 
> working yet though.
>
> Link: 
> https://lore.kernel.org/all/20250823-orangepi5-v1-1-ae77dd0e06d7@hotmail.com/ 
> [1]
>
Today, i build linux-next.
But sound not come out from headphone.

If you test the 6.17 kernel after using the 6.16 kernel, sound will be 
output. Try building and testing in an environment with only the 6.17 
kernel.

Or is it okay to use the JMB582 "M.2" nvme-sata 3.0 expansion card to 
connect a 2.5-inch SSD?
This makes disk swapping easy and convenient.

Hide



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
  2025-08-29 11:59   ` Hide Hako
@ 2025-08-29 12:09     ` Maud Spierings
  2025-08-29 12:53       ` Hide Hako
  0 siblings, 1 reply; 6+ messages in thread
From: Maud Spierings @ 2025-08-29 12:09 UTC (permalink / raw)
  To: Hide Hako
  Cc: conor+dt, devicetree, heiko, krzk+dt, linux-arm-kernel,
	linux-kernel, linux-rockchip, linux-sound, robh

On 8/29/25 13:59, Hide Hako wrote:
> Hello Maud,
> 
> On 2025/08/28 17:47, Maud Spierings wrote:
>> I recommend rebasing on the latest next since my fix [1] was applied.
>> I also recommend testing it with that patch, for me that fixed the 
>> headphone detection and enabled audio playback. The microphone is not 
>> working yet though.
>>
>> Link: https://lore.kernel.org/all/20250823-orangepi5-v1-1- 
>> ae77dd0e06d7@hotmail.com/ [1]
>>
> Today, i build linux-next.
> But sound not come out from headphone.

Is that with your patch applied ontop or unchanged linux-next? The audio 
was very quiet for me, even at 100%.

> If you test the 6.17 kernel after using the 6.16 kernel, sound will be 
> output. Try building and testing in an environment with only the 6.17 
> kernel.
> 
> Or is it okay to use the JMB582 "M.2" nvme-sata 3.0 expansion card to 
> connect a 2.5-inch SSD?
> This makes disk swapping easy and convenient.

I am not quite sure what you mean here.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
  2025-08-29 12:09     ` Maud Spierings
@ 2025-08-29 12:53       ` Hide Hako
  0 siblings, 0 replies; 6+ messages in thread
From: Hide Hako @ 2025-08-29 12:53 UTC (permalink / raw)
  To: Maud Spierings
  Cc: conor+dt, devicetree, heiko, krzk+dt, linux-arm-kernel,
	linux-kernel, linux-rockchip, linux-sound, robh

Hello Maud

On 2025/08/29 21:09, Maud Spierings wrote:
> On 8/29/25 13:59, Hide Hako wrote:
>> Hello Maud,
>>
>> On 2025/08/28 17:47, Maud Spierings wrote:
>>> I recommend rebasing on the latest next since my fix [1] was applied.
>>> I also recommend testing it with that patch, for me that fixed the 
>>> headphone detection and enabled audio playback. The microphone is 
>>> not working yet though.
>>>
>>> Link: https://lore.kernel.org/all/20250823-orangepi5-v1-1- 
>>> ae77dd0e06d7@hotmail.com/ [1]
>>>
>> Today, i build linux-next.
>> But sound not come out from headphone.
>
> Is that with your patch applied ontop or unchanged linux-next? The 
> audio was very quiet for me, even at 100%.
With pin-switch patch.

Analog, hdmi0 and hdmi1 do not exist in /proc/asound/.
Hide


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-29 12:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26 13:44 [PATCH v2] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus Hide Hako
2025-08-28  8:47 ` Maud Spierings
2025-08-29 11:59   ` Hide Hako
2025-08-29 12:09     ` Maud Spierings
2025-08-29 12:53       ` Hide Hako
2025-08-28 12:04 ` Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).