From patchwork Thu Nov 6 14:33:36 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: 5243631 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 9AE8D9F2F1 for ; Thu, 6 Nov 2014 14:35:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C93572011D for ; Thu, 6 Nov 2014 14:35:09 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id CB746200ED for ; Thu, 6 Nov 2014 14:35:08 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id E34A7265467; Thu, 6 Nov 2014 15:35:07 +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 D62492652E4; Thu, 6 Nov 2014 15:33:58 +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 7DC8D260695; Thu, 6 Nov 2014 15:33:56 +0100 (CET) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by alsa0.perex.cz (Postfix) with ESMTP id DF95826070F for ; Thu, 6 Nov 2014 15:33:46 +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 1XmO89-0002uj-Kt; Thu, 06 Nov 2014 14:33:45 +0000 From: Chris J Arges To: alsa-devel@alsa-project.org Date: Thu, 6 Nov 2014 08:33:36 -0600 Message-Id: <1415284418-13605-3-git-send-email-chris.j.arges@canonical.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1415284418-13605-1-git-send-email-chris.j.arges@canonical.com> References: <1415284418-13605-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 v5] 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,