From patchwork Thu Sep 10 12:31:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7153741 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 8E4FFBEEC1 for ; Thu, 10 Sep 2015 12:32:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ABAD22088F for ; Thu, 10 Sep 2015 12:32:51 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6B1F6208EA for ; Thu, 10 Sep 2015 12:32:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6D199265A13; Thu, 10 Sep 2015 14:32:49 +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=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 6F4A92657B0; Thu, 10 Sep 2015 14:32:08 +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 10A26265901; Thu, 10 Sep 2015 14:32:07 +0200 (CEST) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by alsa0.perex.cz (Postfix) with ESMTP id 5898A2657B0 for ; Thu, 10 Sep 2015 14:31:58 +0200 (CEST) Received: by pacfv12 with SMTP id fv12so43071295pac.2 for ; Thu, 10 Sep 2015 05:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KZkfNZjYLLa5rMF/neIIVfatbLOsi/oh05u+472vvaA=; b=gJCe0Nj6WR26A9RVA8YLmm9QTPo4UBsR6OwMbyroNd/vyKsH+UPazVZbVxdqOY6Jbk k2EkuXgTD/OP6rgLCDia3ZDk0jNJJwUjCQrBxu2Vg0uohUPkK7JK9Ua51EB0By1P9pEe +wLgDdIC3aJIFTalZlzmlCUlT6eWOIJsWubClCKMEwpw9adZm0sEvQtuhSlERW8GfwXN q+SM4RXygPDUWusaL7QXClq4yEKFMHx39XfOH5JbfhY/KW4VjK1ghAa5YMKx7ndg5cvA tP9bj95H+QvRPXXUyERG6Hr4JofFP52XOWcnZb/0F4Uft4ro46uG7Eq0yzkQSstcEJD1 5JTA== X-Received: by 10.66.102.74 with SMTP id fm10mr23552391pab.137.1441888317667; Thu, 10 Sep 2015 05:31:57 -0700 (PDT) Received: from localhost.localdomain ([49.206.249.64]) by smtp.gmail.com with ESMTPSA id fd5sm11859741pbb.53.2015.09.10.05.31.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Sep 2015 05:31:57 -0700 (PDT) From: Sudip Mukherjee To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Date: Thu, 10 Sep 2015 18:01:45 +0530 Message-Id: <1441888305-19957-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441888305-19957-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1441888305-19957-1-git-send-email-sudipm.mukherjee@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [alsa-devel] [PATCH 2/2] ASoC: Intel: remove unused function 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 The function get_current_pipe_id() was not being used. Signed-off-by: Sudip Mukherjee --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index 683e501..5e9c316 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c @@ -368,23 +368,6 @@ static void sst_media_close(struct snd_pcm_substream *substream, kfree(stream); } -static inline unsigned int get_current_pipe_id(struct snd_soc_dai *dai, - struct snd_pcm_substream *substream) -{ - struct sst_data *sst = snd_soc_dai_get_drvdata(dai); - struct sst_dev_stream_map *map = sst->pdata->pdev_strm_map; - struct sst_runtime_stream *stream = - substream->runtime->private_data; - u32 str_id = stream->stream_info.str_id; - unsigned int pipe_id; - - pipe_id = map[str_id].device_id; - - dev_dbg(dai->dev, "got pipe_id = %#x for str_id = %d\n", - pipe_id, str_id); - return pipe_id; -} - static int sst_media_prepare(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) {