From patchwork Wed Mar 1 08:30:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thaison Nguyen X-Patchwork-Id: 1749974 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linuxppc-dev-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=thaison-nguyen.de header.i=@thaison-nguyen.de header.a=rsa-sha256 header.s=dkim header.b=XEdEkFyb; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PRZXX37Pmz1yWy for ; Thu, 2 Mar 2023 00:17:32 +1100 (AEDT) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PRZXX2HCjz3cLs for ; Thu, 2 Mar 2023 00:17:32 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=thaison-nguyen.de header.i=@thaison-nguyen.de header.a=rsa-sha256 header.s=dkim header.b=XEdEkFyb; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=thaison-nguyen.de (client-ip=5.45.104.163; helo=mail.thaison-nguyen.de; envelope-from=mail@thaison-nguyen.de; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=thaison-nguyen.de header.i=@thaison-nguyen.de header.a=rsa-sha256 header.s=dkim header.b=XEdEkFyb; dkim-atps=neutral Received: from mail.thaison-nguyen.de (thaison-nguyen.de [5.45.104.163]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PRS9j6R9rz3bhY for ; Wed, 1 Mar 2023 19:30:49 +1100 (AEDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 303CBE392F; Wed, 1 Mar 2023 09:30:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaison-nguyen.de; s=dkim; t=1677659443; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language; bh=oEWkW5wEYrzuuez8tZMMzh/jr7Rxp40QcWdWTz9fZqE=; b=XEdEkFybAl76IDPQgfL4LZy/C5Ej60jjDpNOC8NXdXVEd187snt7TQIXXwwFKmm6P9lF4n z4k2JqWf0GLrq60lAYitYIPprxPhzsqD2112ZhhGiWQbF6Cp5A8ThhNospDb/GFxC6nTyu ItaDeutSlYVBg78OVJKYuZTnRnVJfuY6xYqiG3jm+0I+xZYuWfVhmiLNakK7xVSf7Kk5SE VBCm1Bq8cQ2T5Hghteyx5R6WLQky8Qd1+epvJBiF9FhRBTaZMxTg6McNNzbnXo/GCY648E R/NewaYm87ZCeZ1uQ+/JwD9cD2Gl07PqiP1YtZQwTCci/GOLJFYi+r1BJF6k6g== From: "Thaison Nguyen" To: Subject: [Patch] sound/aoa: Add support for iBook G4 (powerbook6,5) Date: Wed, 1 Mar 2023 09:30:39 +0100 Message-ID: <008801d94c18$1c7424c0$555c6e40$@thaison-nguyen.de> MIME-Version: 1.0 thread-index: AdlMFjpemFCBQa8GRkebkHE1IVtr+w== Content-Language: de X-Last-TLS-Session-Version: TLSv1.2 X-Mailman-Approved-At: Thu, 02 Mar 2023 00:14:32 +1100 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" The audio on my iBook G4 (powerbook65) has not been working. This is because the ids of the device were missing in the aoa audio driver. With this patch, the IDs of Powerbook6,4 and Powerbook6,5 are added to the driver. Signed-off-by: Thaison Nguyen --- sound/aoa/fabrics/layout.c | 15 +++++++++++++++ sound/aoa/soundbus/i2sbus/core.c | 2 +- 2 files changed, 16 insertions(+), 1 deletions(-) diff a/sound/aoa/fabrics/layout.c b/sound/aoa/fabrics/layout.c --- 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", diff a/sound/aoa/soundbus/i2sbus/core.c b/sound/aoa/soundbus/i2sbus/core.c --- 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;