* [PATCH] ALSA: usb-audio: separate DJM-A9 cap lvl options
@ 2025-03-16 15:33 Olivia Mackintosh
2025-03-18 13:38 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Olivia Mackintosh @ 2025-03-16 15:33 UTC (permalink / raw)
To: alsa-devel; +Cc: Olivia Mackintosh
Mixer quicks for the Pioneer DJM-A9 mixer was added in 5289d00 with
additional capture level values added to the common DJM array of values.
This breaks the existing DJM mixers however as alsa-utils relies on
enumeration of the actual mixer options based on the value array which
results in error when storing state.
This commit just separates the A9 values into a separate array and
references them in the corresponding mixer control.
Signed-off-by: Olivia Mackintosh <livvy@base.nu>
---
sound/usb/mixer_quirks.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c
index 79c8c1540ee2..49fb849f7d40 100644
--- a/sound/usb/mixer_quirks.c
+++ b/sound/usb/mixer_quirks.c
@@ -3688,8 +3688,7 @@ static const char *snd_djm_get_label(u8 device_idx, u16 wvalue, u16 windex)
// common DJM capture level option values
static const u16 snd_djm_opts_cap_level[] = {
- 0x0000, 0x0100, 0x0200, 0x0300, 0x400, 0x500 };
-
+ 0x0000, 0x0100, 0x0200, 0x0300 };
// DJM-250MK2
static const u16 snd_djm_opts_250mk2_cap1[] = {
@@ -3831,6 +3830,8 @@ static const struct snd_djm_ctl snd_djm_ctls_750mk2[] = {
// DJM-A9
+static const u16 snd_djm_opts_a9_cap_level[] = {
+ 0x0000, 0x0100, 0x0200, 0x0300, 0x0400, 0x0500 };
static const u16 snd_djm_opts_a9_cap1[] = {
0x0107, 0x0108, 0x0109, 0x010a, 0x010e,
0x111, 0x112, 0x113, 0x114, 0x0131, 0x132, 0x133, 0x134 };
@@ -3844,7 +3845,7 @@ static const u16 snd_djm_opts_a9_cap5[] = {
0x0501, 0x0502, 0x0503, 0x0505, 0x0506, 0x0507, 0x0508, 0x0509, 0x050a, 0x050e };
static const struct snd_djm_ctl snd_djm_ctls_a9[] = {
- SND_DJM_CTL("Capture Level", cap_level, 0, SND_DJM_WINDEX_CAPLVL),
+ SND_DJM_CTL("Capture Level", a9_cap_level, 0, SND_DJM_WINDEX_CAPLVL),
SND_DJM_CTL("Master Input", a9_cap1, 3, SND_DJM_WINDEX_CAP),
SND_DJM_CTL("Ch1 Input", a9_cap2, 2, SND_DJM_WINDEX_CAP),
SND_DJM_CTL("Ch2 Input", a9_cap3, 2, SND_DJM_WINDEX_CAP),
--
2.48.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: usb-audio: separate DJM-A9 cap lvl options
2025-03-16 15:33 [PATCH] ALSA: usb-audio: separate DJM-A9 cap lvl options Olivia Mackintosh
@ 2025-03-18 13:38 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2025-03-18 13:38 UTC (permalink / raw)
To: Olivia Mackintosh; +Cc: alsa-devel
On Sun, 16 Mar 2025 16:33:23 +0100,
Olivia Mackintosh wrote:
>
> Mixer quicks for the Pioneer DJM-A9 mixer was added in 5289d00 with
> additional capture level values added to the common DJM array of values.
>
> This breaks the existing DJM mixers however as alsa-utils relies on
> enumeration of the actual mixer options based on the value array which
> results in error when storing state.
>
> This commit just separates the A9 values into a separate array and
> references them in the corresponding mixer control.
>
> Signed-off-by: Olivia Mackintosh <livvy@base.nu>
Applied with Fixes tag now.
At the next time, however, please submit to linux-sound ML instead of
alsa-devel ML, and put maintainers to Cc.
thanks,
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-18 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-16 15:33 [PATCH] ALSA: usb-audio: separate DJM-A9 cap lvl options Olivia Mackintosh
2025-03-18 13:38 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.