From patchwork Tue Nov 17 13:02:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 325497 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp4185623ils; Tue, 17 Nov 2020 05:54:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxuVEymGBIjltH//yJX7H5p9j6gWH4udEhziIqC4GPE1HXOaGKKe9CT38iTye92+NQedNK X-Received: by 2002:a50:9e05:: with SMTP id z5mr19985221ede.231.1605621257854; Tue, 17 Nov 2020 05:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605621257; cv=none; d=google.com; s=arc-20160816; b=Vgh3oNE+5VZ+0xVUlSi4IGOzF6BZmR0JTnPKU2uLqD7+Z8bCBCOth+g+aFW3SsUz/g AGvSphofg+cwTkfEwYB2IjnfQDbmlcnzcFAtirQoDw0/ZjKHFiTmdUKrN19Wzq+t6SBA UZVtttvylo7ntRCyhUIHI8vbyOhzApziToXqEnA7JThV33P/q+wlKvYqCaioHNBg+g15 eMFEU8v1xIEMVVGpC24+LuUbYwOVCYTCpDunBILFajpZqcEMfD3ycd/6sU8GlIDGPi5T 3B5vjmwmbUFKYpRsQsTtSWQTlOdUEIwAA/7gJLl+hcFpirR9jlGDls11Slg6JNqrljEo DWrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TQZGy/YAgpp9irqOCC4mKeEk6Ku/2TvE9BlDDTVx3vo=; b=OorezQM/ZjvtqwTUNobGGqVkueUtQx+hAMNgUemBFZuQmVSwojxmYUBvcJfA+Nfi00 MpIm/k2bHpntXLvW0B8WRgb7ui0qRgFI+lA2ztf81R9rQviP2TUEQZgLzUSUkA0ODsMI MbAp6Rtx9RJ0UQjG4+UK+eNA90X1dLwW5GdGxhnFYDqBqQt/2iQHZAJ4bg7gw0q/mynz LSqsZ72JpWAKpD1SDt282VG3KG7H9csb1z0AF80v66jy5TojLfHMteGwQzOFDly0BBar hlYYOvRier5jwdDeqba7eFoxx9ip0wYUmazKONl1iTW9mBkMxOJvnVadmsZ65b68xRqs Rclg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g34aDssN; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si14297848edt.219.2020.11.17.05.54.17; Tue, 17 Nov 2020 05:54:17 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g34aDssN; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731774AbgKQNaJ (ORCPT + 14 others); Tue, 17 Nov 2020 08:30:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:39240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731758AbgKQNaI (ORCPT ); Tue, 17 Nov 2020 08:30:08 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 288AA24686; Tue, 17 Nov 2020 13:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619806; bh=QshdQkn4yg/oNUoCLbaym09JkJHX2VemgqKsh5YTIWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g34aDssNiLooJj8DVwjrbWNQel4bWnnTK+xnUEeOr8CJ5ybjG6U1ZFLzaTA1UBB+N RXwkIh+ppG+8xbwFJ3x+q14DSImTQipDHhUru4BHQAxCkFY2OTnCzPfOfGn5MJ3O8k oLBU3Gta6Xs1lknNMo0a4JOe2QAxBjuI6WusiH5c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srinivas Kandagatla , Mark Brown , Sasha Levin Subject: [PATCH 5.9 011/255] ASoC: codecs: wsa881x: add missing stream rates and format Date: Tue, 17 Nov 2020 14:02:31 +0100 Message-Id: <20201117122139.487143480@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122138.925150709@linuxfoundation.org> References: <20201117122138.925150709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Srinivas Kandagatla [ Upstream commit f47d0742515748162d3fc35f04331c5b81c0ed47 ] Add missing supported rates and formats for the stream, without which attempt to do playback will fail to find any matching rates/format. Fixes: a0aab9e1404a ("ASoC: codecs: add wsa881x amplifier support") Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20201022130518.31723-1-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/wsa881x.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.27.0 diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c index d39d479e23786..5456124457a7c 100644 --- a/sound/soc/codecs/wsa881x.c +++ b/sound/soc/codecs/wsa881x.c @@ -1026,6 +1026,8 @@ static struct snd_soc_dai_driver wsa881x_dais[] = { .id = 0, .playback = { .stream_name = "SPKR Playback", + .rates = SNDRV_PCM_RATE_48000, + .formats = SNDRV_PCM_FMTBIT_S16_LE, .rate_max = 48000, .rate_min = 48000, .channels_min = 1,