From nobody Tue Dec 23 10:27:44 2025 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.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 AA6091FCCF7 for ; Tue, 4 Mar 2025 10:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741085879; cv=none; b=XtQA3G0qJ0Lhy2lGNcHnUMQ7mDAMgISPA3/5yx7h1gvndFjtSWuhxMVHk11Ry8IrTul38IumJ3FGEIgiMrcN/xph1P7dV05xSHAaJngnLz9MJS2fv/12spQOVuDogew2j0Wgsxg8cG7hOey5g/J1WDXmtfIL79UUCmOj0eMTbkM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741085879; c=relaxed/simple; bh=T8BvseEhQtgXi/c6dzXEReCkqVf8+ZZBBGjoAN7DYSQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AJg3q2EhAwomAwVX9j+JIvr6ywemG2joBLcgL6u14uKdHkTFuyA/pkUaAXaarjWuqpT+eqbKlU6Mn27cm7ty9fOOOa0i8BTPRE2QbLP7IthTnpSKpi2Ec/7KS919yBM+hVDaDcVpnjwr5HZ+o+uw68EVMlRKPbZBduJviohQTBU= 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=Of1OOs14; arc=none smtp.client-ip=209.85.208.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Of1OOs14" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5e04064af07so10231335a12.0 for ; Tue, 04 Mar 2025 02:57:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741085876; x=1741690676; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H8qpY34vr6GYk8mljhQq04C1Vg9LVV3uW0bLLDq/qwY=; b=Of1OOs14magff5WkzoscXE1E6o2u8goWZqXah/vmbZb+BR1l+k1+SuRISQGRT7+JWa KhN6itYTjZgtFdj+Kbi2oxRs6fmcwposhX36z+B62mwvR/2jgtNI16u4d6vuYOqMMVsQ wcqVyrGThcO1joVXOS22jz3tfJXhSgagdO5qF7+c0a5CNh3RZB/SNx0bZVdNz2YNfQa7 dg+lpDQVaCKcD26ZpUOjhAdoYww0pwPxBBskhK58I+srXbx/1G0Ll0+QZt50IrJ+DHww hOnAW5IfN5CEFXW/zoQhwOHVyQnqyTXXVcSu9b3C0+tpmE5YsrxV3BOQReNVuYEHHwlD mFXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741085876; x=1741690676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H8qpY34vr6GYk8mljhQq04C1Vg9LVV3uW0bLLDq/qwY=; b=vyl7plF6TBuGiouo39oy/xuDkpH8N6FIGfQlS2QdoZSNlPVW82EK8Y6+RKayfrqjmK pIjAQ1Qgutu5IxlN6cROrgrArDntd7H6GEAXozkLLYhEQl7JF3QiPej5DSGqNp4cU8U2 W0Df11gKI8fXgaJNiiq4s6KYKIDBRFywEVvFzajS2BhvCsdDou6rY55XbRAU7yHp3ehz k4m+K6nlgYkBlB21H8P2RVSzSggi3V9jgyFiDWKL6v8axkk1tWaPCWFTGi+sui+OYDAi 9VZex3h7DlTeRe8KPp7dAy0tzZW38W3ZOiQK1bI69kWczlnDl2UR08fL0p+RroDpeNZs ahxg== X-Forwarded-Encrypted: i=1; AJvYcCVsa82Jck7utquuntk/dGTCb6qk5EHpaU2FKnjLzVEpGktSXDFt+pguc5UIKBjf9cxe+Thoh1jh07AZkm8=@vger.kernel.org X-Gm-Message-State: AOJu0YyYAz3BgnyP93Ec7tD0yjQQGQpGR7zw5ukfN4nmJZh8O+nxSf2a o8w7RAAhTLQLM16l6PcqnxcqgDbsMG4YI6M85jO+gZneG7oVt0hKqebiyHcp9hs= X-Gm-Gg: ASbGnctl/U8I8S8qM2eBWGbg7lvstSWOdjFTXyt3cUa3Mj1fn7LP1G71VHGK3TESKWg MCybPPFhUp5J3xFkPUiRPopBu6OJQZIGvY1otIvRjAt9HN6ZjunM40AhU4wdFb5zMgajTvXH0Gm 7f6fJ86wK0J+irJ/WBDr3LLquX35CcC5ENpRKAvIzYufC23b06JDCKWuO+18BfDl2RXR/BdmI+G WM4Qj3NjlRxuqZ+mcLphn4+AA9Ur/jSKF2SlkJRKlzEU9HD4oKqR51R9nQ8J/zNw+uCdi2ZKtKj xvrLtioqMSPp4fOIHGvaHtGcQf+OcBYP8Mgi62k42bY52Wvyv2zMe5m0m9DL9ipVRvZejA== X-Google-Smtp-Source: AGHT+IEMtAPD+3mslBPe9dpUnwDfjI6yIrS86aj52AjEbtCekD+P8Nt1T5PEVviZq9Ti8UN7hLn8MA== X-Received: by 2002:a05:6402:1d54:b0:5e5:3643:c8b5 with SMTP id 4fb4d7f45d1cf-5e53643cd09mr11556338a12.30.1741085875856; Tue, 04 Mar 2025 02:57:55 -0800 (PST) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5e4c43a5acdsm8002966a12.77.2025.03.04.02.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 02:57:55 -0800 (PST) From: srinivas.kandagatla@linaro.org To: broonie@kernel.org Cc: perex@perex.cz, tiwai@suse.com, krzysztof.kozlowski@linaro.org, linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, johan+linaro@kernel.org, Srinivas Kandagatla Subject: [PATCH v3 4/6] ASoC: qdsp6: q6apm-dai: set correct period and buffer alignment. Date: Tue, 4 Mar 2025 10:57:21 +0000 Message-Id: <20250304105723.10579-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250304105723.10579-1-srinivas.kandagatla@linaro.org> References: <20250304105723.10579-1-srinivas.kandagatla@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Srinivas Kandagatla DSP expects the buffers to be aligned to 64 bytes. Having a 32 byte alignment can result in fast playback or capture in some configurations. Fixes: 9b4fe0f1cd79 ("ASoC: qdsp6: audioreach: add q6apm-dai support") Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6apm-dai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/qcom/qdsp6/q6apm-dai.c b/sound/soc/qcom/qdsp6/q6apm-= dai.c index 90cb24947f31..bb761ee0164b 100644 --- a/sound/soc/qcom/qdsp6/q6apm-dai.c +++ b/sound/soc/qcom/qdsp6/q6apm-dai.c @@ -385,13 +385,13 @@ static int q6apm_dai_open(struct snd_soc_component *c= omponent, } } =20 - ret =3D snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_= BYTES, 32); + ret =3D snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_= BYTES, 64); if (ret < 0) { dev_err(dev, "constraint for period bytes step ret =3D %d\n", ret); goto err; } =20 - ret =3D snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_= BYTES, 32); + ret =3D snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_= BYTES, 64); if (ret < 0) { dev_err(dev, "constraint for buffer bytes step ret =3D %d\n", ret); goto err; --=20 2.39.5