From patchwork Tue Oct 22 03:31:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 13845046 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 B6B15256D for ; Tue, 22 Oct 2024 03:31:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729567898; cv=none; b=N1xCvRjtlfDBx4M26HUqtw7cTrC4eeQmY08nQZ7mx6+/vsB2MLVUuzUijzYl6My+dy85SaooYk0fuvLJ+FCfIlMbri9oOirgyYChy9l66znU4HkNA9jv+o0el4gYSg9cnEZQfjEyMRROOJL6DwmjS0zyT9QZWFXU0WjyTV07VJw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729567898; c=relaxed/simple; bh=E2iRMBn4vXGC8g6J44VssBZfpzZe5kCM2ZEzAfoRWN0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tr7DQlgRzq+RgufJL+34g+8Z1ZcqRDWIw1SM67Wt8XqBAVpEulBcZkSM8htkh++qwB/j5nubFb5ygdFnkb08yCScAjwR/+gSl3xNrUIBrdy3/J/2L4gIzIOuYgyBSGZf5JLAAEeOewWbKAhr0lrnq93NO1rdPtR/3bPmQFKhY0Y= 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=PJtI1/JE; arc=none smtp.client-ip=209.85.128.45 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="PJtI1/JE" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4314c4cb752so54536545e9.2 for ; Mon, 21 Oct 2024 20:31:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729567895; x=1730172695; 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=PRNDAKtg23JE6+vxzUvroP0LZ1F0yJev4yH7XRh0MOs=; b=PJtI1/JEUj6PvPhJj1gISZqfWN02CfPaxQ0XyeAQElCM+rKsLhPrQxMOpSOYgFaFpQ vgOJezeiQGvBp/DJJfa4DnVxRkCQyE+OmVVay7IWjI7mRyVznvYgP3SGA1BMY2ObrMEq 5QLEUZzbKXFOH9fS4ilVpPOV+hq9Y8TBUIALgwv8CgU97F+x1MW5zGwDoPezybMkCCsG Dw90FV4uaGi7WrlcM2jk55DVoX8+vKcX6F7m0GpfmM29S8yfPB3tDG3zD2WorZgfwAbY Eg9HTDH/yGAGsi8VQ0/3e2S54GaDxft2Uk0Y4F1coUQZzZUWHDRyObVUxgbWDGl9tXsf sfVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729567895; x=1730172695; 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=PRNDAKtg23JE6+vxzUvroP0LZ1F0yJev4yH7XRh0MOs=; b=RlzzzH1Stgdj0FPQKzpiVOqldJN7HFDB6AbgL6hnvwszjPEQOdsnr599v8FZJTVcjV 8XOE88rpGElldle4FjXG1bgLxWeXLj4HiSpY8v3ikSghGDHZoR+KKpBdk7BHRI6orLi6 +yKY41jnXef3L2weZ75J4ghNiyXmI2GZIouNISlpMpSDHo/LnG4sDJ4rrvB+aY0dWpM7 bTHwrMzd9dtIbERXFECmMzt4mKjJaRrMbuRf8nCC6df6+LNb1KrYUtQvmWVpKXoaVur4 exCmLyM/+tEOjx+bBBYhzdhUm5FJDWRcMB3KX4PXxgP54QDFe6PQSn1u0TP7ms4bDeVd CBqg== X-Gm-Message-State: AOJu0YxJxs+pbDutqetoqCg08/UL/lkffWiKHrvujNOGnKQWJrVKuPx+ YBKHiZx2L6t09bmULCUc7+1FclnlR3RUXqbD/mXTWWWA4i740o50INiJ8XAD2Ps= X-Google-Smtp-Source: AGHT+IEu/69XGSwovBSRpqpBZi4M2aUiW0DQlzn+G8a5nHeh1xypd9CnrLif8WoStF8WP36gEFBhCg== X-Received: by 2002:a05:600c:1907:b0:431:1512:743b with SMTP id 5b1f17b1804b1-4317cac091bmr8472035e9.21.1729567894959; Mon, 21 Oct 2024 20:31:34 -0700 (PDT) Received: from localhost.localdomain ([2.125.184.148]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4317d03ea4asm4768455e9.0.2024.10.21.20.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 20:31:33 -0700 (PDT) From: Alexey Klimov To: srinivas.kandagatla@linaro.org, quic_pkumpatl@quicinc.com, a39.skl@gmail.com, quic_mohs@quicinc.com Cc: linux-sound@vger.kernel.org, krzysztof.kozlowski@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, dmitry.baryshkov@linaro.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/2] wcd937x codec fixes Date: Tue, 22 Oct 2024 04:31:29 +0100 Message-ID: <20241022033132.787416-1-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-State: RFC This sent as RFC because of the following: - regarding the LO switch patch. I've got info about that from two persons independently hence not sure what tags to put there and who should be the author. Please let me know if that needs to be corrected. - the wcd937x pdm watchdog is a problem for audio playback and needs to be fixed. The minimal fix would be to at least increase timeout value but it will still trigger in case of plenty of dbg messages or other delay-generating things. Unfortunately, I can't test HPHL/R outputs hence the patch is only for AUX. The other options would be introducing module parameter for debugging and using HOLD_OFF bit for that or adding Kconfig option. Alexey Klimov (2): ASoC: codecs: wcd937x: add missing LO Switch control ASoC: codecs: wcd937x: relax the AUX PDM watchdog sound/soc/codecs/wcd937x.c | 12 ++++++++++-- sound/soc/codecs/wcd937x.h | 4 ++++ 2 files changed, 14 insertions(+), 2 deletions(-)