diff mbox series

Patch for audio on iBook G4 (powerbook6,5)

Message ID ey8hrui03zsh-rkihqz2n7u2i8dd3ja32qgpr-1mta0e-nkf4tu8c3cc4vwcuq-49fkuy-mta0mx-f9h480-wnl3d8-pcij4tmg3beq2a3p39-rkd67kmq9hs4iz08io-uvtksdl00562enem8stlzawo.1677618681472@email.android.com (mailing list archive)
State Changes Requested
Headers show
Series Patch for audio on iBook G4 (powerbook6,5) | expand

Commit Message

Thaison Nguyen Feb. 28, 2023, 9:17 p.m. UTC

Comments

Christophe Leroy March 1, 2023, 7:08 a.m. UTC | #1
Le 28/02/2023 à 22:17, mail@thaison-nguyen.de a écrit :
> Hi
> 
> I have added a bug report and a patch regarding audio for iBook G4 
> (powerbook6,5) on kernel.org bugzilla, but nobody has picked it up.
> https://bugzilla.kernel.org/show_bug.cgi?id=216504
> 
> Now I am trying to submit the patch here.
> 

Please read and follow the process to submit a patch : 
https://docs.kernel.org/process/5.Posting.html

Patches must be in the core part of the mail and not as an attached file.
Patches must have a description of the change.
Patches must be signed
Patches must be sent to the relevant maintainer(s) based on the modified 
files. As far as I can see your patch is for the sound subsystem.

Christophe
diff mbox series

Patch

--- file_not_specified_in_diff	
+++ file_not_specified_in_diff	
@@ -, +, @@ 
--- a/sound/aoa/fabrics/layout.c
+++ b/sound/aoa/fabrics/layout.c
@@ -111,7 +111,9 @@  
 MODULE_ALIAS("aoa-device-id-14");
 MODULE_ALIAS("aoa-device-id-22");
 MODULE_ALIAS("aoa-device-id-31");
 MODULE_ALIAS("aoa-device-id-35");
+MODULE_ALIAS("aoa-device-id-38");
+MODULE_ALIAS("aoa-device-id-40");
 MODULE_ALIAS("aoa-device-id-44");
 
 /* onyx with all but microphone connected */
@@ -368,7 +368,20 @@  
 		.connections = tas_connections_nolineout,
 	  },
 	},
+	/* PowerBook6,4 */
+	{ .device_id = 40,
+	  .codecs[0] = {
+		.name = "tas",
+		.connections = tas_connections_all,
+	  },
+	},
 	/* PowerBook6,5 */
+	{ .device_id = 38,
+	  .codecs[0] = {
+		.name = "tas",
+		.connections = tas_connections_all,
+	  },
+	},
 	{ .device_id = 44,
 	  .codecs[0] = {
 		.name = "tas",
--- a/sound/aoa/soundbus/i2sbus/core.c
+++ b/sound/aoa/soundbus/i2sbus/core.c
@@ -197,7 +197,7 @@  
 			 * so restrict to those we do handle for now.
 			 */
 			if (id && (*id == 22 || *id == 14 || *id == 35 ||
-				   *id == 31 || *id == 44)) {
+				   *id == 31 || *id == 44 || *id == 40 || *id == 38)) {
 				snprintf(dev->sound.modalias, 32,
 					 "aoa-device-id-%d", *id);
 				ok = 1;