Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp74312pxv; Tue, 29 Jun 2021 23:53:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/9d1SsqMLAKjDEeU1qs5h0QYXjJ15fMKSv6EobMIndl4YURRuGRBR2Rha/CvdYOoy8nkm X-Received: by 2002:a05:6402:2691:: with SMTP id w17mr45512004edd.353.1625036030315; Tue, 29 Jun 2021 23:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625036030; cv=none; d=google.com; s=arc-20160816; b=CQbTpuPlC2M9buOOYffOWnSV1wJPIyLPvPW9vtWs3qPsg146WECQBm4eTTtrhs4ol0 EUkVgfux8Z6kGdluJR6ETMSDQNhFuLUxnf3SJIRwKWRxDVkXwyXjEpW7zslHmP5Zb/Ck fMbUrnm8bDGWnCSw8uk87YPapUpGDKJNDf5p13b8hM7nQ2i6IcQFLw+S/KU9fZQr2opq CPtTo/u+6rB4db7viHAvRHf8WBVTtTYseEwrYg0+ctwkM1WKLALzBclNe9Zm9thjaqOO swGXdnBR6WkNvhz7PvHWFf04dcF4l8R/eO8WyByauEcXsP5dBKF2H9/mzQltvmTVfV8A onDA== 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=tFNUIoYGcSmJ9yGSIXdoYVP0Y+IyQFV7apZl+AY6HPc=; b=qGn0i1X0bh48TOjEyd6gG5uIBHPXUKteFKRynbx5m76YynwPHNMNI7p830t9gDoTMa 55lg2+Nvn5wUjktxf1ERnIzXgvCcAAdPwc/uOtHNHigZoTjeQ6dRvUDaSeFF37tc8nFI JNgJIz4grRBCq7H6YG0VAEBSzDa/oL/T5vZrs+NHIkpJmfaFYGZQSS2NNnyTHhHne/n2 jOyKeV+yiCGOddgOSoNftRy0JMP9S1+1Rlw8aVAtpfBuhTh8PQEj5os7QT0qQfGU2LIa wXctzD+3RnshhbTgqxcBu8KeqBKeV3qjP6sqQJebCHp2HrrXs1m5eTfShrsl3pMtC0fU CCQw== 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 o8si2866727ejy.106.2021.06.29.23.53.27; Tue, 29 Jun 2021 23:53:50 -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 S232573AbhF3GwS (ORCPT + 99 others); Wed, 30 Jun 2021 02:52:18 -0400 Received: from regular1.263xmail.com ([211.150.70.206]:38378 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232518AbhF3GwR (ORCPT ); Wed, 30 Jun 2021 02:52:17 -0400 Received: from localhost (unknown [192.168.167.69]) by regular1.263xmail.com (Postfix) with ESMTP id 259FE1B8E; Wed, 30 Jun 2021 14:49:42 +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 P12349T139824115734272S1625035780273543_; Wed, 30 Jun 2021 14:49:41 +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: =?UTF-8?Q?Heiko_St=c3=bcbner?= , linux-rockchip@lists.infradead.org Cc: Wayne Chou , Kongxin Deng , 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> <149c2171-471e-343e-8126-38394746b044@t-chip.com.cn> <3771996.aKNjEaI27c@diego> <4501122.2vfOZ694Ok@diego> From: Levin Message-ID: Date: Wed, 30 Jun 2021 14:49:40 +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: <4501122.2vfOZ694Ok@diego> 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 Heiko, Thanks for your reply. On 2021-06-29 5:32 PM, Heiko Stübner wrote: > Am Dienstag, 29. Juni 2021, 11:30:10 CEST schrieb Heiko Stübner: >> 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 >> Alsa UCM profile is a complete solution, yet it requires more labor work of adding a complex profile with all the controls. The problem is, music/video player knows nothing of the mixers. And with currently codec driver setting, user cannot hear any sound until he turns on two mixer switch. I hope to have a "simple-audio-card,switch" property here. >>> >>> 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"; > 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 > I got what you mean now. It should be renamed to a board-specific card name if using Alsa UCM profile, right ? -- Best Regards! Levin Du