From patchwork Tue Dec 22 02:16:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 7899971 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 54A59BEEE5 for ; Tue, 22 Dec 2015 02:17:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A3A7205BD for ; Tue, 22 Dec 2015 02:16:59 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 27D43205B3 for ; Tue, 22 Dec 2015 02:16:58 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id DBFAF2650CC; Tue, 22 Dec 2015 03:16:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 7B7F9261552; Tue, 22 Dec 2015 03:16:49 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3B09C261737; Tue, 22 Dec 2015 03:16:47 +0100 (CET) Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by alsa0.perex.cz (Postfix) with ESMTP id 82B8B2614A6 for ; Tue, 22 Dec 2015 03:16:41 +0100 (CET) Received: by mail-pf0-f182.google.com with SMTP id n128so81211492pfn.0 for ; Mon, 21 Dec 2015 18:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:content-type:mime-version :content-transfer-encoding; bh=0B2cWt9YVJRbAGwa0eI7umamG7XGELNi9IJni00NmKs=; b=nQJUO4f9uzNl0QDB/7/MDlNkZ83Jogd1q5mrzr17TCmukZHIGqq85j5gyrKzgeBuXR g1YnqpFC/rDWT3o8r2K4xQKHDOZSYevQbCpMReMPZ9ngwB3/REIdcNpt5T6sO+bQv2vz XD5MFCsLs5GQWaoN+G7XffS3S8IoeN/lx0k7uL1socuwqihnmjkYIi32bkSml8TdaZkT 78JGC+bE0jrfFAH6/8CpbgA7CRF3TorVO2C3AUiK51dJX3Wg99cBzMnCCqdXKQGiWmPs NgvGZRyBPcQNqxGYnkoJf8SwWb7W5gSWnOVNnyitjxEp6eYU/oAjBhXh95eNexJLb/p8 JfOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=0B2cWt9YVJRbAGwa0eI7umamG7XGELNi9IJni00NmKs=; b=f7GFo9WwfVRyE68SiGHirNRDUz1p65d3MZYSJsrB3QBHjOR4plOudDUkgWq+oq/rWJ UpiT4qGR9p19z3XRCoB9SfN55z4Cd5wgLyY6w2RC8kyXONg4TTOqeyH6upi4+o2IkvDU VL8kf/0iMlBRf0pMO3SCe6LQj65U6IXFUmztm9/qQibDNcHLkNvk6QmTDA5+B/ThZxc1 Zx8j8u3h2rSoYOPMV4JeU7GyvrLyovSwgL/gy9wRb5ZSpvjbt+7JPG5tqi5DXK0s8xqJ nN6aghhdDVSnV9ziBsD8g7+KElZKUlDVlvu+FjiCOjNir5JJrt2NCSVnY6FfWLZqv8kj WSzA== X-Gm-Message-State: ALoCoQnwbywEesJYyys2LHi8yQzuiHbNE8CqdQDe96rnVWCJhtwJoz6YgMdHkpUwHMKot5O7ULIzlWVps9PZQDl8E900HyyoHA== X-Received: by 10.98.87.7 with SMTP id l7mr31813601pfb.124.1450750600054; Mon, 21 Dec 2015 18:16:40 -0800 (PST) Received: from phoenix (59-115-242-142.dynamic.hinet.net. [59.115.242.142]) by smtp.gmail.com with ESMTPSA id dg1sm41964023pad.18.2015.12.21.18.16.37 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Dec 2015 18:16:38 -0800 (PST) Message-ID: <1450750595.14401.1.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Tue, 22 Dec 2015 10:16:35 +0800 X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Cc: Oder Chiou , Bard Liao , alsa-devel@alsa-project.org, Liam Girdwood Subject: [alsa-devel] [PATCH] ASoC: rt5616: Return error if device ID mismatch X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Axel Lin Acked-by: Bard Liao --- sound/soc/codecs/rt5616.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c index f4005cb..0e9414a 100644 --- a/sound/soc/codecs/rt5616.c +++ b/sound/soc/codecs/rt5616.c @@ -1314,7 +1314,7 @@ static int rt5616_i2c_probe(struct i2c_client *i2c, dev_err(&i2c->dev, "Device with ID register %#x is not rt5616\n", val); - ret = -ENODEV; + return -ENODEV; } regmap_write(rt5616->regmap, RT5616_RESET, 0); regmap_update_bits(rt5616->regmap, RT5616_PWR_ANLG1,