From patchwork Fri Dec 5 14:42:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 5444251 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5EE95BEEA8 for ; Fri, 5 Dec 2014 14:43:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DB0F20265 for ; Fri, 5 Dec 2014 14:43:53 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 9F631201CD for ; Fri, 5 Dec 2014 14:43:52 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 79AC826508C; Fri, 5 Dec 2014 15:43:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 6BF582605E9; Fri, 5 Dec 2014 15:43:22 +0100 (CET) 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 915892605C2; Fri, 5 Dec 2014 15:43:14 +0100 (CET) Received: from mout.web.de (mout.web.de [212.227.17.12]) by alsa0.perex.cz (Postfix) with ESMTP id 6C0632605D9 for ; Fri, 5 Dec 2014 15:43:07 +0100 (CET) Received: from kongar.lan.local ([77.64.221.251]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0Leca2-1Xefxi1dLK-00qTYk; Fri, 05 Dec 2014 15:43:00 +0100 From: Alexander Stein To: Jaroslav Kysela , Takashi Iwai Date: Fri, 5 Dec 2014 15:42:54 +0100 Message-Id: <1417790574-13919-2-git-send-email-alexanders83@web.de> X-Mailer: git-send-email 2.2.0 In-Reply-To: <1417790574-13919-1-git-send-email-alexanders83@web.de> References: <1417790574-13919-1-git-send-email-alexanders83@web.de> X-Provags-ID: V03:K0:Lw7/+glhTPJhtktZMhltyH+pSBy9A7sOlXXy6D8L7GYtkrecNMf ENxThYO2e+DtiKFKKml3AEHqxHihxbrNm1XBBiZvVJXBV2oBNRN2GC3xlk4zWdrGcsvT9xw h4Q9yAXXS7GamVjatIsRI/dKsaNGDb+UDfJIQp76j+v15rGatRrtODlYJ0dBLVZMH4CvTug HtB4LO9R5fd1LGu26FFVQ== X-UI-Out-Filterresults: notjunk:1; Cc: Alexander Stein , Alexandre Belloni , alsa-devel@alsa-project.org, Nicolas Ferre , Arnd Bergmann Subject: [alsa-devel] [PATCH 2/2] ALSA: sound/atmel/ac97c.c: Fix device index for pcm 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 X-Virus-Scanned: ClamAV using ClamSMTP chip->pdev->id is -1 by default. This is an invalid index resulting in device file names like /dev/snd/pcmC0D-1p. Signed-off-by: Alexander Stein --- sound/atmel/ac97c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index ff2f743..fa283d3 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c @@ -776,7 +776,7 @@ static int atmel_ac97c_pcm_new(struct atmel_ac97c *chip) return err; } retval = snd_pcm_new(chip->card, chip->card->shortname, - chip->pdev->id, playback, capture, &pcm); + 0, playback, capture, &pcm); if (retval) return retval;