linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
@ 2025-08-21  4:15 Hide Hako
       [not found] ` <CALWfF7+rGDxtKDqYyazeh+8bndkyBb8LKe_gMq_EbNycD4mw3w@mail.gmail.com>
  2025-08-23 10:00 ` [PATCH] rm64: " Maud Spierings
  0 siblings, 2 replies; 4+ messages in thread
From: Hide Hako @ 2025-08-21  4:15 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.

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

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi
index 91d56c34a..656aac2df 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi
@@ -113,6 +113,7 @@ analog_sound: sound {
 		simple-audio-card,mclk-fs = <256>;
 		simple-audio-card,bitclock-master = <&daicpu>;
 		simple-audio-card,frame-master = <&daicpu>;
+		simple-audio-card,pin-switches = "Headphones";
 		/*TODO: SARADC_IN3 is used as MIC detection / key input */
 
 		daicpu: simple-audio-card,cpu {
-- 
2.48.1


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

* Re: [PATCH] arm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
       [not found] ` <CALWfF7+rGDxtKDqYyazeh+8bndkyBb8LKe_gMq_EbNycD4mw3w@mail.gmail.com>
@ 2025-08-22  3:20   ` Hide Hako
  0 siblings, 0 replies; 4+ messages in thread
From: Hide Hako @ 2025-08-22  3:20 UTC (permalink / raw)
  To: Jimmy Hon
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner,
	devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
	linux-sound



On 2025/08/22 1:49, Jimmy Hon wrote:
> Note: the subject lost the "a" in arm64
Sorry, typo.
>
> On Wed, Aug 20, 2025, 23:19 Hide Hako <opi5plus@bcc.bai.ne.jp> wrote:
>
>> 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.
>>
>> Signed-off-by: Hide Hako <opi5plus@bcc.bai.ne.jp>
>> ---
>>   arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi
>> b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi
>> index 91d56c34a..656aac2df 100644
>> --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi
>> +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi
>> @@ -113,6 +113,7 @@ analog_sound: sound {
>>                  simple-audio-card,mclk-fs = <256>;
>>                  simple-audio-card,bitclock-master = <&daicpu>;
>>                  simple-audio-card,frame-master = <&daicpu>;
>> +               simple-audio-card,pin-switches = "Headphones";
>>
> For the Plus, it has Speaker and Headphones.
> For the Max and Ultra, they only have Headphones.
For boards with an audio jack, the statement 
"simple-audio-card,pin-switches = "Headphones";" is probably required.
Without this statement, the "Headphones" item will not appear in alsamixer.
> So this property should be defined in the -plus.dts and the -compact.dtsi
> instead of this file which is common to all.
  This patch was created with reference to rk3588s-orangepi-5.dtsi.

Hide


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

* Re: [PATCH] rm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
  2025-08-21  4:15 [PATCH] rm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus Hide Hako
       [not found] ` <CALWfF7+rGDxtKDqYyazeh+8bndkyBb8LKe_gMq_EbNycD4mw3w@mail.gmail.com>
@ 2025-08-23 10:00 ` Maud Spierings
  2025-08-24  7:37   ` Hide Hako
  1 sibling, 1 reply; 4+ messages in thread
From: Maud Spierings @ 2025-08-23 10:00 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.
>
> Signed-off-by: Hide Hako <opi5plus@bcc.bai.ne.jp>
> ---
>   arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi <https://lore.kernel.org/all/20250821041555.4781-2-opi5plus@bcc.bai.ne.jp/#Z2e.:20250821041555.4781-2-opi5plus::40bcc.bai.ne.jp:1arch:arm64:boot:dts:rockchip:rk3588-orangepi-5.dtsi> | 1 +
>   1 filechanged <https://lore.kernel.org/all/20250821041555.4781-2-opi5plus@bcc.bai.ne.jp/#related>, 1 insertion(+)
>
> diff 
> <https://lore.kernel.org/all/20250821041555.4781-2-opi5plus@bcc.bai.ne.jp/#iZ2e.:20250821041555.4781-2-opi5plus::40bcc.bai.ne.jp:1arch:arm64:boot:dts:rockchip:rk3588-orangepi-5.dtsi> 
> --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi 
> b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi index 
> 91d56c34a..656aac2df 100644 --- 
> a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi +++ 
> b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi @@ -113,6 +113,7 
> @@ analog_sound: sound {  		simple-audio-card,mclk-fs = <256>;
>   		simple-audio-card,bitclock-master = <&daicpu>;
>   		simple-audio-card,frame-master = <&daicpu>;
> + simple-audio-card,pin-switches = "Headphones";  		/*TODO: SARADC_IN3 is used as MIC detection / key input */
>   
>   		daicpu: simple-audio-card,cpu {
> -- 
> 2.48.1
I tried this patch, but I am not able to get any audio out on my 
headphones. using kernel 6.16.1

I did see headphones in alsamixer, but cannot get it to actually output 
any audio. Any hints?

Kind regards,
Maud


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

* Re: [PATCH] rm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus
  2025-08-23 10:00 ` [PATCH] rm64: " Maud Spierings
@ 2025-08-24  7:37   ` Hide Hako
  0 siblings, 0 replies; 4+ messages in thread
From: Hide Hako @ 2025-08-24  7:37 UTC (permalink / raw)
  To: Maud Spierings
  Cc: conor+dt, devicetree, heiko, krzk+dt, linux-arm-kernel,
	linux-kernel, linux-rockchip, linux-sound, robh

Hello Muad

On 2025/08/23 19:00, Maud Spierings wrote:
> 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.
>>
>> Signed-off-by: Hide Hako <opi5plus@bcc.bai.ne.jp>
>> ---
>>   arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi 
>> <https://lore.kernel.org/all/20250821041555.4781-2-opi5plus@bcc.bai.ne.jp/#Z2e.:20250821041555.4781-2-opi5plus::40bcc.bai.ne.jp:1arch:arm64:boot:dts:rockchip:rk3588-orangepi-5.dtsi> 
>> | 1 +
>>   1 filechanged 
>> <https://lore.kernel.org/all/20250821041555.4781-2-opi5plus@bcc.bai.ne.jp/#related>, 
>> 1 insertion(+)
>>
>> diff 
>> <https://lore.kernel.org/all/20250821041555.4781-2-opi5plus@bcc.bai.ne.jp/#iZ2e.:20250821041555.4781-2-opi5plus::40bcc.bai.ne.jp:1arch:arm64:boot:dts:rockchip:rk3588-orangepi-5.dtsi> 
>> --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi 
>> b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi index 
>> 91d56c34a..656aac2df 100644 --- 
>> a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi +++ 
>> b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5.dtsi @@ -113,6 
>> +113,7 @@ analog_sound: sound { simple-audio-card,mclk-fs = <256>;
>>           simple-audio-card,bitclock-master = <&daicpu>;
>>           simple-audio-card,frame-master = <&daicpu>;
>> + simple-audio-card,pin-switches = "Headphones"; /*TODO: SARADC_IN3 
>> is used as MIC detection / key input */
>>             daicpu: simple-audio-card,cpu {
>> -- 
>> 2.48.1
> I tried this patch, but I am not able to get any audio out on my 
> headphones. using kernel 6.16.1
>
> I did see headphones in alsamixer, but cannot get it to actually 
> output any audio. Any hints?
I use ubuntu 25.04.
Setting -> Sound -> Output Device.
Two Analog Output-Built-in-Audio are displayed.
Please select second Analog Output-Built-in-Audio.

I'm currently working on another patch. As pointed out by Jimmy, I'm 
creating a patch for rk3588-orangepi-5-plus.dts.
Thank you Muad.

Hide


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

end of thread, other threads:[~2025-08-24  7:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21  4:15 [PATCH] rm64: dts: rockchip: Enables sound output from the audio jack on OrangePI5 Plus Hide Hako
     [not found] ` <CALWfF7+rGDxtKDqYyazeh+8bndkyBb8LKe_gMq_EbNycD4mw3w@mail.gmail.com>
2025-08-22  3:20   ` [PATCH] arm64: " Hide Hako
2025-08-23 10:00 ` [PATCH] rm64: " Maud Spierings
2025-08-24  7:37   ` Hide Hako

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