From patchwork Fri Nov 25 09:44:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SmlheGluIFl1ICjkv57lrrbpkasp?= X-Patchwork-Id: 2220 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3888191wrr; Fri, 25 Nov 2022 01:46:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FTOMxzJ9SS6u54vmvYzM8jN1kWvaizoCBQ6u05JtTg9swIV4lZw9E065McEbevEdhSumy X-Received: by 2002:aa7:c841:0:b0:45d:2a5:2db8 with SMTP id g1-20020aa7c841000000b0045d02a52db8mr19097100edt.105.1669369595367; Fri, 25 Nov 2022 01:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669369595; cv=none; d=google.com; s=arc-20160816; b=ipQIbKqc1NgLrOJlXycYLorHZzz6ANmmQR0C38D/eAivHpHV+JgkJJavpQTzPAB/43 om+0L9QA6Ic3u19hvJz08UR07jRzIcNPVkaW1TKWheSOy5mNGQhgWV/UvPGrnsWGDzED QGB0wQNIuFj6I9LXzCHTMZhpZHNrLG8BrzoCp1pvCadOrytJZ1ACCArzs/3Hsmk1b9LP 8eyO9E72iwGxmn+jiPa6WCpZ/9/7Aekqv8cnqYgf5RgEChkXxit7gh9XuKssOWYoA04l q1dzexorMSj81dy/LVWrWq9FQarKRLNFfE3TptzmpsQHEbs+fbD+qOqktwFxFC7N415D zEAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OIPMmjppnFUNnchCS+G3oU3JvoXj7RK/eWKev7o99SQ=; b=ycwU5W7rHX6p7hBbq85zblc5n4ppdgWHXmSU4TMiJlF3UyuN8Fj+/n6NZ79da+eQ+V e1Q0d2b5x+Ny0E5P8vVjjxsBpt/AuYgteXSDaTj6dywNdsP66b4uMf0vdNCnGkcpWLrT ZTsLPYAJWsJFkqHtdpVazKHNWiKKGwXw7qGBDbWok5baRTMEJAd8qPWoYW2UU4+kqOTa Ld3mOknYqcl/63U4D66LlStjKAiMcA9S7+LvcfJGBUHzf5SsDYxRUg9PmBdkjsrjXXR0 whizBTZCZNjGzIWc0QyfzJrdLfEq2cU12ZrQM9olyaSIiSophRBX4PCRVfzb5hShomGe E2KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bxU1vu7J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb24-20020a1709076d9800b00791bcf8aa5esi1897247ejc.739.2022.11.25.01.46.11; Fri, 25 Nov 2022 01:46:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bxU1vu7J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbiKYJoe (ORCPT + 99 others); Fri, 25 Nov 2022 04:44:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiKYJo1 (ORCPT ); Fri, 25 Nov 2022 04:44:27 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 797562195 for ; Fri, 25 Nov 2022 01:44:24 -0800 (PST) X-UUID: 8ee212f72d8a4543850579fe2e21b2f1-20221125 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=OIPMmjppnFUNnchCS+G3oU3JvoXj7RK/eWKev7o99SQ=; b=bxU1vu7JWbBZ57GEfblKC9dxy/usRBoXhfK65+mEU7icakcz0ODLID0z3+9dLtarTG8Yjdy1A8pm4pD/5U+Sva6hixIwihkmiT30nXkIMA7s+tvVAxicUPNlA3WgO5CV4ZrreUECHyQo17rAHFXtq2f+NMuUFe3ZgJ9TSgM9MEk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:6d2c5c0f-7043-414d-9d8b-0b30e592dc79,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:dcaaed0,CLOUDID:58843ddc-6ad4-42ff-91f3-18e0272db660,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:1,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 8ee212f72d8a4543850579fe2e21b2f1-20221125 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1723778188; Fri, 25 Nov 2022 17:44:17 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 25 Nov 2022 17:44:15 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 25 Nov 2022 17:44:14 +0800 From: Jiaxin Yu To: , , , , , , , CC: , , , , , , , , , Jiaxin Yu Subject: [PATCH v2 0/3] ASoC: mediatek:mt8186: fix both the speaker and hdmi Date: Fri, 25 Nov 2022 17:44:10 +0800 Message-ID: <20221125094413.4940-1-jiaxin.yu@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY,URIBL_CSS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750460892520150896?= X-GMAIL-MSGID: =?utf-8?q?1750460892520150896?= The speaker and hdmi of mt8186 platform are shared the same port of I2S, when connect the external display, use build-in speakers to play audio, they both playback at the same time. So we want to manage the playback device through DAPM events. Change since v1: Support audio function for it6505 bridge to hdmi-codec Jiaxin Yu (3): ASoC: hdmi-codec: Add event handler for hdmi TX ASoC: mediatek: mt8186: correct the HDMI widgets drm/bridge: it6505: Add audio support drivers/gpu/drm/bridge/ite-it6505.c | 81 +++++++++++++++++-- include/sound/hdmi-codec.h | 6 ++ sound/soc/codecs/hdmi-codec.c | 37 ++++++++- .../mt8186/mt8186-mt6366-da7219-max98357.c | 2 +- .../mt8186/mt8186-mt6366-rt1019-rt5682s.c | 2 +- 5 files changed, 116 insertions(+), 12 deletions(-)