From: Felix Homann <linuxaudio@showlabor.de>
To: patch@alsa-project.org
Cc: alsa-devel@alsa-project.org,
Felix Homann <linuxaudio@showlabor.de>,
mark@pogo.org.uk
Subject: [PATCH 2/3] Add TLV to M-Audio volume controls
Date: Mon, 23 Apr 2012 11:16:07 +0200 [thread overview]
Message-ID: <1335172568-13502-3-git-send-email-linuxaudio@showlabor.de> (raw)
In-Reply-To: <1335172568-13502-1-git-send-email-linuxaudio@showlabor.de>
Signed-off-by: Felix Homann <linuxaudio@showlabor.de>
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index c374c72..596744f 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -501,6 +501,11 @@ static int mixer_vol_tlv(struct snd_kcontrol *kcontrol, int op_flag,
return 0;
}
+/* This symbol is exported in order to reuse it in mixer_quirks.c */
+int (*snd_usb_mixer_vol_tlv)(struct snd_kcontrol *kcontrol, int op_flag,
+ unsigned int size,
+ unsigned int __user *_tlv) = &mixer_vol_tlv;
+
/*
* parser routines begin here...
*/
diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c
index e486c51..5b52275 100644
--- a/sound/usb/mixer_quirks.c
+++ b/sound/usb/mixer_quirks.c
@@ -41,6 +41,8 @@
#include "helper.h"
extern struct snd_kcontrol_new *snd_usb_feature_unit_ctl;
+extern int (*snd_usb_mixer_vol_tlv)(struct snd_kcontrol *kcontrol, int op_flag,
+ unsigned int size, unsigned int __user *_tlv);
/* private_free callback */
static void usb_mixer_elem_free(struct snd_kcontrol *kctl)
@@ -594,7 +596,7 @@ static int snd_maudio_ftu_create_volume_ctls(struct usb_mixer_interface *mixer)
in + 1, out + 1);
err = snd_create_std_mono_ctl(mixer, id, control,
cmask, val_type, name,
- NULL);
+ snd_usb_mixer_vol_tlv);
if (err < 0)
return err;
}
@@ -605,7 +607,7 @@ static int snd_maudio_ftu_create_volume_ctls(struct usb_mixer_interface *mixer)
in - 7, out + 1);
err = snd_create_std_mono_ctl(mixer, id, control,
cmask, val_type, name,
- NULL);
+ snd_usb_mixer_vol_tlv);
if (err < 0)
return err;
}
--
1.7.5.4
next prev parent reply other threads:[~2012-04-23 9:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-23 9:16 [PATCH 0/3] Alsa: USB: Improve M-Audio Fast Track Ultra mixer Felix Homann
2012-04-23 9:16 ` [PATCH 1/3] Unify M-Audio Fast Track Ultra and Ebox-44 mixer quirks Felix Homann
2012-04-23 9:43 ` Takashi Iwai
2012-04-23 9:57 ` Felix Homann
2012-04-23 10:04 ` Takashi Iwai
2012-04-23 9:16 ` Felix Homann [this message]
2012-04-23 9:43 ` [PATCH 2/3] Add TLV to M-Audio volume controls Takashi Iwai
2012-04-23 9:16 ` [PATCH 3/3] M-Audio FTU: Add effect controls Felix Homann
2012-04-23 9:52 ` Takashi Iwai
2012-04-23 10:19 ` Felix Homann
2012-04-23 10:36 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1335172568-13502-3-git-send-email-linuxaudio@showlabor.de \
--to=linuxaudio@showlabor.de \
--cc=alsa-devel@alsa-project.org \
--cc=mark@pogo.org.uk \
--cc=patch@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).