Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751419AbbKIHWG (ORCPT ); Mon, 9 Nov 2015 02:22:06 -0500 Received: from regular1.263xmail.com ([211.150.99.138]:36494 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750833AbbKIHWD (ORCPT ); Mon, 9 Nov 2015 02:22:03 -0500 X-263anti-spam: KSV:0;BIG:0;ABS:1;DNS:0;ATT:0;SPF:S; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ADDR-CHECKED: 0 X-RL-SENDER: sugar.zhang@rock-chips.com X-FST-TO: linux-arm-kernel@lists.infradead.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: sugar.zhang@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH v3 1/3] ASoC: rockchip: i2s: add 8 channels capture support To: Mark Brown References: <1446773891-32174-1-git-send-email-sugar.zhang@rock-chips.com> <1446773891-32174-2-git-send-email-sugar.zhang@rock-chips.com> <20151106120020.GH18409@sirena.org.uk> Cc: alsa-devel@alsa-project.org, heiko@sntech.de, linux-kernel@vger.kernel.org, tiwai@suse.com, lgirdwood@gmail.com, linux-rockchip@lists.infradead.org, perex@perex.cz, linux-arm-kernel@lists.infradead.org From: sugar Message-ID: <56404991.6000505@rock-chips.com> Date: Mon, 9 Nov 2015 15:21:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151106120020.GH18409@sirena.org.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1234 Lines: 34 On 11/6/2015 20:00, Mark Brown wrote: > On Fri, Nov 06, 2015 at 09:38:09AM +0800, Sugar Zhang wrote: > >> + /* refine capture channels */ >> + if (!of_property_read_u32(node, "rockchip,capture-channels", &val)) { >> + if (val >= 2 && val <= 8) >> + rockchip_i2s_dai.capture.channels_max = val; >> + else >> + rockchip_i2s_dai.capture.channels_max = 2; >> + } > > You should make a copy of the rockchip_i2s_dai struct in your driver > data and modify that rather than modifying the original - what happens > if sommeone makes a SoC with two I2S DAIs, one with many channels and > another with only two? Samsung SoCs often have an arrangement like that > for exmaple. > Yes, I agree, because this patch was merged into mainline, I will post a new one based on the latest code to fix this, thanks. > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/