From patchwork Wed Oct 15 20:55:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatol Pomozov X-Patchwork-Id: 5087231 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 856069F2BA for ; Wed, 15 Oct 2014 20:56:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAFF720138 for ; Wed, 15 Oct 2014 20:56:02 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 5E962200FE for ; Wed, 15 Oct 2014 20:56:01 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B2F7A2614D0; Wed, 15 Oct 2014 22:55:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM, NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 7F18B2605D9; Wed, 15 Oct 2014 22:55:49 +0200 (CEST) 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 5909E26109C; Wed, 15 Oct 2014 22:55:46 +0200 (CEST) Received: from mail-pa0-f74.google.com (mail-pa0-f74.google.com [209.85.220.74]) by alsa0.perex.cz (Postfix) with ESMTP id 1444A260432 for ; Wed, 15 Oct 2014 22:55:37 +0200 (CEST) Received: by mail-pa0-f74.google.com with SMTP id kq14so376535pab.3 for ; Wed, 15 Oct 2014 13:55:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=UqP7nEo2Qr4n+3+PTjW+z8JpgOKvkH4DjTbCEPCBeuI=; b=J5LFyOViYXPu+7Kj7k5Tz8yfu7/5bJsxn3zP0f4DAG0EQ0SDtAFLPYCsTJT7gATNHA Z/T9fnLObbP/zfbt3NlvZHY6Tkt6Oals4ZGFo/1sDsU6ASPf7PJSMH76Fb1KR6EPs3WK GyMonwDk7/Iwo9bdEXHwF4bynm+x85KBAcIHm0JVGy5WCTI5whPLonf8SdnQlqhrjSGI JpTQMcT7NuM1a9ntXTC/zNdAhjPUcu3NwS0DouQAlz/tKfi12+TnTGc3Ez2JjmTqSkl+ mzWMImUZ5f2veB+nsuGai99+zNtBLn1o2uyi+mNDGGPal/wNk6wXPZCYJCfKoCulC/eF oMjA== X-Gm-Message-State: ALoCoQkrmLPymrVeE0MD1DCMGfCwe1X+f2vRmdl+qgfvxVkeeZJWW+85u/otGA4gC1C36eNw/ERTvSAq36G2YhheXgZIHYopJ/DT0wncxN0oFJCfPi/lZrHD4OkWX6C/qfGY+xbzAX7ru97ihlXjUy5ryw8AFRXYsfU8do2cD9YkNAB+cwpb3dk= X-Received: by 10.68.228.102 with SMTP id sh6mr9974336pbc.4.1413406536023; Wed, 15 Oct 2014 13:55:36 -0700 (PDT) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id n24si1018446yha.6.2014.10.15.13.55.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Oct 2014 13:55:35 -0700 (PDT) Received: from anatol.mtv.corp.google.com ([172.22.64.197]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id UVE90IzC.1; Wed, 15 Oct 2014 13:55:35 -0700 Received: by anatol.mtv.corp.google.com (Postfix, from userid 67983) id 3300D1003B3; Wed, 15 Oct 2014 13:55:35 -0700 (PDT) From: Anatol Pomozov To: broonie@kernel.org Date: Wed, 15 Oct 2014 13:55:32 -0700 Message-Id: <1413406532-7286-1-git-send-email-anatol.pomozov@gmail.com> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 Cc: oder_chiou@realtek.com, alsa-devel@alsa-project.org, Anatol Pomozov Subject: [alsa-devel] [PATCH] ASoC: rt5677: Print more information if setting DAI clock failed 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Anatol Pomozov --- sound/soc/codecs/rt5677.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c index 2f0d19f..a8d9eab 100644 --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -3104,7 +3104,8 @@ static int rt5677_hw_params(struct snd_pcm_substream *substream, rt5677->lrck[dai->id] = params_rate(params); pre_div = rl6231_get_clk_info(rt5677->sysclk, rt5677->lrck[dai->id]); if (pre_div < 0) { - dev_err(codec->dev, "Unsupported clock setting\n"); + dev_err(codec->dev, "Unsupported clock setting: sysclk=%dHz lrck=%dHz\n", + rt5677->sysclk, rt5677->lrck[dai->id]); return -EINVAL; } frame_size = snd_soc_params_to_frame_size(params);