Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964992AbbEMN2A (ORCPT ); Wed, 13 May 2015 09:28:00 -0400 Received: from regular2.263xmail.com ([211.157.152.4]:49567 "EHLO regular2.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934276AbbEMN1z (ORCPT ); Wed, 13 May 2015 09:27:55 -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: <323407ff4d8557041a2e2934a4444876> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Message-ID: <55535048.4030703@rock-chips.com> Date: Wed, 13 May 2015 21:23:20 +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 2/4] ASoC: rockchip: add rockchip machine driver for max98090 References: <1431422797-31903-1-git-send-email-zhengxing@rock-chips.com> <1431422797-31903-3-git-send-email-zhengxing@rock-chips.com> <20150512192636.GA3066@sirena.org.uk> In-Reply-To: <20150512192636.GA3066@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: 1997 Lines: 43 On 2015年05月13日 03:26, Mark Brown wrote: > On Tue, May 12, 2015 at 05:26:35PM +0800, Xing Zheng wrote: > >> sound/soc/rockchip/Kconfig | 10 ++ >> sound/soc/rockchip/Makefile | 2 + >> sound/soc/rockchip/rockchip_machine_driver.c | 6 + >> sound/soc/rockchip/rockchip_machine_driver.h | 6 + >> sound/soc/rockchip/rockchip_max98090.c | 185 ++++++++++++++++++++++++++ > This looks more like a normal and reasonable machine driver but then why > have you created the generic rockchip machine driver? It seems like > this should just be a regular machine driver like other platforms have, > were it not for that this would be mostly fine apart from a couple of > nitpicks below. We just use rockchip_machine_driver to describe the supported codecs base on origianl way, vendor machine driver(rockchip_max98090) will achieve functions. >> +config SND_SOC_ROCKCHIP_MAX98090 >> + tristate "ASoC support for Rockchip boards using a MAX98090 codec" >> + depends on SND_SOC_ROCKCHIP&& I2C&& GPIOLIB >> + select SND_SOC_ROCKCHIP_I2S >> + select SND_SOC_MAX98090 >> + select SND_SOC_TS3A227E > This looks like it's a driver specific to Chromebooks (possibly even > specific Chromeooks) and so should be named as such. > >> + card->dapm.idle_bias_off = true; > Just set this when declaring the card, don't do it at runtime. Thanks, I got it. >> + snd_soc_dapm_enable_pin(dapm, "Headset Mic"); >> + snd_soc_dapm_enable_pin(dapm, "Headphone"); >> + snd_soc_dapm_enable_pin(dapm, "Speaker"); >> + snd_soc_dapm_enable_pin(dapm, "Int Mic"); > No need to do this, all pins are enabled by default. Yes, I got it. >> + snd_soc_dapm_sync(dapm); > This has no effect during initialization. Yes, I got it. -- 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/