From patchwork Fri Feb 28 16:14:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 869324 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 4FAC026B2C8 for ; Fri, 28 Feb 2025 16:14:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740759276; cv=none; b=Fx+3DsFN7eqM+UP8cvNJcY1ylc3QtnpJ1kNwuJIigHc3QKXvkAHiqUqpO70hgd9ks2TzdJis3/mbUptCD3Gw/zeuxrFh7zEDr2jB8lPjEPBSJVp5pNipJYM44GCwfMFzDHFNcqXR89BajVKnJDGmdwBs1U9mjFCWspidc8qXb2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740759276; c=relaxed/simple; bh=TsOMlzyWGhLPB8XA0OFllVNotLhXSAWLfRCutrm2gDA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jm6Wnmgbxe7XGYszsaQQU+j4NL3MsmwueecBHYEYvEP6sSALudAxzhhQ2HVAz+eemdV/aVtxxFWdpqCuBM1LKqbjtSLrjevA/kFELxdy6ErsAieMA8evwuPcthmzFxUrf+djX86QQUsR14nhvww6vUGZV+Xn1sixdYXHr0dGWWc= 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=fSR635T8; arc=none smtp.client-ip=209.85.128.42 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="fSR635T8" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-439a1e8ba83so22371785e9.3 for ; Fri, 28 Feb 2025 08:14:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740759272; x=1741364072; 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=mA0q1eDANk1VuTwQiJxyjICzoV7Kt4ns/vCaHe1Vf1s=; b=fSR635T8Kz+puUHI2t35h/u3ZBDd6ZToYjmF4jyGBsk3OKDYMqAgFhAv+gUqZDA9++ KfhHtcev2KBB5BYVM3nG3ro0OiieDOIy2nMFmu1v3igUG+q9NeyYQN5v2lXa0IREIxwO R19pNE63UIe7PDs3uyoyhcfHP+lX6xg9iAvjVaJ9C/B+P6ik0sXOUDkdhAvGpZN1cd4E DCmebjW+CzpC9kxT28P0iiF7nUA19l0B3YLtD5CzFe0OT30AFvsdN1+62A4g8SppxAIV vnttJU7LYREJQIzbrOy4jL8QVw6o+M+GoQgGkLrJxjCJmFCnj+Nw8Uz00jw0EEJ+rs8O qfPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740759272; x=1741364072; 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=mA0q1eDANk1VuTwQiJxyjICzoV7Kt4ns/vCaHe1Vf1s=; b=q85NIgb73xfWUr+kismEqj4ytPjTYDP2yghEfvMEJBlah/QvMcDwxHDS5bHIRcPShJ cEnobe8SsgwDgpjurhR82rjOHt3/XK0hfyEpAxUb0ONBcIG0eeAORyUCh5fAj6hB2rC4 qqwTwGmCeoT6QDa3mlZaFAzq3esUqCyuRrIALyGDOctv56AV/I07ult/V5FsbUMww5cC qbpZCztOHS5SzWvxb9YpfO/8gD0nCMBtE47VY3dTp/vR/lZoe6SFEXeyIRn8t6WYNz0l D1Jus7huWU/56fGBsctXhR/0CcsCUivEpjXCVB45u+xrQhpvegjF1oGcnETAFjk1Rxqu uE3A== X-Forwarded-Encrypted: i=1; AJvYcCXFab6ykR7235xyFWi1tZygJikeWf3HGRIV/LZtBji3rhii3c/ZDAW+N8GTnDjfk2I/y62ViVbs1ZV/CrBL@vger.kernel.org X-Gm-Message-State: AOJu0YzPDiq7bHkHNETS7Rc18eucuIvqPt6Vk74uK3j3esRlkyksAkRY 78PC+s2OsbOrRclqYBi87gQJ/cE7j2gbYX/4qyjgYdcCTb+8L4BzwukveUgK5Lg= X-Gm-Gg: ASbGncv96L8rZ9U2orTp0XOHdVdU9MKULC1uWhMcP4ErOiqyxrAQCSwslan+2jSNWqF GFG4MPgDN1r6wqQAxa+adbPMFT5P9uRFJ1Wa/+GXDUf5X06nMSThbh8AFOEAwLJGdZPUPYLf9Ed Z8MSx9BQx9zcDkPRiwaeOMiFYZaJZgx54Vk4hIvFDzbtVHOxHHUcqbUOG+nAw3HCPVvlBEtlMAz bpH8hBYG0bSBvS5a4sdqVb0SuNL/Ik4GVllqH3nurruvSpyLHyEkyzPhf7C+YASqGBZfWD5oSEj u6Z8D9bBqwz5LKZL/oMgHVtlcwxI7LzWoi3VK6XlspJR5+66 X-Google-Smtp-Source: AGHT+IEorpcQWBNQMknvoMwXDyrUVNGuGeLWwhyPQjwWgrfHo9N4oJU2oROHaGMiKCwUM7rlOaPVbg== X-Received: by 2002:a5d:5c84:0:b0:390:e62e:f31f with SMTP id ffacd0b85a97d-390ec7c67damr3299605f8f.3.1740759272554; Fri, 28 Feb 2025 08:14:32 -0800 (PST) Received: from localhost.localdomain ([2a02:c7c:7213:c700:e992:6869:474c:a63f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e4795d30sm5690232f8f.10.2025.02.28.08.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2025 08:14:31 -0800 (PST) From: Alexey Klimov To: srinivas.kandagatla@linaro.org, broonie@kernel.org, lgirdwood@gmail.com Cc: perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: qcom: sm8250: explicitly set format in sm8250_be_hw_params_fixup() Date: Fri, 28 Feb 2025 16:14:30 +0000 Message-ID: <20250228161430.373961-1-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.47.2 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Setting format to s16le is required for compressed playback on compatible soundcards. Cc: Srinivas Kandagatla Signed-off-by: Alexey Klimov --- sound/soc/qcom/sm8250.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/qcom/sm8250.c b/sound/soc/qcom/sm8250.c index 45e0c33fc3f3..9039107972e2 100644 --- a/sound/soc/qcom/sm8250.c +++ b/sound/soc/qcom/sm8250.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -39,9 +40,11 @@ static int sm8250_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd, SNDRV_PCM_HW_PARAM_RATE); struct snd_interval *channels = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS); + struct snd_mask *fmt = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); rate->min = rate->max = 48000; channels->min = channels->max = 2; + snd_mask_set_format(fmt, SNDRV_PCM_FORMAT_S16_LE); return 0; }