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: 13156256 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE318C6FA9D for ; Wed, 1 Mar 2023 17:12:20 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 907D11DC; Wed, 1 Mar 2023 18:11:27 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 907D11DC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1677690737; bh=MYw2+PUxf8cpZNCa/JnkaMCDga8g684FWn6mP/BA928=; h=From:To:Subject:Date:CC:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=RUaC8ZnnqbQ0cP7101s3g+x0kOZC1ZsaplqgIWt1ozkq2ZnlwmHJDnGEYejrW+lkx VC/DXhx//y+X3k9so2IbxxCJj72tYJ6EuUUtSdkdNdCLRDcaPf/0sis5YeZ9AEpLpX TuTUZjjnfr3ZVcE7HkItGZB2o9kElxKtNhisYYKg= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id BA1DAF8049C; Wed, 1 Mar 2023 18:11:06 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D1DD9F8049C; Wed, 1 Mar 2023 09:30:54 +0100 (CET) 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 (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E0A5EF800BA for ; Wed, 1 Mar 2023 09:30:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E0A5EF800BA Authentication-Results: alsa1.perex.cz; 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 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-MailFrom: mail@thaison-nguyen.de X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: S3FBFRKDRYTF25K3KP2DFTPP2XIYPPWA X-Message-ID-Hash: S3FBFRKDRYTF25K3KP2DFTPP2XIYPPWA X-Mailman-Approved-At: Wed, 01 Mar 2023 17:11:03 +0000 CC: linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, 'Christophe Leroy' X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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;