Skip to content

Commit 5beafb2

Browse files
committedMar 17, 2025
sunxi-6.13: Switching to v6.13.7
soc: Fix error: incompatible pointer type soc: Fix warning: no previous prototype
1 parent ea942f0 commit 5beafb2

File tree

5 files changed

+43
-27
lines changed

5 files changed

+43
-27
lines changed
 

‎config/sources/families/include/sunxi64_common.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ case $BRANCH in
3636

3737
edge)
3838
declare -g KERNEL_MAJOR_MINOR="6.13" # Major and minor versions of this kernel.
39-
declare -g KERNELBRANCH="tag:v6.13.6"
39+
declare -g KERNELBRANCH="tag:v6.13.7"
4040
;;
4141
esac
4242

‎config/sources/families/include/sunxi_common.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ case $BRANCH in
3737

3838
edge)
3939
declare -g KERNEL_MAJOR_MINOR="6.13" # Major and minor versions of this kernel.
40-
declare -g KERNELBRANCH="tag:v6.13.6"
40+
declare -g KERNELBRANCH="tag:v6.13.7"
4141
;;
4242
esac
4343

‎patch/kernel/archive/sunxi-6.13/patches.armbian/Sound-for-H616-H618-Allwinner-SOCs.patch

+34-18
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
From 1739c0e34dacde91c4ff9e0d32e430d30d2572f7 Mon Sep 17 00:00:00 2001
1+
From 050de33c37da9f6ef591036362b588bb8b68de10 Mon Sep 17 00:00:00 2001
22
From: Stephen Graf <stephen.graf@gmail.com>
33
Date: Thu, 9 May 2024 20:59:34 -0700
4-
Subject: Sound for H616, H618 Allwinner SOCs
4+
Subject: [PATCH] Sound for H616, H618 Allwinner SOCs
55

66
Signed-off-by: Stephen Graf <stephen.graf@gmail.com>
7+
78
Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
9+
Fix error: incompatible pointer type
10+
Fix warning: no previous prototype
11+
For v6.13.7
812
---
913
.../allwinner/sun50i-h616-orangepi-zero.dtsi | 18 +
1014
.../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 65 +-
@@ -19,17 +23,17 @@ Signed-off-by: The-going <48602507+The-going@users.noreply.github.com>
1923
sound/soc/sunxi_v2/Makefile | 11 +
2024
sound/soc/sunxi_v2/drv_hdmi.h | 63 +
2125
sound/soc/sunxi_v2/snd_sunxi_ahub.c | 1475 +++++++++++++++++
22-
sound/soc/sunxi_v2/snd_sunxi_ahub.h | 67 +
26+
sound/soc/sunxi_v2/snd_sunxi_ahub.h | 74 +
2327
sound/soc/sunxi_v2/snd_sunxi_ahub_dam.c | 532 ++++++
24-
sound/soc/sunxi_v2/snd_sunxi_ahub_dam.h | 291 ++++
28+
sound/soc/sunxi_v2/snd_sunxi_ahub_dam.h | 294 ++++
2529
sound/soc/sunxi_v2/snd_sunxi_common.c | 267 +++
2630
sound/soc/sunxi_v2/snd_sunxi_common.h | 67 +
2731
sound/soc/sunxi_v2/snd_sunxi_log.h | 29 +
2832
sound/soc/sunxi_v2/snd_sunxi_mach.c | 479 ++++++
29-
sound/soc/sunxi_v2/snd_sunxi_mach.h | 17 +
33+
sound/soc/sunxi_v2/snd_sunxi_mach.h | 20 +
3034
sound/soc/sunxi_v2/snd_sunxi_mach_utils.c | 422 +++++
3135
sound/soc/sunxi_v2/snd_sunxi_mach_utils.h | 116 ++
32-
23 files changed, 5104 insertions(+), 3 deletions(-)
36+
23 files changed, 5117 insertions(+), 3 deletions(-)
3337
create mode 100644 sound/soc/sunxi/sun50iw9-codec.c
3438
create mode 100644 sound/soc/sunxi_v2/Kconfig
3539
create mode 100644 sound/soc/sunxi_v2/Makefile
@@ -165,7 +169,7 @@ index 668ed3b9090a..8f992bd4a9d2 100644
165169
compatible = "allwinner,sun50i-h616-musb",
166170
"allwinner,sun8i-h3-musb";
167171
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
168-
index aab57c19f62b..2a4da00141bb 100644
172+
index aab57c19f62b..91309f090e27 100644
169173
--- a/include/sound/soc-dai.h
170174
+++ b/include/sound/soc-dai.h
171175
@@ -410,6 +410,15 @@ struct snd_soc_dai_driver {
@@ -176,7 +180,7 @@ index aab57c19f62b..2a4da00141bb 100644
176180
+ int (*probe)(struct snd_soc_dai *dai);
177181
+ int (*remove)(struct snd_soc_dai *dai);
178182
+ /* compress dai */
179-
+ int (*compress_new)(struct snd_soc_pcm_runtime *rtd, int num);
183+
+ int (*compress_new)(struct snd_soc_pcm_runtime *rtd);
180184
+ /* Optional Callback used at pcm creation*/
181185
+ int (*pcm_new)(struct snd_soc_pcm_runtime *rtd,
182186
+ struct snd_soc_dai *dai);
@@ -3013,10 +3017,10 @@ index 000000000000..6d4a847a928f
30133017
+MODULE_DESCRIPTION("sunxi soundcard platform of ahub");
30143018
diff --git a/sound/soc/sunxi_v2/snd_sunxi_ahub.h b/sound/soc/sunxi_v2/snd_sunxi_ahub.h
30153019
new file mode 100644
3016-
index 000000000000..b3c1cc592844
3020+
index 000000000000..cd4be46b6ebf
30173021
--- /dev/null
30183022
+++ b/sound/soc/sunxi_v2/snd_sunxi_ahub.h
3019-
@@ -0,0 +1,67 @@
3023+
@@ -0,0 +1,74 @@
30203024
+/* sound\soc\sunxi\snd_sunxi_ahub.h
30213025
+ * (C) Copyright 2021-2025
30223026
+ * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
@@ -3083,6 +3087,13 @@ index 000000000000..b3c1cc592844
30833087
+ unsigned int bclk_freq;
30843088
+};
30853089
+
3090+
+int sunxi_loopback_debug_get(struct snd_kcontrol *kcontrol,
3091+
+ struct snd_ctl_elem_value *ucontrol);
3092+
+int sunxi_loopback_debug_set(struct snd_kcontrol *kcontrol,
3093+
+ struct snd_ctl_elem_value *ucontrol);
3094+
+int __init sunxi_ahub_dev_init(void);
3095+
+void __exit sunxi_ahub_dev_exit(void);
3096+
+
30863097
+#endif /* __SND_SUNXI_AHUB_H */
30873098
diff --git a/sound/soc/sunxi_v2/snd_sunxi_ahub_dam.c b/sound/soc/sunxi_v2/snd_sunxi_ahub_dam.c
30883099
new file mode 100644
@@ -3624,10 +3635,10 @@ index 000000000000..f3c7bb3c7cd2
36243635
+MODULE_DESCRIPTION("sunxi soundcard platform of ahub_dam");
36253636
diff --git a/sound/soc/sunxi_v2/snd_sunxi_ahub_dam.h b/sound/soc/sunxi_v2/snd_sunxi_ahub_dam.h
36263637
new file mode 100644
3627-
index 000000000000..b7679bf545e9
3638+
index 000000000000..436742d87e8f
36283639
--- /dev/null
36293640
+++ b/sound/soc/sunxi_v2/snd_sunxi_ahub_dam.h
3630-
@@ -0,0 +1,291 @@
3641+
@@ -0,0 +1,294 @@
36313642
+/* sound\soc\sunxi\snd_sunxi_ahub_dam.h
36323643
+ * (C) Copyright 2021-2025
36333644
+ * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
@@ -3918,8 +3929,10 @@ index 000000000000..b7679bf545e9
39183929
+extern int snd_soc_sunxi_ahub_mem_get(struct sunxi_ahub_mem_info *mem_info);
39193930
+extern int snd_soc_sunxi_ahub_clk_get(struct sunxi_ahub_clk_info *clk_info);
39203931
+
3932+
+int __init sunxi_ahub_dam_dev_init(void);
3933+
+void __exit sunxi_ahub_dam_dev_exit(void);
3934+
+
39213935
+#endif /* __SND_SUNXI_AHUB_DAM_H */
3922-
\ No newline at end of file
39233936
diff --git a/sound/soc/sunxi_v2/snd_sunxi_common.c b/sound/soc/sunxi_v2/snd_sunxi_common.c
39243937
new file mode 100644
39253938
index 000000000000..410ab75aea5a
@@ -4304,7 +4317,7 @@ index 000000000000..89ad9fe71936
43044317
+#endif /* __SND_SUNXI_LOG_H */
43054318
diff --git a/sound/soc/sunxi_v2/snd_sunxi_mach.c b/sound/soc/sunxi_v2/snd_sunxi_mach.c
43064319
new file mode 100644
4307-
index 000000000000..ea73eced251e
4320+
index 000000000000..74d276a2da92
43084321
--- /dev/null
43094322
+++ b/sound/soc/sunxi_v2/snd_sunxi_mach.c
43104323
@@ -0,0 +1,479 @@
@@ -4353,8 +4366,8 @@ index 000000000000..ea73eced251e
43534366
+ struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0);
43544367
+
43554368
+ struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card);
4356-
+ struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, rtd->num);
4357-
+ struct simple_dai_props *dai_props = simple_priv_to_props(priv, rtd->num);
4369+
+ struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, rtd->id);
4370+
+ struct simple_dai_props *dai_props = simple_priv_to_props(priv, rtd->id);
43584371
+ struct asoc_simple_dai *dais = priv->dais;
43594372
+ unsigned int mclk;
43604373
+ unsigned int cpu_pll_clk, codec_pll_clk;
@@ -4789,10 +4802,10 @@ index 000000000000..ea73eced251e
47894802
+MODULE_DESCRIPTION("sunxi soundcard machine");
47904803
diff --git a/sound/soc/sunxi_v2/snd_sunxi_mach.h b/sound/soc/sunxi_v2/snd_sunxi_mach.h
47914804
new file mode 100644
4792-
index 000000000000..ab429c8841ab
4805+
index 000000000000..6f9ea8ccf8b5
47934806
--- /dev/null
47944807
+++ b/sound/soc/sunxi_v2/snd_sunxi_mach.h
4795-
@@ -0,0 +1,17 @@
4808+
@@ -0,0 +1,20 @@
47964809
+/* sound\soc\sunxi\snd_sunxi_mach.h
47974810
+ * (C) Copyright 2021-2025
47984811
+ * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
@@ -4809,6 +4822,9 @@ index 000000000000..ab429c8841ab
48094822
+
48104823
+#include "snd_sunxi_mach_utils.h"
48114824
+
4825+
+int __init sunxi_soundcard_machine_dev_init(void);
4826+
+void __exit sunxi_soundcard_machine_dev_exit(void);
4827+
+
48124828
+#endif /* __SND_SUNXI_MACH_H */
48134829
diff --git a/sound/soc/sunxi_v2/snd_sunxi_mach_utils.c b/sound/soc/sunxi_v2/snd_sunxi_mach_utils.c
48144830
new file mode 100644

‎patch/kernel/archive/sunxi-6.13/patches.armbian/drv-usb-gadget-composite-rename-gadget-serial-console-manufactu.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
1+
From 1bd66ae2c914290b56e258b62b798e29a5af2a77 Mon Sep 17 00:00:00 2001
22
From: The-going <48602507+The-going@users.noreply.github.com>
33
Date: Wed, 2 Feb 2022 20:08:50 +0300
44
Subject: drv:usb:gadget:composite rename gadget serial console manufacturer
@@ -10,10 +10,10 @@ to the Armbian brand.
1010
1 file changed, 1 insertion(+), 1 deletion(-)
1111

1212
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
13-
index 111111111111..222222222222 100644
13+
index 869ad99afb48..9f111be98fd1 100644
1414
--- a/drivers/usb/gadget/composite.c
1515
+++ b/drivers/usb/gadget/composite.c
16-
@@ -2770,7 +2770,7 @@ EXPORT_SYMBOL_GPL(usb_composite_setup_continue);
16+
@@ -2777,7 +2777,7 @@ EXPORT_SYMBOL_GPL(usb_composite_setup_continue);
1717

1818
static char *composite_default_mfr(struct usb_gadget *gadget)
1919
{
@@ -23,5 +23,5 @@ index 111111111111..222222222222 100644
2323
}
2424

2525
--
26-
Armbian
26+
2.35.3
2727

‎patch/kernel/archive/sunxi-6.13/patches.megous/video-pwm_bl-Allow-to-change-lth_brightness-via-sysfs.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 46a348733aed8c40e61243e8473ee4105c17bc2a Mon Sep 17 00:00:00 2001
1+
From 54946f91a069330ffc6b1417ecd43692c0c5b975 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
33
Date: Mon, 7 Jun 2021 20:27:07 +0200
44
Subject: video: pwm_bl: Allow to change lth_brightness via sysfs
@@ -21,8 +21,8 @@ Then make sure to restore this value after each boot by writing it to
2121

2222
Signed-off-by: Ondrej Jirman <megi@xff.cz>
2323
---
24-
drivers/video/backlight/pwm_bl.c | 72 +++++++++++++++++++++++++++++++-
25-
1 file changed, 70 insertions(+), 2 deletions(-)
24+
drivers/video/backlight/pwm_bl.c | 97 +++++++++++++++++++++++++++++++-
25+
1 file changed, 94 insertions(+), 3 deletions(-)
2626

2727
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
2828
index 237d3d3f3bb1..9f96bdd82a87 100644

0 commit comments

Comments
 (0)
Failed to load comments.