From patchwork Thu Dec 7 22:29:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 13484436 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="K91Y+JD5" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF2B11C for ; Thu, 7 Dec 2023 14:30:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701988227; x=1733524227; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lpuPhI2tpB9IQsCXtoONYV6zah6M9dPvl1Rlo707E0M=; b=K91Y+JD5Jox6IooEOlmQ/r4wgFqFcO4cu9Q6h7yIv2+JrQdSOZ10eyRq lFjtMgVMDRqrjFn+Y9e9uJdhUFAqRKrHEEt7MkPMCHSSAIyXesX9U3dBg xTDiTURdh8NBqZ9Gz8hnLmfWdM//k44yKoTynDjXh1aFSw7ZaBu2BZ58Y S5I1gEoH1ys0YnweA+oWQFJ8Cqu+ryVurvOzbJWnPPbRf1lrURiIgN8mJ 5lvG5IrkNyeI0vHCCGQfpb8AGKg3dBMUnRsPX5Z0BofDGUB5muxNCvCyK IapVcjnmxLJychX/+US0t/Qk12oDVTMaO7cPtA4gPK2AELjjTRivdm0ro w==; X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="480516709" X-IronPort-AV: E=Sophos;i="6.04,258,1695711600"; d="scan'208";a="480516709" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 14:30:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10917"; a="895307523" X-IronPort-AV: E=Sophos;i="6.04,258,1695711600"; d="scan'208";a="895307523" Received: from hrcolco-mobl3.amr.corp.intel.com (HELO pbossart-mobl3.amr.corp.intel.com) ([10.212.148.159]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 14:30:25 -0800 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, vinod.koul@intel.com, Bard liao , Ranjani Sridharan , Peter Ujfalusi , Kai Vehmanen , srinivas.kandagatla@linaro.org, Krzysztof Kozlowski , vijendar.mukunda@amd.com, Charles Keepax , Richard Fitzgerald , Shuming Fan , Jack Yu , Oder Chiou , Pierre-Louis Bossart Subject: [RFC PATCH 16/16] ASoC: rt711-sdca: add DP0 support Date: Thu, 7 Dec 2023 16:29:44 -0600 Message-Id: <20231207222944.663893-17-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231207222944.663893-1-pierre-louis.bossart@linux.intel.com> References: <20231207222944.663893-1-pierre-louis.bossart@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-State: RFC DP0 is required for BPT/BRA transport. Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/rt711-sdca-sdw.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/codecs/rt711-sdca-sdw.c b/sound/soc/codecs/rt711-sdca-sdw.c index 935e597022d3..583c839e0e49 100644 --- a/sound/soc/codecs/rt711-sdca-sdw.c +++ b/sound/soc/codecs/rt711-sdca-sdw.c @@ -225,6 +225,14 @@ static int rt711_sdca_read_prop(struct sdw_slave *slave) j++; } + prop->dp0_prop = devm_kzalloc(&slave->dev, sizeof(*prop->dp0_prop), + GFP_KERNEL); + if (!prop->dp0_prop) + return -ENOMEM; + + prop->dp0_prop->simple_ch_prep_sm = true; + prop->dp0_prop->ch_prep_timeout = 10; + /* set the timeout values */ prop->clk_stop_timeout = 700;