From patchwork Wed Nov 12 18:07:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris J Arges X-Patchwork-Id: 5291241 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E2E2A9F440 for ; Wed, 12 Nov 2014 18:08:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 335EE201EC for ; Wed, 12 Nov 2014 18:08:24 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 03457201DD for ; Wed, 12 Nov 2014 18:08:22 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F3AAA265ABE; Wed, 12 Nov 2014 19:08:18 +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,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 9306B265963; Wed, 12 Nov 2014 19:07:19 +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 9AEA12657C6; Wed, 12 Nov 2014 19:07:17 +0100 (CET) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by alsa0.perex.cz (Postfix) with ESMTP id 7457F2657C6 for ; Wed, 12 Nov 2014 19:07:09 +0100 (CET) Received: from cpe-173-174-67-34.austin.res.rr.com ([173.174.67.34] helo=datasponge.austin.rr.com) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XocJw-0005xz-VV; Wed, 12 Nov 2014 18:07:09 +0000 From: Chris J Arges To: alsa-devel@alsa-project.org Date: Wed, 12 Nov 2014 12:07:00 -0600 Message-Id: <1415815622-31015-3-git-send-email-chris.j.arges@canonical.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1415815622-31015-1-git-send-email-chris.j.arges@canonical.com> References: <1415815622-31015-1-git-send-email-chris.j.arges@canonical.com> Cc: tiwai@suse.de, th55@gmx.de, robin@gareus.org, clemens@ladisch.de, david.henningsson@canonical.com Subject: [alsa-devel] [PATCH 2/4 v7] ALSA: usb-audio: Add private_data pointer to usb_mixer_elem_info 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 Add a private_data pointer to usb_mixer_elem_info to allow other mixer implementations to extend the structure as necessary. Signed-off-by: Chris J Arges --- sound/usb/mixer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/usb/mixer.h b/sound/usb/mixer.h index 73b1f64..8df9a73 100644 --- a/sound/usb/mixer.h +++ b/sound/usb/mixer.h @@ -53,6 +53,7 @@ struct usb_mixer_elem_info { int cached; int cache_val[MAX_CHANNELS]; u8 initialized; + void *private_data; }; int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif,