From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFD1AC11F66 for ; Tue, 29 Jun 2021 09:34:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 51E5561D88 for ; Tue, 29 Jun 2021 09:34:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 51E5561D88 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sntech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PVigpA8R0Lo2ckbDIWH4JQbVMXtJQO4xmTC5MFKNgwE=; b=2cLrd6p0VApRS3 jYG10EBDg9qWA6j7RUBdwia0UYI9IUFEfziiyx7rY9e2idJ/SRwRvJONPsX0QMfrNoJpBWcjMmGbw WO92buspmfxJ8AosaVBSO9dkqiiuctZ1Eq9zxqYo/s1ajTfcLdmV2jQ58TgCkS/WWGBjEcfmLcZhR cNGt6v2ZCR2Ck+vFioRfe1y6tRnD9Vax53T3FXPF+xZKM6jjJBYo65fxEm6bcwbfoiXq/Cibint2L gPeVCdVFZEO+ebiIwmOr9nEftaLVTcL3hx6O7+3JUcHziSP4Z7YlWNAgn6xEWlPYvwPPq2Wa+elEz VTOkZhc3Rg9DHok7pdwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyA6w-00ANQn-7b; Tue, 29 Jun 2021 09:32:54 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyA6r-00ANPl-B4; Tue, 29 Jun 2021 09:32:50 +0000 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyA6j-00024K-Nm; Tue, 29 Jun 2021 11:32:41 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-rockchip@lists.infradead.org, Levin Cc: Wayne Chou , Kongxin Deng , Chen-Yu Tsai , Jagan Teki , Jensen Huang , Johan Jonker , Liang Chen , Marty Jones , Rob Herring , Uwe =?ISO-8859-1?Q?Kleine=2DK=F6nig?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v0 2/2] arm64: dts: rockchip: add support for Firefly ROC-RK3399-PC-PLUS Date: Tue, 29 Jun 2021 11:32:40 +0200 Message-ID: <4501122.2vfOZ694Ok@diego> In-Reply-To: <3771996.aKNjEaI27c@diego> References: <20210628035402.16812-1-djw@t-chip.com.cn> <149c2171-471e-343e-8126-38394746b044@t-chip.com.cn> <3771996.aKNjEaI27c@diego> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210629_023249_427270_2909AB34 X-CRM114-Status: GOOD ( 19.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Am Dienstag, 29. Juni 2021, 11:30:10 CEST schrieb Heiko St=FCbner: > Hi Levin, > = > Am Dienstag, 29. Juni 2021, 11:15:59 CEST schrieb Levin: > > Hi all, is it possible to turn on some codec mixer switch in the device = > > tree? > = > I don't think that is appropriate and/or/ possible in the devicetree. > = > Instead I think you want an Alsa UCM profile for it, see: > https://github.com/alsa-project/alsa-ucm-conf/tree/master/ucm2/Rockchip > = > = > Heiko > = > > = > > = > > Currently, to hear to sound, we need to run the following commands from = > > the user space: > > = > > # turn on mixer switch > > = > > amixer -c 1 sset 'Left Mixer' on > > amixer -c 1 sset 'Right Mixer' on > > = > > # raise volume > > = > > amixer -c 1 sset 'Output 2' 36 > > = > > = > > If these settings can be embedded into device tree, and set by kernel a= s = > > initial ALSA path settings, > > = > > user can hear the sound with zero ALSA config. That'll be great. > > = > > = > > On 2021-06-28 11:54 AM, djw@t-chip.com.cn wrote: > > > + > > > + es8388-sound { > > > + compatible =3D "simple-audio-card"; > > > + pinctrl-names =3D "default"; > > > + pinctrl-0 =3D <&hp_det_pin>; > > > + simple-audio-card,name =3D "rockchip,es8388-codec"; and I guess you'd want a more specific name as that config likely is board-= specific not for all boards using the es8388-codec? Heiko > > > + simple-audio-card,format =3D "i2s"; > > > + simple-audio-card,mclk-fs =3D <256>; > > > + > > > + simple-audio-card,widgets =3D > > > + "Microphone", "Mic Jack", > > > + "Headphone", "Headphones"; > > > + simple-audio-card,routing =3D > > > + "LINPUT1", "Mic Jack", > > > + "Headphone Amp INL", "LOUT2", > > > + "Headphone Amp INR", "ROUT2", > > > + "Headphones", "Headphone Amp OUTL", > > > + "Headphones", "Headphone Amp OUTR"; > > > + > > > + simple-audio-card,hp-det-gpio =3D <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>; > > > + simple-audio-card,aux-devs =3D <&headphones_amp>; > > > + simple-audio-card,pin-switches =3D "Headphones"; > > > + > > > + simple-audio-card,cpu { > > > + sound-dai =3D <&i2s1>; > > > + }; > > > + > > > + simple-audio-card,codec { > > > + sound-dai =3D <&es8388>; > > > + }; > > > + }; > > > + > > > > > = > = > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel