Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp14098lqb; Tue, 28 May 2024 07:40:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9Khq3kWq91ty8LxR/DJCPdV38/QAwKVsX8gIBU/i0gTQwpJbdSpVKxRAu6ZPbl2ry8EI2eG5ZXRaRVqBgVSNzot/8N9W7lVqjDJPG0g== X-Google-Smtp-Source: AGHT+IHuvHCZ54w5POC1lCSUPMXjSm73CxOkFgHPhQCJPblEtMVPTo530iyX4KD3kacxBWOBfDrk X-Received: by 2002:a05:6122:46a7:b0:4e4:e98a:7b02 with SMTP id 71dfb90a1353d-4e4f023305dmr10047482e0c.4.1716907248534; Tue, 28 May 2024 07:40:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716907248; cv=pass; d=google.com; s=arc-20160816; b=Mk8EnWLBLUwlcNhSWAN0XCkwm/q0/ys3w3MlJHMgKwmAnUv+/bSzZ16leAib+DhzjY uH/K0OQosp0x7/S0jHMp1fr8/FqpVZDxeOA2LLe5Fiw5OdW3Ek6H7ourSqByiciia+tw V34SRisgWoaNpJaywZLzx09GFd4SM5kPtzDlIFEd6Gj/pXbORCtPxpj2zin3HqSARl4y gGgI8FjOWrrl9HbhghIwnPtkXtcsu9kvWtb0MchN4GDw7xtgOvrQ5uRZSI4caDAJ1vAR czWnqLfk0nwn7cJyfIeEengzeLrz/HXeaLg7+ZFW+LT2OMVoAMHUeN3sN+rCyAb5YNxG AZyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8gGbq2+G0YRbMbOdBIQss5wZtbiI49aMbKPIubZFnKg=; fh=FDGJe/OLHE6gwVvRCWKF/gjNoIdBFG7JWiJuL1PRPCA=; b=TZoRhLPONpUunBzjrooCf5Kgd0OESVkdNwL9FNAHLjFCC2QUgD5AIXJY32e2k8EqTc bo9N1gXfU6gGp6/7SRMjnIIa+Dny+Qx2leBMG/c+iLoCfHmFj4GulF9sHtLFmPsxgEAS e3vKV3TuaeBqv5OsyfYTNUHpPWFj/zRcNMOaua9VFGEyx68zDLmiEIN1dAsiKsWQfEhq Kuv/j0octbwR2tzi2y/huV2wwS8sUNTyVNeCIyV7b8TJQSr4SsMgPT3oRrq1KaWB5TrT Wv2w3Ytj60zUybodQt5m3nCOuPvhxTw5AIhtL2Cyj22Yil9hijQ2qoX8UhOrbC/x9xkQ kB0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q+z3D6v5; 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-192551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192551-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 af79cd13be357-794abd614aesi1119678685a.771.2024.05.28.07.40.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 07:40:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192551-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=Q+z3D6v5; 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-192551-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192551-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 2C9361C2267A for ; Tue, 28 May 2024 14:40:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDCE316FF5E; Tue, 28 May 2024 14:40:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Q+z3D6v5" Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 498E316FF27 for ; Tue, 28 May 2024 14:40:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716907238; cv=none; b=GD6XauCWMoyCHpSj5WUUjT8wl0huEGvhYiF7lUc9hFUPvB7XtGjBkxE6r/+z+chS+bvGYkL8Bg0YpG/oeQFjP8+Wx8tbKR/k24tWDapQev+8S9qsgVAMkpKOpPl6ya6pm8DZp3u2N8GuCSyRz5NbUkJHMZtnNVT0HJ0ElSk44eE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716907238; c=relaxed/simple; bh=G/sEAwtqVDZaq/JZ6QDvKHohGloo0nUCVaVRBW7SJR8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eLzBQj30RQbVC4u31YsrAt++4//ok7LlW3tY+H0udSeeKnNrNQYQ9jV09qbMWGB63g4eDmO9VqPxgnXWzeEh12lplM4Q2YqXHM9ypGPqwfdsl5genqK6wRT79zOdAXHaQIvQtBpDnZ24c40pmd36sDwj5ERdsrXPVwry0YxSAc8= 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=Q+z3D6v5; arc=none smtp.client-ip=209.85.208.180 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-lj1-f180.google.com with SMTP id 38308e7fff4ca-2e95a883101so11001531fa.3 for ; Tue, 28 May 2024 07:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716907234; x=1717512034; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8gGbq2+G0YRbMbOdBIQss5wZtbiI49aMbKPIubZFnKg=; b=Q+z3D6v50qLDx6wTy7qCEUwbqHp0FlKnVchfWEzrA54yLSHKyzu+ynZkh51WpaQT/k xkTpEo7psPn9t6wJZ0Uvb+s8+2eM5J224/T4KtWW6+6FpQcS10o4Xlbap4aNS/DyJBtw t9yixFRFdT9SE0NFnft1dkLiDLUecxElOqE75GiaY7vEaXdxxPGfX5aFbd8SsDhYPLb4 PsIm55kLcNidN7koJas0iRvlU9ATExycJAUnTLIAiG7+gn+T7ovcS3QRbVJkxO/2SyOg 0eIsFLA4l1eEOve0PXTJI5nIQ39B9qBQiq2bsMoXHqDtXzGb69x/x1yv/3/Dxyt6PSXh DEoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716907234; x=1717512034; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8gGbq2+G0YRbMbOdBIQss5wZtbiI49aMbKPIubZFnKg=; b=im6qPk2Bk9VA+Sb/scaYK+qNdDfQRsPX8S8ZuGYzw5ZlZH+RWo7CruNG3ybcTa5oqp i47nvuhGS1xWSTIQSLyzyfNvrJb3HUwaludTVCpM8Fj/jYAwVMvbIB8JATYb1uVBL7t2 +M3QRQ499OQzzbXk4Q94M4cn+pvq5xwYpAkMWsVjCXQr5fj1G1/VHxyghntcJy+1hGmx zCF5axknIPdbgQJoH6NnhVBuGC3E7qRUj2OTXipK8S6ZRColNKU4Kfovms9PQmpB7oBo hHeQRlcfKIy+lRnizNh2P7cSi6BRzFjVBDw3+1Q731c7pW7bdNk2g8SJmQZkaCUthw9H Uo1A== X-Forwarded-Encrypted: i=1; AJvYcCVvJmYTgAl/4pybyTT/o5QrUli+kgXTbOP8tKvgOXb+Pp8c/5MEG4WoX8JFEUruUseLgpzi1Ig5XBQIZ6GKNir3BEmhhA1v0uA1P8eI X-Gm-Message-State: AOJu0YwHyom3JuZPpQK3tf+LrivhkNKoW2cat8d/pn91EpxNK3g2w4GM R81DLSGeNaNaCtroMj4naRwRFALK6tjEnFvVhSPT/YC+jImwoI1QYWvvhD+vrQY= X-Received: by 2002:a05:651c:a09:b0:2e9:841d:dacb with SMTP id 38308e7fff4ca-2e9841dddeamr31411951fa.40.1716907234225; Tue, 28 May 2024 07:40:34 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2e95bcd7c20sm22927471fa.33.2024.05.28.07.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 07:40:33 -0700 (PDT) Date: Tue, 28 May 2024 17:40:32 +0300 From: Dmitry Baryshkov To: Ricard Wanderlof Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH] drm: bridge: adv7511: Accept audio sample widths of 32 bits via I2S Message-ID: References: <91472c14-3aeb-766a-1716-8219af6e8782@axis.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91472c14-3aeb-766a-1716-8219af6e8782@axis.com> On Tue, May 28, 2024 at 12:04:49PM +0200, Ricard Wanderlof wrote: > > Even though data is truncated to 24 bits, the I2S interface does > accept 32 bit data (the slot widths according to the data sheet > can be 16 or 32 bits) so let the hw_params callback reflect this, > even if the lowest 8 bits are not used when 32 bits are specified. > > This is normally how 24 bit audio data is handled (i.e. as 32 bit > data, with the LSB:s unused) and this is also reflected in other > bridge drivers which handle audio, for instance sii902x.c and > synopsis/dw-hdmi-i2s-audio.c . > > Signed-off-by: Ricard Wanderlof > --- > drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > Reviewed-by: Dmitry Baryshkov What about: Fixes: ae053fa234f4 ("drm: bridge: adv7511: Support I2S IEC958 encoded PCM format") ? -- With best wishes Dmitry