Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5854185ybn; Sun, 29 Sep 2019 07:07:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/I/46wbiRjrklIjJdnRcBmFrx2SYPlCW/N00TD6VoAsCotNrWk72f3zUEJI9R2ZgOtlj4 X-Received: by 2002:a50:b6aa:: with SMTP id d39mr14478718ede.16.1569766055230; Sun, 29 Sep 2019 07:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569766055; cv=none; d=google.com; s=arc-20160816; b=aj/g5wlW27lTfHh/Gu35mEmDtVnLhLnxwbYwuyNQh4ruFs7fIR9jzLaMjli/crGI1+ HDJUYWW8Nme+BKsZQJFaVZbLT1WEMlkpVtGJy5ECL3qNsHS2fAl5PQVioluAsvsT+tca cWFt+Ho8hGCregoYR5FIiMeuGpuFRDzKl9kJEor+eY/ebJyordT5DU2qZN1KavMJLMsh 2RRYdsnVrRFdbNx9hL9P34pn934KLPZgPW5nEh62Qj9mpfUaqeNfreDs5rqlvzNMe/kG jpKiQ8iQ57oZniZpFpZ3XsdyGRz5ni8OiWSrOBl7Yl6dkUX9C+NJXqGGvP2xinXmLK5E drXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CMXkhIE+QyqGqpOLk3zkLW0ZEW2UqGFm8NXEBxwvTi4=; b=b9hsOz9brjvyntdMLCixSzL+kFUmmFqJIXSyGdB73z12KyTWLEounQa6dVd9z/MLbp WuC+UdxzEIcv2gkvFZZyJo5mpetN0V/tyvgNlHKxazpe6w85R31bsr3VylGJEs3TNi8i b7DfuIrXRXjb0amFJGW6myCgbNWdYk8+vHQauFZmkzFmq8DuguNe1pER9tvEPosC2FNT QWSLgs29uAIWRzY8YeSVYsBmbF++8ASUxDnB0SIBbrl1VYvUr6zzTTAI6rqYsmUN+Vnh cdwdSVzFruQ0VwTgJr0w0ICSrKfRmucnloUkqUYTStLC1LI8Fh4x8rzrNoF1NHMx76gj dlqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d5mEwANe; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22si4959903edq.174.2019.09.29.07.07.10; Sun, 29 Sep 2019 07:07:35 -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=@kernel.org header.s=default header.b=d5mEwANe; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbfI2OEE (ORCPT + 99 others); Sun, 29 Sep 2019 10:04:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:47326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730400AbfI2OEA (ORCPT ); Sun, 29 Sep 2019 10:04:00 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 48C3A21835; Sun, 29 Sep 2019 14:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765840; bh=rg1m6UnFhcxOaDXtA3qfOIvCLZHYb3NhucEHI4MbCGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d5mEwANejFo7wEc1G8qtY8eGr8ta8v5BqP3otwUxD6NMIurmQp+qtwIn/09KyME5E xjEZCUuudkyR651VA4BMb+zVr5gx2AByCpI22h7/oN+0wgOeRsJwn4Nju9kvRKjbYk dN2znEj4HgwzEjDGp5f6IoE/SfKPiXHtZjORqfBo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Sakamoto , Takashi Iwai Subject: [PATCH 5.3 21/25] ALSA: dice: fix wrong packet parameter for Alesis iO26 Date: Sun, 29 Sep 2019 15:56:24 +0200 Message-Id: <20190929135017.078417071@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135006.127269625@linuxfoundation.org> References: <20190929135006.127269625@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Sakamoto commit 3a9236e97207f2469254b4098995159b80174d95 upstream. At higher sampling rate (e.g. 192.0 kHz), Alesis iO26 transfers 4 data channels per data block in CIP. Both iO14 and iO26 have the same contents in their configuration ROM. For this reason, ALSA Dice driver attempts to distinguish them according to the value of TX0_AUDIO register at probe callback. Although the way is valid at lower and middle sampling rate, it's lastly invalid at higher sampling rate because because the two models returns the same value for read transaction to the register. In the most cases, users just plug-in the device and ALSA dice driver detects it. In the case, the device runs at lower sampling rate and the driver detects expectedly. For this reason, this commit leaves the way to detect as is. Fixes: 28b208f600a3 ("ALSA: dice: add parameters of stream formats for models produced by Alesis") Cc: # v4.18+ Signed-off-by: Takashi Sakamoto Link: https://lore.kernel.org/r/20190916101851.30409-1-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/firewire/dice/dice-alesis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/firewire/dice/dice-alesis.c +++ b/sound/firewire/dice/dice-alesis.c @@ -15,7 +15,7 @@ alesis_io14_tx_pcm_chs[MAX_STREAMS][SND_ static const unsigned int alesis_io26_tx_pcm_chs[MAX_STREAMS][SND_DICE_RATE_MODE_COUNT] = { - {10, 10, 8}, /* Tx0 = Analog + S/PDIF. */ + {10, 10, 4}, /* Tx0 = Analog + S/PDIF. */ {16, 8, 0}, /* Tx1 = ADAT1 + ADAT2. */ };