Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1212939imm; Thu, 6 Sep 2018 18:04:12 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdar7mF8dMax1WitHKrFvWsuD0+BGaTJqQ+6mxely6PTaPD8QAr2WdIdUC/JQrMxFVNN4uMI X-Received: by 2002:a63:60c1:: with SMTP id u184-v6mr5651749pgb.266.1536282252507; Thu, 06 Sep 2018 18:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536282252; cv=none; d=google.com; s=arc-20160816; b=ijZ56HHz59QdGBhsnscTGw6IptgCHfUFovaCTmx3rzRG/jC7kShtEY8fNeCGASsjPL majxg1n05uneQ6CXPL0nm3/GLZVuLQDVslDUQzG7mreW0wUY4ihCm/PJzjBf+4AhObIb BkzF6Vxw97ZhU5YIPdvjO5ORxsDG/OmgC5c5RKHdf9H2JUuyZNBN3V2r7pumNehPIb0c 4IGQ8wOC0zwncPcDRoKTdGPtFauGxz8u5UTlmxooNvjQB6UDI4IKIEInLykEdwa7xdTg VvPgJikSbn1x/SfoOO6HfWJuNX7Ly8+Rv4wb/86PnsmR/AKbXFMjBuzLibKy24aMVz4l Uj6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=l2nLBP4opMy1O5sJ/NV5pxkvJ8oVgGDcyqNU3r8a/UM=; b=QAs+TTpv2vDsFJ1uLCIAlyYzP2ryre/V9MT6aIq8M4CRTfYC7D0syC9D8WO8hKXz6J 8p2saqJoLsjHkBb7iL0RkfEW5UCtF8cVx8ujbWWy6x8heEq9v2dXW88TnI9RsheZ/buK A32Xyg+EkQBF9asVUx7n+mOOSY5egBkrXBqv+Z2yWob3egzkTSc22SqL0hsOHg8pmD6M BYiW9t0MoLJVWPi2UVDl9a64IZxWwyvRCZn9IH4EqXNraRfrGzB5pvAb/s3J+5fn4va9 v1GlDMONdymup0GtEb6JlCq3XYmv7RikG7BBPQj4M8/8SW3w+CwC+lzCaxnhn3Q40okF XPYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=hde64YUv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p65-v6si6970470pga.401.2018.09.06.18.03.57; Thu, 06 Sep 2018 18:04:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=hde64YUv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728626AbeIGFOR (ORCPT + 99 others); Fri, 7 Sep 2018 01:14:17 -0400 Received: from mail-eopbgr690135.outbound.protection.outlook.com ([40.107.69.135]:4506 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728091AbeIGFOQ (ORCPT ); Fri, 7 Sep 2018 01:14:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l2nLBP4opMy1O5sJ/NV5pxkvJ8oVgGDcyqNU3r8a/UM=; b=hde64YUvrk8+8PiGBT1gHaj6+UoW3GuJDj3PftTrGAnjI+TYIXQaknOzD/FDQ9N4Qqpk7Qzah0aQpXMsH+VoAJgXD77WB+dPPfnsnJKTZ1jvaEQLnWMeG41pUXNSfRW3MFd3L5JUd8FstHtbWbkXvulKI6DazRNVVhWERHyrXOI= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0773.namprd21.prod.outlook.com (10.173.192.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.1; Fri, 7 Sep 2018 00:35:58 +0000 Received: from CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611]) by CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611%7]) with mapi id 15.20.1143.008; Fri, 7 Sep 2018 00:35:58 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Takashi Iwai , Sasha Levin Subject: [PATCH AUTOSEL 4.18 08/88] ALSA: msnd: Fix the default sample sizes Thread-Topic: [PATCH AUTOSEL 4.18 08/88] ALSA: msnd: Fix the default sample sizes Thread-Index: AQHURkK/+gUcndfg+Ui0/3AkPdw4LA== Date: Fri, 7 Sep 2018 00:35:58 +0000 Message-ID: <20180907003547.57567-8-alexander.levin@microsoft.com> References: <20180907003547.57567-1-alexander.levin@microsoft.com> In-Reply-To: <20180907003547.57567-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR21MB0773;6:kcirMZn5wbTD1dFOwhdMXJVMmg0OQJWDbCn03Y4icY3xqDDIWlB9Y9X889K0JDDj5rpdPJU1VcPH3w4lTZIHRD4Jj10pg0w22pLTfLwEprM78ZPG8arCx5QqxsRf6zzKO73dnLtnxr3+LyHenBY0LfZLPvcao9rH2rphl/BFtMXRHgpFCQWmAcUvmwLak4uSXCAJ682nJE10BYjzx86UWDL/PrFhDWoPmJNKjDgfDFxNBUVBnFIqrudbofi1zLfUxdSoeEixXl7cbJllfldPihvLDsbCUpEZE/pXi1MlIw8m8WFuGT9fe7OGs7ZL40wvNv9jXBbNON8rvjwtlHEibe3mLW55uIeX/DLObaQOwVXTNHJS0WVoQHtJ06OrIDHIXa1jOD7AFjNKSYDHDwmVd+6n/H+ivyjbzTFhYzHlDeZJ4L2mbAkHbxe3BH5mbN1l+PKIsG5GxqZMwRvY4bgUMw==;5:d08yQKVZKuDyzLbwi1gtD1ImCQh8vnZvglFjBeh44HTSBvgve7UUNIAkfNlza7rfxMYMDBvck4Je1DjQGL9M8WSI2cmsfMXmhFVyusaOXP4MLV2wBcdSGNHyGpm5enezw0iKx1QCb918O8POzcC1suG7tLzzF5zuV2EfPAqtZwc=;7:XpHGI5YasWvyOwuCY4+uIFl5vbPjwXb7zva7dwMR9EcOpuB8lQbX1c/wMtksd/vFagOweQdmmaIRpzMslS/AOvta6rqlBo4X8nLn3wcxC/reve46XeHdh0q3jZlcdh+vRGrF7S0tmE1LybceRGBhVCqzSRDF8UIJw+ft7GupV8Nxa+pBDgHBTrz2uGqgQoG0tj/gcv2cLJwuYhcUBRwBUP6oKcjilR2GmetwPIcM+SvuSg9b8B9rckBW1wjg4FkI x-ms-office365-filtering-correlation-id: ca8bc496-2ecf-4c21-fa7b-08d61459e1a0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:CY4PR21MB0773; x-ms-traffictypediagnostic: CY4PR21MB0773: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231344)(944501410)(52105095)(2018427008)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699049)(76991033);SRVR:CY4PR21MB0773;BCL:0;PCL:0;RULEID:;SRVR:CY4PR21MB0773; x-forefront-prvs: 07880C4932 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(136003)(39860400002)(346002)(376002)(396003)(189003)(199004)(8676002)(5660300001)(106356001)(6436002)(25786009)(110136005)(54906003)(6506007)(105586002)(2906002)(486006)(53936002)(446003)(2616005)(476003)(4326008)(11346002)(5250100002)(107886003)(2501003)(86612001)(97736004)(6512007)(478600001)(3846002)(72206003)(6116002)(10290500003)(76176011)(68736007)(14454004)(1076002)(66066001)(26005)(575784001)(6486002)(99286004)(8936002)(36756003)(81166006)(86362001)(256004)(102836004)(81156014)(305945005)(186003)(22452003)(2900100001)(7736002)(10090500001)(316002)(217873002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR21MB0773;H:CY4PR21MB0776.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Jrfpw8PIrg2QBPvQkH9B8NeWnx4tdLajA/ZrZOoi35NZDxyx6oybtzCzp6uUHXe/kbIaJe1ES0IRmWMTIbakXCXzx2hf1/c8xtGZ3epYzZq3pfFB6u94tgOZhmSbdhT3tbjQ7LNY31BGts0cWRjv+/GnwyV3I7oxjuD4MPp88w+wQLXQN6eVmV7mqBJ7o/KTGEIxBMB83dIEoUjo69RqWVh9NhZZrKUmTCCAeFYjRNG4ypb9QWoOK6Yil8A8SS2yPKzW3MGApFuLc7tegSuKykd7VQtutHntwQvgM7LHo+BV0a1arm4N9bTZlMQreYUAu+0YKxpdoA3ePJb/lKPF5frf7annknXhalA3+KTZHVY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: ca8bc496-2ecf-4c21-fa7b-08d61459e1a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2018 00:35:58.8351 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0773 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai [ Upstream commit 7c500f9ea139d0c9b80fdea5a9c911db3166ea54 ] The default sample sizes set by msnd driver are bogus; it sets ALSA PCM format, not the actual bit width. Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/isa/msnd/msnd_pinnacle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/isa/msnd/msnd_pinnacle.c b/sound/isa/msnd/msnd_pinnacle.= c index 6c584d9b6c42..a19f802b2071 100644 --- a/sound/isa/msnd/msnd_pinnacle.c +++ b/sound/isa/msnd/msnd_pinnacle.c @@ -82,10 +82,10 @@ =20 static void set_default_audio_parameters(struct snd_msnd *chip) { - chip->play_sample_size =3D DEFSAMPLESIZE; + chip->play_sample_size =3D snd_pcm_format_width(DEFSAMPLESIZE); chip->play_sample_rate =3D DEFSAMPLERATE; chip->play_channels =3D DEFCHANNELS; - chip->capture_sample_size =3D DEFSAMPLESIZE; + chip->capture_sample_size =3D snd_pcm_format_width(DEFSAMPLESIZE); chip->capture_sample_rate =3D DEFSAMPLERATE; chip->capture_channels =3D DEFCHANNELS; } --=20 2.17.1