From 8bcafe71468f48d6487c77fafc3524080e2adc53 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Fri, 23 Feb 2024 01:53:14 +0100
Subject: [PATCH 195/463] arm64: dts: sun50i-a64-pinephone: Use newer jack
 detection implementaion

Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
 arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
index f0aab1fd60802..9cdef78a4abd3 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
@@ -476,6 +476,7 @@ keyboard-power {
 &codec {
 	pinctrl-names = "default";
 	pinctrl-0 = <&aif2_pins>, <&aif3_pins>;
+	jack-type = "headset";
 	status = "okay";
 };
 
@@ -956,7 +957,7 @@ reboot_mode: reboot-mode@4 {
 &sound {
 	status = "okay";
 	simple-audio-card,name = "PinePhone";
-	simple-audio-card,aux-devs = <&codec_analog>, <&speaker_amp>;
+	simple-audio-card,aux-devs = <&codec_analog>, <&codec>, <&speaker_amp>;
 	simple-audio-card,widgets = "Microphone", "Headset Microphone",
 				    "Microphone", "Internal Microphone",
 				    "Headphone", "Headphone Jack",
-- 
2.46.0

