From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 537E719644C for ; Thu, 27 Jun 2024 14:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719498900; cv=none; b=MQu5Liy48UgUpeuIoyHhL23R+c1E09GzqQAPTU8bldLMLH9yDo35zFAc5LTLmh6fUcVNGm3LIH7ztASGY8YZclemOw+Or2H+bFTzSsNH9SZMNkYmv1ynQTHQh2UrFsEcAcpvLYHOfadwos61e/CLbhAj6+KKvioY4ORmq/sOaAo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719498900; c=relaxed/simple; bh=zguDLaxzEP5ll5x1PQ8QZ4iJg4eLozqPD1M8fbq03jI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BHIZVx3P/DWltkiSotrmOJdaQYYF9gR5namiBUke9dmK8W10QKY68N+Y5PEfRI31rhFsFB3Z6n1nKl2EgQ8lpAbxRdgsDzshd8apS3uxYpMqjxHNJUHfGA58nx8nL/OGLUrCM7J62/gEUHLQz/ZlMP6SwePbdcwJpQ4freIN5Do= 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=rp+DlHSg; arc=none smtp.client-ip=209.85.208.175 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="rp+DlHSg" Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ec1620a956so95193111fa.1 for ; Thu, 27 Jun 2024 07:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719498896; x=1720103696; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Jz1cCr8L4wELlDLV7TgHeFnSV7RSZaDycktjZG7y30g=; b=rp+DlHSg/SQW56Nx+dcc1GBJuObNp5wiIgIFznrqeIw/ugSYS+fScZeeIjDEHx2HG1 f/gY97W0+uII4s+j0ikL0oCyxd+fMB6lUNY4Sej0xJ4qQsJxEsHd+h/1lABXO/FIoaZh dUxJbiBBtWEH4m+nOcDrPH8A9wFo0T1P1RJgvAn4dnLUpEevpetuZ5f4Nnpys2jJvqxw d4RbpFLzyYY5AbPfyycWY+ZA+sybs/t5j+FJUVxnkMnMj8k5e032G7QhhgnTefoR+2UL VJslsR3WxmDDdtQPdJZj168hlOdN/bvZ3CvxUBqTgqrdkOgpphifsgM309TffokhLBrd 74Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719498896; x=1720103696; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Jz1cCr8L4wELlDLV7TgHeFnSV7RSZaDycktjZG7y30g=; b=sa8YSk3WeLBKB/8R64QAaz69quHZICqkOIaen37tmM6Xvs9Gdo07oRUEMxNjtBEz4n TJZKECVqEf/bDMrDMzXVmzHXaRRQ5P8w9sY8sTfNKqfLaL41l4YCotXzk5kdtXfcGnzO 6cR4E3eE8LO3y+0NB2ZTmP6GY0Ca+9M42q5SRa375taI9nMxqt/MQMJlQXQfN+9cBQSs QlULraiPX1OvV0zvbEJefP8LvUI6/rTpD9gAb5/6DB6+f3Y4sbLLzZ6f3frjh6lTNTdj vfbT6S+4BWDqBo6tiB2re2wkm3vzyraC13NCjhQLgIH+eO4xcSJvYWJECiLt90pIpAoC lBew== X-Forwarded-Encrypted: i=1; AJvYcCVr0B1EuLe1Cb86sLYNvUT445aL1Uoqe0T4ZQ11zZibkQ9/2awtnMlkXIwUgChczD9Io/PaMQCUS96hHbyfZm4yVdr0AQ9YjoKe2ds= X-Gm-Message-State: AOJu0YwXE9ErUnAmD0tKmT89dR59I9pYN4gw+erC7GKLxqro2YhEsezH 0VuZUSlKCiGcZZDbMxoSWRK/bXMA37auDL6XuunQs06pblkAnYPUaPQiBsMAIRI= X-Google-Smtp-Source: AGHT+IHgZ1tGepEs1cMlh/0EwKv7vLqC2jcAsTAPu51Jor47f+778HanIWr3gvAKeMkBNwQX0VdDSw== X-Received: by 2002:ac2:528c:0:b0:52c:df51:20bc with SMTP id 2adb3069b0e04-52ce18350e0mr7717882e87.16.1719498894488; Thu, 27 Jun 2024 07:34:54 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4249b132fd1sm81927285e9.0.2024.06.27.07.34.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jun 2024 07:34:53 -0700 (PDT) Message-ID: <8bfa46a4-b18e-4d6f-856a-acbeca9398bf@linaro.org> Date: Thu, 27 Jun 2024 15:34:53 +0100 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/6] ASoC: codecs: wsa883x: parse port-mapping information To: Dmitry Baryshkov Cc: Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, Neil Armstrong , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski References: <20240626-port-map-v1-0-bd8987d2b332@linaro.org> <20240626-port-map-v1-2-bd8987d2b332@linaro.org> Content-Language: en-US From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 27/06/2024 14:36, Dmitry Baryshkov wrote: > On Thu, Jun 27, 2024 at 12:55:18PM GMT, Srinivas Kandagatla wrote: >> Add support to parse static master port map information from device tree. >> >> Signed-off-by: Srinivas Kandagatla >> --- >> sound/soc/codecs/wsa883x.c | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c >> index a2e86ef7d18f..43156d39480f 100644 >> --- a/sound/soc/codecs/wsa883x.c >> +++ b/sound/soc/codecs/wsa883x.c >> @@ -1399,6 +1399,14 @@ static int wsa883x_probe(struct sdw_slave *pdev, >> wsa883x->sconfig.direction = SDW_DATA_DIR_RX; >> wsa883x->sconfig.type = SDW_STREAM_PDM; >> >> + /** >> + * Port map index starts with 0, however the data port for this codec >> + * are from index 1 >> + */ >> + if (of_property_read_u32_array(dev->of_node, "qcom,port-mapping", &pdev->m_port_map[1], >> + WSA883X_MAX_SWR_PORTS)) >> + dev_info(dev, "Static Port mapping not specified\n"); > > dev_info looks strange. It should be either dev_warn or dev_dbg. dev_dbg should be good in this case! --srini > >> + >> pdev->prop.sink_ports = GENMASK(WSA883X_MAX_SWR_PORTS, 0); >> pdev->prop.simple_clk_stop_capable = true; >> pdev->prop.sink_dpn_prop = wsa_sink_dpn_prop; >> >> -- >> 2.25.1 >> >