Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5760849ybx; Sun, 10 Nov 2019 21:03:56 -0800 (PST) X-Google-Smtp-Source: APXvYqx0mSpIHz2lfXMOqnSWmRzm2D15jCzYdfRkE2/+vaBqMHYRfFCqdKwg85YHuvTB0/mYDavS X-Received: by 2002:a17:906:f191:: with SMTP id gs17mr18795058ejb.207.1573448636200; Sun, 10 Nov 2019 21:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573448636; cv=none; d=google.com; s=arc-20160816; b=S0QtUe5XOR5aYaZ3/XQ6bLDmsY+aXEfrzY09bptccXszJtuo2U4GzCDhkT6in75Fiu fzNnd7CKElIHS0ZRyXubkqiefpy7CYCN2G2IiTpkYCcnHhLaXn8MU07OJeSXRLljAllU Rkh1qXeHfVvvUR/9a8AxgVoqiMgjECDmoPXOLLwqTBKU05if2r60ofYRKwMku3HtwflP /dedu8484AaZ60gCP4JJDHM+FSXB0q6OozXepQpFfAA0FYuB67MK3KRrj+vhKfgXNTLZ mSmv+5L5Ds6B6qGRqcVjbR0Qp6SmnBHdf8eTCPl48s5mdSMOelT95KZUaX4Z5jpTxgI3 L+sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=U7b4HbdbABRQ0OKBteF+8E9sbbz1s+M+MoJNKVZi2qY=; b=L1rqtk19qu28WXUr6yindR4RALbo0KQJvJDUuBWDCbxtbYcgriE6DNYS11vjdaXOeg aC0z41HEhS9dof5k9OABpmY9JiqF4Ltqzxn/0VwgL7Lm28bs9Q+UHmCql7Obm4dTa3se X0izFpmDDhKUQlfvBe6cjsKigIJCxn6ZxzwYVwpC5H2tLH0RRS8EWSqomXpYc+gFBNiz IdgxaA5Cbr8maTMowyoSRnlRojRnEqXnxA+I4FIFXgmzgKLhqECFDKTpC3p5CkXTqvUR NSAO8g9ynMIvP2RordL5yui86Y+Tl8YEFPLpMCtRJuP4GBdoO8LPraJiEz3Nyrjb4xce f0Hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c44si9529133ede.398.2019.11.10.21.03.32; Sun, 10 Nov 2019 21:03:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726804AbfKKFCi (ORCPT + 99 others); Mon, 11 Nov 2019 00:02:38 -0500 Received: from www1102.sakura.ne.jp ([219.94.129.142]:62222 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbfKKFCi (ORCPT ); Mon, 11 Nov 2019 00:02:38 -0500 X-Greylist: delayed 3600 seconds by postgrey-1.27 at vger.kernel.org; Mon, 11 Nov 2019 00:02:36 EST Received: from fsav108.sakura.ne.jp (fsav108.sakura.ne.jp [27.133.134.235]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id xAB3U1uw022710; Mon, 11 Nov 2019 12:30:01 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav108.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav108.sakura.ne.jp); Mon, 11 Nov 2019 12:30:01 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav108.sakura.ne.jp) Received: from [192.168.1.2] (121.252.232.153.ap.dti.ne.jp [153.232.252.121]) (authenticated bits=0) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id xAB3U0F8022658 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Mon, 11 Nov 2019 12:30:01 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Subject: Re: [PATCH] arm64: dts: rockchip: add analog audio nodes on rk3399-rockpro64 To: Vasily Khoruzhick Cc: Heiko Stuebner , linux-rockchip@lists.infradead.org, linux-kernel , arm-linux References: <20190907174833.19957-1-katsuhiro@katsuster.net> From: Katsuhiro Suzuki Message-ID: Date: Mon, 11 Nov 2019 12:30:00 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Vasily, Thank you for reporting. On 2019/11/11 9:17, Vasily Khoruzhick wrote: > On Sat, Sep 7, 2019 at 10:48 AM Katsuhiro Suzuki > wrote: >> >> This patch adds audio codec (Everest ES8316) and I2S audio nodes for >> RK3399 RockPro64. > > Hi Katsuhiro, > > I tested your patch with my rockpro64 on 5.4-rc6 which has your other > patches to es8316 driver, but apparently it doesn't work. > > 'alsamixer' complains 'cannot load mixer controls: No such device or > address' and if I try to play audio with mpg123 it pretends that it > plays something but there's no sound. > > Any idea what can be wrong? > Do you use defconfig? If so I guess we need turn on more configs: - simple-graph-card driver (CONFIG_SND_AUDIO_GRAPH_CARD) - ES8316 (SND_SOC_ES8316) FYI) ASoC related status or logs in my environment as follows: root@rockpro64:~# uname -a Linux rockpro64 5.4.0-rc6-next-20191108 #169 SMP PREEMPT Mon Nov 11 12:21:44 JST 2019 aarch64 GNU/Linux root@rockpro64:~# dmesg | grep -i asoc [ 21.509903] asoc-simple-card hdmi-sound: i2s-hifi <-> ff8a0000.i2s mapping ok [ 21.510550] asoc-simple-card hdmi-sound: ASoC: no DMI vendor name! [ 21.567906] asoc-audio-graph-card sound: ES8316 HiFi <-> ff890000.i2s mapping ok [ 21.568565] asoc-audio-graph-card sound: ASoC: no DMI vendor name! root@rockpro64:~# cat /proc/asound/pcm 00-00: ff8a0000.i2s-i2s-hifi i2s-hifi-0 : ff8a0000.i2s-i2s-hifi i2s-hifi-0 : playback 1 01-00: ff890000.i2s-ES8316 HiFi ES8316 HiFi-0 : ff890000.i2s-ES8316 HiFi ES8316 HiFi-0 : playback 1 : capture 1 root@rockpro64:~# cat /sys/kernel/debug/asoc/components hdmi-audio-codec.3.auto ff8a0000.i2s ff8a0000.i2s ff890000.i2s ff890000.i2s ff880000.i2s ff880000.i2s es8316.1-0011 snd-soc-dummy snd-soc-dummy root@rockpro64:~# cat /sys/kernel/debug/asoc/dais i2s-hifi ff8a0000.i2s ff890000.i2s ff880000.i2s ES8316 HiFi snd-soc-dummy-dai Best Regards, Katsuhiro Suzuki > Regards, > Vasily > >> Signed-off-by: Katsuhiro Suzuki >> --- >> .../boot/dts/rockchip/rk3399-rockpro64.dts | 28 +++++++++++++++++++ >> 1 file changed, 28 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts >> index 0401d4ec1f45..8b1e6382b140 100644 >> --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts >> +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts >> @@ -81,6 +81,12 @@ >> reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; >> }; >> >> + sound { >> + compatible = "audio-graph-card"; >> + label = "rockchip,rk3399"; >> + dais = <&i2s1_p0>; >> + }; >> + >> vcc12v_dcin: vcc12v-dcin { >> compatible = "regulator-fixed"; >> regulator-name = "vcc12v_dcin"; >> @@ -470,6 +476,20 @@ >> i2c-scl-rising-time-ns = <300>; >> i2c-scl-falling-time-ns = <15>; >> status = "okay"; >> + >> + es8316: codec@11 { >> + compatible = "everest,es8316"; >> + reg = <0x11>; >> + clocks = <&cru SCLK_I2S_8CH_OUT>; >> + clock-names = "mclk"; >> + #sound-dai-cells = <0>; >> + >> + port { >> + es8316_p0_0: endpoint { >> + remote-endpoint = <&i2s1_p0_0>; >> + }; >> + }; >> + }; >> }; >> >> &i2c3 { >> @@ -505,6 +525,14 @@ >> rockchip,playback-channels = <2>; >> rockchip,capture-channels = <2>; >> status = "okay"; >> + >> + i2s1_p0: port { >> + i2s1_p0_0: endpoint { >> + dai-format = "i2s"; >> + mclk-fs = <256>; >> + remote-endpoint = <&es8316_p0_0>; >> + }; >> + }; >> }; >> >> &i2s2 { >> -- >> 2.23.0.rc1 >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >