Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4265952pxv; Tue, 29 Jun 2021 03:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN4Yrz7F7PM8FxZ43sCU3Xy4tIgMuTDbuGkY2vFCQ72tOTScBPTF2paDwlhaZfEqLrIA10 X-Received: by 2002:aa7:da8a:: with SMTP id q10mr38113192eds.81.1624960848250; Tue, 29 Jun 2021 03:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624960848; cv=none; d=google.com; s=arc-20160816; b=eIstO1PCo97hiT/A3n+t0PXgBDEu7p4RUzPQ021BKlrw+y6yuShZCCaQUPmWVQrfAk vSvdfwT7K5aidw157mLQQhR9teVZQlmVsHSAf7KIpP20kMhIEhnGw97gmnDHeP77yLa8 avYsfw2R+2Jw4XIve7spGPD796FXBfRrL5juo6b9Qtvm35fU0rGkTNeVCaRU0QG2J5D0 dr3TsniuOxITne0JPjb/ybSF90HQNa4x4zq5oSBxeDu1VtyFb+AKLthkUE8iifGtjvpJ YhR653xJ6y3g56pr6K3adlrAQdy/Wa4pvqvJU34DUhaqtaOFueK++hyO0HeWw3Dk+4Kf AnIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=QP7mBz6HEc3gWXUBLCO9UGJFO7KSjl9lc/5tcIso4oQ=; b=VZGyIoD5U4HQ3IhOhfDEzVNBkK+30jyOqsHYB8b64W/+e5viYGojgZHFEyuj8htwIF xIubMDIj5ahAxkWXdPoRFf4YwN4KqYWSeQCgIqRFyLZ/U64iqQ6//vsax+u8hENiO0Yg 2Gmw41rU/RiozBQosoVjdh39WfFVriUgopHhQ0GhttMCuJrd+8Y7PNiCV80YDVwg8ZiO QhSA1ShEi/rzK7ar/85YbOhT3gK4HWr56EAIkDYO9+tB1CLaz1qXcRHrubOtRHwn6TeH zUslNlWkmUsGnW6yiQ1eWEaTTuWtSrtTNzXmt1AlL49jKE1FqUwz43kVHTtN6aweEcYE q2tQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si17017689edq.154.2021.06.29.03.00.23; Tue, 29 Jun 2021 03:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232774AbhF2JSh (ORCPT + 99 others); Tue, 29 Jun 2021 05:18:37 -0400 Received: from regular1.263xmail.com ([211.150.70.200]:45410 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232752AbhF2JSe (ORCPT ); Tue, 29 Jun 2021 05:18:34 -0400 Received: from localhost (unknown [192.168.167.130]) by regular1.263xmail.com (Postfix) with ESMTP id A7FA71C5D; Tue, 29 Jun 2021 17:16:01 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED2: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 1 Received: from [168.168.4.18] (unknown [183.57.25.242]) by smtp.263.net (postfix) whith ESMTP id P12976T140334009423616S1624958159864211_; Tue, 29 Jun 2021 17:16:00 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: djw@t-chip.com.cn X-SENDER: djw@t-chip.com.cn X-LOGIN-NAME: djw@t-chip.com.cn X-FST-TO: linux-kernel@vger.kernel.org X-RCPT-COUNT: 15 X-SENDER-IP: 183.57.25.242 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 Subject: Re: [PATCH v0 2/2] arm64: dts: rockchip: add support for Firefly ROC-RK3399-PC-PLUS To: linux-rockchip@lists.infradead.org Cc: Wayne Chou , Kongxin Deng , Heiko Stuebner , Chen-Yu Tsai , Jagan Teki , Jensen Huang , Johan Jonker , Liang Chen , Marty Jones , Rob Herring , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210628035402.16812-1-djw@t-chip.com.cn> <20210628035402.16812-3-djw@t-chip.com.cn> From: Levin Message-ID: <149c2171-471e-343e-8126-38394746b044@t-chip.com.cn> Date: Tue, 29 Jun 2021 17:15:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210628035402.16812-3-djw@t-chip.com.cn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, is it possible to turn on some codec mixer switch in the device tree? 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 as 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 = "simple-audio-card"; > + pinctrl-names = "default"; > + pinctrl-0 = <&hp_det_pin>; > + simple-audio-card,name = "rockchip,es8388-codec"; > + simple-audio-card,format = "i2s"; > + simple-audio-card,mclk-fs = <256>; > + > + simple-audio-card,widgets = > + "Microphone", "Mic Jack", > + "Headphone", "Headphones"; > + simple-audio-card,routing = > + "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 = <&gpio2 RK_PA6 GPIO_ACTIVE_HIGH>; > + simple-audio-card,aux-devs = <&headphones_amp>; > + simple-audio-card,pin-switches = "Headphones"; > + > + simple-audio-card,cpu { > + sound-dai = <&i2s1>; > + }; > + > + simple-audio-card,codec { > + sound-dai = <&es8388>; > + }; > + }; > + > -- Best Regards! Levin Du