From patchwork Sun Jul 30 18:08:00 2023 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: 12831 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp1639183vqg; Sun, 30 Jul 2023 12:44:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHdatD32emEPRGfTJVnj4NojfhioVU9vwCEWoQtyp1tY4YyE0VdCq+jivWCfevKbgTdxDEZ X-Received: by 2002:a17:906:9bc8:b0:993:eddd:6df9 with SMTP id de8-20020a1709069bc800b00993eddd6df9mr4495380ejc.2.1690746285780; Sun, 30 Jul 2023 12:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690746285; cv=none; d=google.com; s=arc-20160816; b=G539DGs4/Nq45tNJlfv46cOPCntvOz5tY+eF1kyufw7O40s1V59InePBB8t6YSFXM/ jSl1UZYoRa/rtwz/TE+DQKoG4qNQYL9LT+s6i+RNzXGqXLS61LoMNCuZnKapkRUK42bm utGD+0jqR6HsE6ISB03wu9aaME0L8F94Z7AEQ/qXrRjq+ZxF8DWqNzl5RkxCK9WgET7v jwEKAmyNf5Fz8rE9kgkoAYgjOjLU56DDLUXXVqOBQ9zMHh9bXPorazluvhOOsWiImCPN ra65VPYAfWobdEUUgqOGlsrj7iyHSJeUwbQuC6mWBy9ZttHVPZckUAFoBT3HZWFf6/jB VTLQ== 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=o5kGfhLmlrtKS7cC4Khfr9xNCiQ6ZJrY8LYyZM/NxME=; fh=PV8s9uuis6v9nPhVaqeaRHRAQOvSp23GyZG3Jql0P2k=; b=ILYbW49DnCTJUMrs/uXubpQbXBTcmxXjlNgt6yHqgq4dJ476a/VOib1zpUI0Nu33i3 vm/jT0DiPmQUv/WtR0khBZOg47IHZ0/liVzLAEtlRukBTb7qIdKWUtfL7A+JdNUo6u1d Z26HEdpt1z28ISy3uJfzgOjnEYIpn6AelPu3gpxL5rVBEsQDPMGiEnOW+k4KwBnq3Cx8 4i5L+syyoD1IT6+MsdLjwMqHzbATUxXsJvG/6WVMifmVdyAiF2YQjKpk0SLb3iuaTV4Z 7aSkNAcbHZRyUdS2IqvWDqy6neWl4suo29qYCQ/MJtw0lqAyBsegJL3XQpZ1BiWweL4A kcQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=K4DX7c3m; 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 lc23-20020a170906f91700b00992ad2f72fesi5818260ejb.537.2023.07.30.12.44.22; Sun, 30 Jul 2023 12:44:45 -0700 (PDT) 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=K4DX7c3m; 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 S229929AbjG3SIZ (ORCPT + 99 others); Sun, 30 Jul 2023 14:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjG3SIW (ORCPT ); Sun, 30 Jul 2023 14:08:22 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3373A1711 for ; Sun, 30 Jul 2023 11:08:12 -0700 (PDT) X-UUID: 091c3b542f0411ee9cb5633481061a41-20230731 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=o5kGfhLmlrtKS7cC4Khfr9xNCiQ6ZJrY8LYyZM/NxME=; b=K4DX7c3mv/zN85/j2lmKCTmbQiNPK5J1slwfzBJC3+zmS4/fSQGuMxw9WdX+JWhARXv5sbgB0RN37Mj0Ah0NvEfson/5EoHjlbO57vH4MpvT6Z21bCZfGrK9v/ESD1f9qeib0xGwm2E2JfekDbj0LSvoUJadmGDSH9DlkJjL2Zw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.30,REQID:593ec220-921f-418c-9461-31e94d195dbf,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:1fcc6f8,CLOUDID:46e79c42-d291-4e62-b539-43d7d78362ba,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,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 091c3b542f0411ee9cb5633481061a41-20230731 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1768640190; Mon, 31 Jul 2023 02:08:07 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 31 Jul 2023 02:08:05 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 31 Jul 2023 02:08:05 +0800 From: Jiaxin Yu To: , , , , , , , CC: , , , , , , , , , Jiaxin Yu Subject: [v3 0/3] ASoC: mediatek:mt8186: fix both the speaker and hdmi Date: Mon, 31 Jul 2023 02:08:00 +0800 Message-ID: <20230730180803.22570-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.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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: INBOX X-GMAIL-THRID: 1772875977249689467 X-GMAIL-MSGID: 1772875977249689467 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. 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 | 32 +++++++- .../mt8186/mt8186-mt6366-da7219-max98357.c | 2 +- .../mt8186/mt8186-mt6366-rt1019-rt5682s.c | 2 +- 5 files changed, 113 insertions(+), 10 deletions(-)