From patchwork Fri Aug 3 09:51:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 143396 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp273863ljj; Fri, 3 Aug 2018 02:52:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeEXupRIf3B90r2JnfD84u9Fg91MXBtUwXW87aG5qMYKWJQodY9z3VnjfFVJd0izO2bOeXV X-Received: by 2002:a1c:3a8f:: with SMTP id h137-v6mr4819219wma.41.1533289932379; Fri, 03 Aug 2018 02:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533289932; cv=none; d=google.com; s=arc-20160816; b=VopXS9w3ilQAVGWblRCgP5il7xkw+OFDj39l1f9kYmFm6S8DPT0eLJBuIdPi9i9yAi BlusU0RrcKQPETSYJlr70bML7KKykZr3APBKaMgyJIpbSE3uNqi+QcxQEgMcCfDpSFRx /080h+32ssJs3knQ1U6Y3Dtc1j8guZPvXaro8f+9k4gvxHXBJ5asK1b+g3sSRnX3JcEY 7CQwM19Ua6vabag3Wp6auR4AMq4sWZsA12s5fUaFAwQn0cg6ys2Xnaq3uWkNmY4oCSx1 aZkQSy7WMS1NPKzXURGF5uNPmWsK7SzWqhXT8hMj1Bi8pErdat2vDDRFR8gnLUByuqvP eR3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=vN8J5kWHzUtsJh5TewyNDTXuc8Zjq7uTp1GwnJXgs8A=; b=MTBvFBNW1u2ZcC8R+corI55d8thHWrvbWn1Q4A0kXypGP+LVLdhEjFaxGhhcoeu92T ENaJj4L3EJC03g6Td/1wpqd9mlDrabWNxbJkkfT5ZhxygbGmi5aJZ+OIPVaADARGbpNC DIOIPHDs8gL3jZqjguTaxsbIV3rXmFyYCfeCR/5i+bQmaKl7nZ3yKtvQfapjlmdLGK+k APpC0yH/Y+bGSwIzZal3Y64Vx1gAKUkMIW7GOTs1gctsWA1caQhULQYwbpWYyzbCoKV+ dNpEJ7bU2houyaRsjff1omSfJUROHgIuIF6qf2saEpA0yhtMpcVpwpQW3OofvtUfm3EY xnxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=FmiDi28r; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id u125-v6si3155175wme.207.2018.08.03.02.52.12; Fri, 03 Aug 2018 02:52:12 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=FmiDi28r; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8AE232676E2; Fri, 3 Aug 2018 11:52:10 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0D2E1267763; Fri, 3 Aug 2018 11:52:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 251742673A0 for ; Fri, 3 Aug 2018 11:52:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=D8pGGyhM57aTI3xqtSgSUt/oIaX4KbhtGutzYvAuZwY=; b=FmiDi28r+3wO 3FF4H08UoGUlcP6baDmoRdmszw09f8o+NwXAephG6h8UPNQrTSc2FympkZhEkd9kFiIFzsmF5g6V7 7IqfDI4yOBD5jKVHOboUjmEYFnmb0hLTHoqNK1Dxsp0fJEVEGmoSK7htqnoNDD59hoOlXrGVy69o+ Bg1ZI=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1flWkO-0003Aj-TX; Fri, 03 Aug 2018 09:51:48 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 876AF1123999; Fri, 3 Aug 2018 10:51:48 +0100 (BST) From: Mark Brown To: Yong Zhi In-Reply-To: <1533252091-31918-1-git-send-email-yong.zhi@intel.com> Message-Id: <20180803095148.876AF1123999@debutante.sirena.org.uk> Date: Fri, 3 Aug 2018 10:51:48 +0100 (BST) Cc: alsa-devel@alsa-project.org, harshapriya.n@intel.com, pierre-louis.bossart@linux.intel.com, vkoul@kernel.org, broonie@kernel.org, naveen.m@intel.com, jenny.tc@intel.com Subject: [alsa-devel] Applied "ASoC: Intel: bxt: Use refcap device for mono recording" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: Intel: bxt: Use refcap device for mono recording has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 26a6dce8ef99b0199e7682d1c203cf7d0b5fd5b0 Mon Sep 17 00:00:00 2001 From: Yong Zhi Date: Thu, 2 Aug 2018 18:21:31 -0500 Subject: [PATCH] ASoC: Intel: bxt: Use refcap device for mono recording The refcap capture device supports mono recording only, this patch adds the channel constraints. Signed-off-by: Yong Zhi Reviewed-by: Pierre-Louis Bossart Signed-off-by: Mark Brown --- sound/soc/intel/boards/bxt_da7219_max98357a.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.18.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/intel/boards/bxt_da7219_max98357a.c b/sound/soc/intel/boards/bxt_da7219_max98357a.c index be6e4b40bf03..6f052fc8d1e2 100644 --- a/sound/soc/intel/boards/bxt_da7219_max98357a.c +++ b/sound/soc/intel/boards/bxt_da7219_max98357a.c @@ -324,8 +324,22 @@ static const struct snd_pcm_hw_constraint_list constraints_16000 = { .list = rates_16000, }; +static const unsigned int ch_mono[] = { + 1, +}; + +static const struct snd_pcm_hw_constraint_list constraints_refcap = { + .count = ARRAY_SIZE(ch_mono), + .list = ch_mono, +}; + static int broxton_refcap_startup(struct snd_pcm_substream *substream) { + substream->runtime->hw.channels_max = 1; + snd_pcm_hw_constraint_list(substream->runtime, 0, + SNDRV_PCM_HW_PARAM_CHANNELS, + &constraints_refcap); + return snd_pcm_hw_constraint_list(substream->runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &constraints_16000);