Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2065768lqa; Tue, 30 Apr 2024 07:22:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUodOPLYK3o6X2ui9T9+3F0SjzpiUDTft8w94hKhHcD9xHPzS0tnvneKg07MDGEn2snApo3fRJsrkwLRw4FeQ8Ltu3jgjHvAWrYIW70Lg== X-Google-Smtp-Source: AGHT+IEPEvA8lFl/70u0SQD0xgwXu9R+rwoehh/7S7ibNwG1Gq9wtqytVF48XQ8zGN/6UqhxPhe1 X-Received: by 2002:a54:4504:0:b0:3c8:533f:95a6 with SMTP id l4-20020a544504000000b003c8533f95a6mr14849833oil.53.1714486934054; Tue, 30 Apr 2024 07:22:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714486934; cv=pass; d=google.com; s=arc-20160816; b=Rk9der2NwxYbPITOdQ84ZdOL3P88akFLtINGnuR0P2UvZx0MsehBlxhCCuC7Ub8fV+ QGzneYlI3WJl4nY6dMsNZncJoTN+gKX9Abli8qR2BSm+EqC0LnG4ujEHwuG1c0COv6X0 d1QbFDlHDgs+WevhDI+fA9DpAisZIVuvqV08o9Byupwt952M99jJlsRptu5MumbT8nEX xjHT/nCApBm/on73yJkz4xW9BC0N6xmJy6SyFIDnAG9S7XhjnYqACPrIfopx4dvdOG29 mA/AA26GUzjxd79m/gqGJQVLh1CvsxBhz5Lu4B6syBUKFM9Cx2BT799MHoMlRXEVFjxz lbXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=CRndhXKIBc4clIT/57/JCzLDQofvnx8lXgRkee8Nqks=; fh=Qus8IPxFv9VbBVMzOgHY3JEuFtORcj5CTJIfy+hzLC0=; b=0q0a2pYJ1d8eE4V3Z2n9/9M7ydBjRyhyMDiSAbKEsT37GHvY4FvYsNHFmLQyb+pWCE s9o/p3oda29nMJi47WI+9iKC/+DX4HTtImLb6bQ9gKXPzhI/lfoeIf8srgjdnANT/7FU UplDcf1t5u8/4kO+FM9DijB0zj3HOt8N9M3BCpbRrPUx9cXVMPoApvdyquFZwQOG22Tx zOwqwV1LFykaADTzEDZTKVzx3hc5x+saPrwbZxoO1u4RUmJFgniYx3hmbR16Vzlu0+Sp 3Er7IFgymxXzTGrwdbzBYpXe+Bbpfzvh99MFE7rOBXrdLs7RjF20Wdl5/M6+uw8E6nm7 U/Vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L5o1Woce; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-164105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z7-20020a05622a028700b0043b0a9193a8si3312122qtw.44.2024.04.30.07.22.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 07:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L5o1Woce; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-164105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BFC251C20E4F for ; Tue, 30 Apr 2024 14:22:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D2A91836EC; Tue, 30 Apr 2024 14:10:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="L5o1Woce" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F33E181BBC for ; Tue, 30 Apr 2024 14:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714486201; cv=none; b=pkplZkz5fSXXJsDW3bWktD6bGbx3S3XoQxWLrxBGQXUQ4ARGbia04JNZD2TNIGNFD+A5dTSDeRmBZNzN0ys4Jyt7VMhHn7WgxILoNH95K+xL7fVnF9TEbN1sARMZd//bQDlZ+uN3xOtGHWfubUNfkV10A2GnuX/UVDs8EovpTg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714486201; c=relaxed/simple; bh=NP40aYhBKcCbFWugAPRlpgWlc6py/IRGpooV4oIaReo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OdMR9J5/605h9YAAmMK9yrF/klI+O5CcuCbIlJLOmUBindYSCKwpwiPC0C45+84wnq1OzRXIQjrV8DQ/A7Vo1HF2qOdPQLcivt50Rpzy4oHj/Wuco7lURcOWs4ch3TPEOv4w2IDHt25za1wB4Z8Qglj9HLmbVTzj4by1AdpsXpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=L5o1Woce; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a519e1b0e2dso780222866b.2 for ; Tue, 30 Apr 2024 07:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714486198; x=1715090998; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CRndhXKIBc4clIT/57/JCzLDQofvnx8lXgRkee8Nqks=; b=L5o1WoceCSLv2nCc2AQhzTELB3DsUxc1SYVdXqifDcfLgQAq+ix8YD3Pvrrr4HGn+/ DPr4yA7iOL1LTou0D8+g1RA/+9eN6J5G70Q8JBCPKsxDl7qSLSlin5s7+8zbo0e0sT0o iAkdY+ifoDFvPiBe1n60zaFBHARVY4QYbhesl77MhdtukslHfhLb2G0rjDgzv+sZUoov Nw6O0vw1tpsrhJTctH6bt2oomY6/gkw/9yMPG44mtOs/hvKIoz1EPvOhfdeeR8YeKyPK 1XMzLkVBnV1GtmN1XyMMKejHt3oQZ+koKjwnXNikX1p2/WVIkm6Mg9sbGif5GM+K7eh7 /60Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714486198; x=1715090998; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CRndhXKIBc4clIT/57/JCzLDQofvnx8lXgRkee8Nqks=; b=Bjk1+ePTM50QLC4iIN5QkyYT3IsHI1CWojVd+sZUIunY+3o5NLDnvvL/uyKQp2h3bl 73f+0DDrtJy4rjHXrNraMo0CRaxsblMpbYgj7wbev8b12hwa6T4MdAmS/dRYwzjKv4h8 ksPOhPKfTd8Bq4O7X+aO6JQon9Sv5UCUEMDPbd+cYz/S8Yusq1OAoME8I0cHGJYz/QUU 0vGfwJGMk0aMM1Y3wfglEYb1rBHc9dsoq5cTEacsTu2o3EGKE5xacxgkKdcMRuRXtnhA EmR05yeL9ycYeKdeLz4TC2ewfURzE9780hoxyFlLeqhFrlygl8KbPG+hiNopDc8ksAJz galg== X-Forwarded-Encrypted: i=1; AJvYcCXgsC4NF4pWD7gMWe/FXo+Jnfv/LnNRvbRbSsliQ616spPfnzIdqcA8HPcSvEB0Mt0LhcwHcFni6ZcyOVHvGnLm2iHDX751GbsGH54R X-Gm-Message-State: AOJu0YxKofNX1NH/tyojTJU5Y7aNfPAhr21QfOFjLIGezfgBqd7x6FzW 1ApWAM6rg2Zoyz31iVssJ4OQAbm5ISgbj5kUF79yZ+vUms4oMXCCYBo9/Evxxno= X-Received: by 2002:a17:906:f18d:b0:a58:7298:fdfe with SMTP id gs13-20020a170906f18d00b00a587298fdfemr11362096ejb.53.1714486197628; Tue, 30 Apr 2024 07:09:57 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id r18-20020a17090638d200b00a589ce6803asm7260901ejd.110.2024.04.30.07.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 07:09:57 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] ASoC: qcom: q6apm-dai: drop unused 'q6apm_dai_rtd' fields Date: Tue, 30 Apr 2024 16:09:54 +0200 Message-ID: <20240430140954.328127-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove few unused fields from 'struct q6apm_dai_rtd'. Signed-off-by: Krzysztof Kozlowski --- sound/soc/qcom/qdsp6/q6apm-dai.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sound/soc/qcom/qdsp6/q6apm-dai.c b/sound/soc/qcom/qdsp6/q6apm-dai.c index 00bbd291be5c..cee23d4bda6f 100644 --- a/sound/soc/qcom/qdsp6/q6apm-dai.c +++ b/sound/soc/qcom/qdsp6/q6apm-dai.c @@ -70,14 +70,10 @@ struct q6apm_dai_rtd { unsigned int bytes_received; unsigned int copied_total; uint16_t bits_per_sample; - uint16_t source; /* Encoding source bit mask */ - uint16_t session_id; bool next_track; enum stream_state state; struct q6apm_graph *graph; spinlock_t lock; - uint32_t initial_samples_drop; - uint32_t trailing_samples_drop; bool notify_on_drain; }; @@ -720,14 +716,12 @@ static int q6apm_dai_compr_set_metadata(struct snd_soc_component *component, switch (metadata->key) { case SNDRV_COMPRESS_ENCODER_PADDING: - prtd->trailing_samples_drop = metadata->value[0]; q6apm_remove_trailing_silence(component->dev, prtd->graph, - prtd->trailing_samples_drop); + metadata->value[0]); break; case SNDRV_COMPRESS_ENCODER_DELAY: - prtd->initial_samples_drop = metadata->value[0]; q6apm_remove_initial_silence(component->dev, prtd->graph, - prtd->initial_samples_drop); + metadata->value[0]); break; default: ret = -EINVAL; -- 2.43.0