Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp39907lqo; Wed, 27 Mar 2024 06:30:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUptI+2EH9HD+ITngFtWh7C963NBe2PqxD/jwt4HyM3wKPaQo08+PN/TfW3hYfyZgUPVbRxMnhnoC6SI5F453/IuVFwE8Eutkz7B6qDbg== X-Google-Smtp-Source: AGHT+IGmPtt36gAKyTl4zz+V1aa8hW+9khK9DYkDAeTN0FTahyoDlaXimylDYzmtw5Pbq/9GQt2n X-Received: by 2002:a50:c051:0:b0:567:824:e36c with SMTP id u17-20020a50c051000000b005670824e36cmr1095167edd.14.1711546251104; Wed, 27 Mar 2024 06:30:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711546251; cv=pass; d=google.com; s=arc-20160816; b=yLmslScOCJ4X5QHs9YvIR4vQAFmfzbm4HYbIeH6xGJV+B0p+JXgxwsbmTN3knGKPJG LcM2Z7JODad0reCeDbNlu6n+VFhv3MTO3kh6k9P57boUn6y7o0KiHfSivkaP5gcIQRw4 qYE6JQCQUVBSxnyWGKkGu2z9eZxneGFN3DXiaNtur09gSySShLXaZVtcpn6lzZMxH4Dh 9dGJa3KqSyb5sDfU+tuOEQ8QV/VVvbSEvm5d/lqgfuAxkMj1gnL7YLTT2NR32+gTizTv /bKR62gckPmdE+DsVnSOVX5Q45WIg5qvhdWsLG8C+dSdUouZKuCbVMh0V4uVvkauqydv C1VQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=OmcRGS5TlQaotd06qJrgXX+1RvodsZtckupwlgr6QW8=; fh=Ceump3V6+/NsNFHwRnGP/Xsyw0LMyv/i3rveAXD0W3g=; b=E6NEhT+g8hhkl8s2A+dxKSSnd+QjAn9UqYv9hmld5ov1GdB4Y/4z7qY8Amb1NPjb08 MJmEl9db9qEcaerpD5oy6cNc2681xCfdoA2HGSn18wTB/G9K7TM/egKFU6dpXSseJzg0 EDQnjcXrIaf39Ulf3e/zpl2FD41jNDDFJC49SUhrdfkY5xDVa5k+rD5HHfjJCBzLWeuw J2oZ/1+n4xvsfDUfnVwWt7KRz3rjblhABw8PDnRVNANQFwsItBDM39n3zMnCUPLxtxZt QUEU2c/Uuhr+Zx1OWX+P3GPFY6wq2U7SJgNu8iU5LUMG1GlL7QgSjeXbQteQnA50PJAi LCxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GdR1d+DB; 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-121126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a61-20020a509ec3000000b0056bcd7a0097si4565848edf.622.2024.03.27.06.30.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 06:30:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GdR1d+DB; 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-121126-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121126-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D2C801F2B5E3 for ; Wed, 27 Mar 2024 13:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E6771741F2; Wed, 27 Mar 2024 12:22:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GdR1d+DB" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 96CE31741DB for ; Wed, 27 Mar 2024 12:22:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711542145; cv=none; b=Sr2Ql0kHTA0gCSScqqoQywn/JIk5CVgwe9U3EJei31u+69ZVetQvmnAD/Xi8Eu+NGsteeZ5865Kv44dGfjFRXcU+2pkLHACwFeVoEgVzXwqnAbo+yVS1lRwDVmdNHd5zQXaAtUFWuKo2HCkGEF7eC8dJgygkOslRbDnx+voGSgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711542145; c=relaxed/simple; bh=mgHimy+byUwgB5+ODcBJAyj/keJcA2B3A9AbHPUV5vA=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=EiKTaifdNT18uHJ7iqdzhydtDa6d/Qgq3/zRRnPihD9oWcWB4Mcgz1tbYRzPrQRF0xskmV1bpGZV0778zRz45XpYQUa8iUsxlw41K0tC8LVLPf92Ju+KoduZmSTQBDUuSNMezfGarjo3gdW0oG8s2LCFu06ogROJDtwNcBlJblI= 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=GdR1d+DB; arc=none smtp.client-ip=209.85.167.44 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-lf1-f44.google.com with SMTP id 2adb3069b0e04-513d599dbabso8580429e87.1 for ; Wed, 27 Mar 2024 05:22:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711542142; x=1712146942; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=OmcRGS5TlQaotd06qJrgXX+1RvodsZtckupwlgr6QW8=; b=GdR1d+DBMMLPY1iV0mVibGjQjF6n5G21mB/igxMSrqqz36aHFPZM0n3iq0iaG+V7BZ c7VTis/wMhN5CBTfqzkkhkZ+KY+CLYjdv8K7nvWXrwRhi7f2qxh9/uGq54v7udqzp9cl bWycb92dOXu15OaCTrF6TIf92fOEhn1hSbHYbbN4ZstfD2mH6dnv575LgO3OxJJpp/D+ ZqC1lb1d8LQH4MB0WiQpMllEJblXBoDSj3IeLLyIBl3ky+nva68E3TbZVYx8h8q9mENH iyYu/WGeQYvgGQDVBqhBAn0N/6dEOse9JFEVcRk4bPQuVx4lbrLtXnvZp3TYc4cckulg 1rSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711542142; x=1712146942; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OmcRGS5TlQaotd06qJrgXX+1RvodsZtckupwlgr6QW8=; b=VACQvXnoN+XzXsW1A+SXXePaZlATJmZ4+nwFFsvZ1nv1CV1EovJ5Ly5thRGagNHspy L9/2pt1plbQzBELnItxlkJQTHbZtHIZbt45U2tAMGmQ3KVQfYk6GgMAQeYbJsjdptzA9 HkyEexh0DymfvnYLiczg71S/dPrLQ5hbyWupXV4zPzbhEDED5WRy15IhvRsCnDt6eN0H 0lx+R8yS/ZA/1v6+EsElBMWd9dLtBjZShsGWEPrimkr+pPHSRFH9zxFMYlRnzq4Mu/Pz bmoh88krQGMJCdvztnleuTiFSYpYHpbQbw8sm9+QcMZovlt2KGQiKgSow8sw34w/OhGx ENgw== X-Forwarded-Encrypted: i=1; AJvYcCVvYJgQdBlOUafFiEM6LBVvZt0F0VWFvNCAN+5SlkSCtgAOgDKp8UkkaB49g9ZqjReh6Sxt9xtjok/wwDPdrVL+9WtEgT/sYq0K/Pam X-Gm-Message-State: AOJu0YyA4v0GC0+ZZj2/5pI/tHEM03G6sr4DFT2f+2s6u4YgVMBpaT67 3nEiFMOadg39De26SSvkIKZHosO93Hnl8RTr4OK8IyzUWZqhh1vN85MzgrUIGVY= X-Received: by 2002:ac2:4983:0:b0:515:c00d:7766 with SMTP id f3-20020ac24983000000b00515c00d7766mr851252lfl.54.1711542141717; Wed, 27 Mar 2024 05:22:21 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.205]) by smtp.gmail.com with ESMTPSA id n6-20020a05640204c600b0056b8dcdaca5sm1382464edw.73.2024.03.27.05.22.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Mar 2024 05:22:21 -0700 (PDT) Message-ID: <3dbb428f-0265-4741-a28e-5613799133e9@linaro.org> Date: Wed, 27 Mar 2024 13:22:19 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 2/2] ASoC: qcom: qcm6490: Add machine driver for qcm6490 To: Mohammad Rafi Shaik , srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, broonie@kernel.org, krzysztof.kozlowski+dt@linaro.org, andersson@kernel.org, konrad.dybcio@linaro.org, lgirdwood@gmail.com, tiwai@suse.com, quic_rohkumar@quicinc.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20240327113228.1706975-1-quic_mohs@quicinc.com> <20240327113228.1706975-3-quic_mohs@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C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GnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240327113228.1706975-3-quic_mohs@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 27/03/2024 12:32, Mohammad Rafi Shaik wrote: > + > +static int qcm6490_snd_hw_free(struct snd_pcm_substream *substream) > +{ > + struct snd_soc_pcm_runtime *rtd = substream->private_data; > + struct qcm6490_snd_data *data = snd_soc_card_get_drvdata(rtd->card); > + struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(rtd, 0); > + struct sdw_stream_runtime *sruntime = data->sruntime[cpu_dai->id]; > + > + return qcom_snd_sdw_hw_free(substream, sruntime, > + &data->stream_prepared[cpu_dai->id]); > +} > + > +static const struct snd_soc_ops qcm6490_be_ops = { > + .hw_params = qcm6490_snd_hw_params, > + .hw_free = qcm6490_snd_hw_free, > + .prepare = qcm6490_snd_prepare, > +}; I think you leak sdw_stream, because of missing shutdown. Except that everything looks like sc8280xp, except the snd_init(), so I wonder how important that difference is? Cannot be combined into sc8280xp? Best regards, Krzysztof