From patchwork Thu Nov 30 10:15:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 120101 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp475548qgn; Thu, 30 Nov 2017 02:17:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMaD6zTGOZ1bbFh8PEapkq2DmjcUSYEF1s+TAy9b2N5qwAMrR+97d8JEFVEXZLMW56hobmGa X-Received: by 10.98.139.14 with SMTP id j14mr6143934pfe.179.1512037031383; Thu, 30 Nov 2017 02:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512037031; cv=none; d=google.com; s=arc-20160816; b=PCg6HnOKZLpCZQJQtd4eHpkZEJtZBVqmNN/jQw2hxwyMZo3dzXqH9crM+NbqUV/oko GDsxSVQ21UdP+jTx1O7K+8mZ9X+I3v3HzaBDgeBRdfOpoeQe6Fesq7YFWVC7+dPypIuP om2m8eLrOOZGig8mZWSAlp8ZsSoF+8D0PZt69sjzrFX7IU/Hsy4Od7QSSAUrDSkb+0z3 6oLZWoImTg+1QZBx8XWrAiSHxf4srzDNlznnFBe9olsY4MJ48e/MccB1rv++9/vLckX7 0GVfJuxKvZMhKSHI+v2otTAG7cqbjHxcv8M9Y75GwmkaqPQjZOfE8gNUQKBHq1UW5yMS FrMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Tb8iXAdp1ZT6nH2IzA9ukREcVQsuZ2UNSeLbxs422kQ=; b=HKBzlYfJ3z/XtAM8Yo1ZHlgHk8qMz4y90cSTjfQT13io5NKj5Z5F6WU87X4ECI0myr Tn6k0EHvZn0MYfXq3QjgXkznehooNW8LtoyygMBtg7MRO6WH1TLuo8oage+AKXYJv+Zy LpCXsxS2eWQGn+7/LdmzBhTXLMo+lBEygwXVFxeWYy/yNDv7zz+H7vHqrT+9c0xXpKNk O5VcFt+6szm8cJaC2EUD1E08Oez7nOOfZ0UnXgW/weGUxnxnzGpPvX7yLqjcDsYuE47i 99o63AsOjSohxVAIvHknTFXTxZumwDOyiWY+gDa11RNv75uMPuNGIy6QqbT3aQ8ydUNc CXQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h6s0KIOk; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si2889815pla.544.2017.11.30.02.17.07; Thu, 30 Nov 2017 02:17:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h6s0KIOk; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750782AbdK3KRG (ORCPT + 10 others); Thu, 30 Nov 2017 05:17:06 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:45305 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbdK3KRF (ORCPT ); Thu, 30 Nov 2017 05:17:05 -0500 Received: by mail-wm0-f68.google.com with SMTP id 9so11942398wme.4 for ; Thu, 30 Nov 2017 02:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=itOHrMdR0rOTECpUiZftIokBmwjFKBfpUyyxV9Xfclc=; b=h6s0KIOkolUSoyTEQea69p4ZUl3MJe6jOoPazc2yMUj/99eokccGavr2o6LPJu/Hs5 gMoy6/0NHYqRfM+bhigzYdZHoQiOLC/wdRr2lgMig0qwThCbYC/yHfX0u0k3B4juEOTk /8oaLJfW5XwK3qRR+oCg7yliVq7GB0OwJNunk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=itOHrMdR0rOTECpUiZftIokBmwjFKBfpUyyxV9Xfclc=; b=ewE/fpFLmr+xs04kAA6S53IGJ17OQZ3+y1OxdmSPH87R549+oZukFYPxShWXGRgybY llXDKbK26SwgDWnEeDNTgD2F+jfzMs9dnbLjsLMsTq5ki7948mlrHq85+SlZVDMuM5Cs 5JRJepE7W4/Vz0g42AkZs1txkIimf9AQHOunl1r+jCkgrobkm+Ef86aN7UPDOOrrD6ET 7+F5e9dXy8Qp1FTpDOe5Jm1W57YhZoHNyVHgqPYbKu6YTVzYG/pPDX2ChLwkQ02KZaOE //8vj/eWgLCrgoBpyYOK9ZuhVkNDxH5jbAFvTfXCjfMTTFomUsqQQ+gUl/Qz08MTpM6m GKzQ== X-Gm-Message-State: AJaThX45pFbHfJcbGkxk703pSyNxS9lli9VAQvMxXfORKi1abzUX2qFp K40nO6hF2QrGPO/IOBbfjBh5Og== X-Received: by 10.28.5.201 with SMTP id 192mr1501233wmf.142.1512037024329; Thu, 30 Nov 2017 02:17:04 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id v198sm2139863wmv.4.2017.11.30.02.17.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Nov 2017 02:17:03 -0800 (PST) From: srinivas.kandagatla@linaro.org To: alsa-devel@alsa-project.org, Mark Brown Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH] ASoC: codecs: msm8916-wcd: Fix supported formats Date: Thu, 30 Nov 2017 10:15:02 +0000 Message-Id: <20171130101502.4660-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Srinivas Kandagatla This codec is configurable for only 16 bit and 32 bit samples, so reflect this in the supported formats also remove 24bit sample from supported list. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/msm8916-wcd-analog.c | 2 +- sound/soc/codecs/msm8916-wcd-digital.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/codecs/msm8916-wcd-analog.c b/sound/soc/codecs/msm8916-wcd-analog.c index 5f3c42c4f74a..066ea2f4ce7b 100644 --- a/sound/soc/codecs/msm8916-wcd-analog.c +++ b/sound/soc/codecs/msm8916-wcd-analog.c @@ -267,7 +267,7 @@ #define MSM8916_WCD_ANALOG_RATES (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000) #define MSM8916_WCD_ANALOG_FORMATS (SNDRV_PCM_FMTBIT_S16_LE |\ - SNDRV_PCM_FMTBIT_S24_LE) + SNDRV_PCM_FMTBIT_S32_LE) static int btn_mask = SND_JACK_BTN_0 | SND_JACK_BTN_1 | SND_JACK_BTN_2 | SND_JACK_BTN_3 | SND_JACK_BTN_4; diff --git a/sound/soc/codecs/msm8916-wcd-digital.c b/sound/soc/codecs/msm8916-wcd-digital.c index a10a724eb448..13354d6304a8 100644 --- a/sound/soc/codecs/msm8916-wcd-digital.c +++ b/sound/soc/codecs/msm8916-wcd-digital.c @@ -194,7 +194,7 @@ SNDRV_PCM_RATE_32000 | \ SNDRV_PCM_RATE_48000) #define MSM8916_WCD_DIGITAL_FORMATS (SNDRV_PCM_FMTBIT_S16_LE |\ - SNDRV_PCM_FMTBIT_S24_LE) + SNDRV_PCM_FMTBIT_S32_LE) struct msm8916_wcd_digital_priv { struct clk *ahbclk, *mclk; @@ -645,7 +645,7 @@ static int msm8916_wcd_digital_hw_params(struct snd_pcm_substream *substream, RX_I2S_CTL_RX_I2S_MODE_MASK, RX_I2S_CTL_RX_I2S_MODE_16); break; - case SNDRV_PCM_FORMAT_S24_LE: + case SNDRV_PCM_FORMAT_S32_LE: snd_soc_update_bits(dai->codec, LPASS_CDC_CLK_TX_I2S_CTL, TX_I2S_CTL_TX_I2S_MODE_MASK, TX_I2S_CTL_TX_I2S_MODE_32);