Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934301AbbEMN1p (ORCPT ); Wed, 13 May 2015 09:27:45 -0400 Received: from regular2.263xmail.com ([211.157.152.3]:35256 "EHLO regular2.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933546AbbEMN1n (ORCPT ); Wed, 13 May 2015 09:27:43 -0400 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: zhengxing@rock-chips.com X-FST-TO: broonie@kernel.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: zhengxing@rock-chips.com X-UNIQUE-TAG: <374e87cc0dad76e54a1a45e133d1731f> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Message-ID: <55535035.5070608@rock-chips.com> Date: Wed, 13 May 2015 21:23:01 +0800 From: zhengxing User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: Mark Brown CC: Xing Zheng , dgreid@chromium.org, dianders@chromium.org, heiko@sntech.de, sonnyrao@chromium.org, linux-rockchip@lists.infradead.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/4] ASoC: rockchip: add rockchip machine driver References: <1431422797-31903-1-git-send-email-zhengxing@rock-chips.com> <1431422797-31903-2-git-send-email-zhengxing@rock-chips.com> <20150512192215.GZ3066@sirena.org.uk> In-Reply-To: <20150512192215.GZ3066@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1635 Lines: 36 On 2015年05月13日 03:22, Mark Brown wrote: > On Tue, May 12, 2015 at 05:26:34PM +0800, Xing Zheng wrote: >> From: zhengxing >> >> In most cases, we maybe use simple-card as generic machine driver >> on next kernel, but there are some issue that jack detection and >> widgets extandable on simple-card. >> >> Own machine drvier can select one valid codec from supported codecs, >> and add needful function from dts on rockchip platform. > Is it not possible to extend simple card to handle your use cases? > Given the very generic naming and the fact that things like jack > detection and so on should depend on the CODEC and board usually rather > than on the SoC it doesn't sound like this is Rockchip specific. > > This also looks like you're reimplementing some device model enumeration > stuff which probably shouldn't be happening but let's understand the > problem you're trying to solve here before going too far into the code. Dear Mark, Thanks for your reply. Because we are trying to bring rt5650 in the project, so we intend to describe supported codecs with DTS via only a rockchip machine driver file, others remain pre-implement(like max98090 / rt5645 that vendor machine driver). I communicated with Dylan, and he told me that the jack detection is an issue in the simple-card, and suggested we are better to send them at present. Thanks. -- 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/