Rename Pioneer mixer channel controls
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH] ALSA: usb-audio: Rename Pioneer mixer channel controls
Quoted 6 lines · František Kučera
From: František Kučera <[email protected]>
so alsamixer can show the controls in correct categories: capture/playback
Signed-off-by František Kučera <[email protected]>
Applied now. Thanks.
Takashi
Re: [PATCH] ALSA: usb-audio: Rename Pioneer mixer channel controls
Quoted 11 lines · Takashi Iwai
Quoted 6 lines · František Kučera
From: František Kučera <[email protected]>
so alsamixer can show the controls in correct categories: capture/playback
Signed-off-by František Kučera <[email protected]>Applied now. Thanks.
... on the second thought, I'm not sure whether the proposed new names are the best choice. Now we see "Capture" and "Playback" twice for ChX switches (also for Master switch, too):
+ SND_DJM_CTL("Master Capture Level Capture Switch", cap_level, 0, SND_DJM_WINDEX_CAPLVL),
+ SND_DJM_CTL("Capture Ch1 Capture Switch", 250mk2_cap1, 2, SND_DJM_WINDEX_CAP),
+ SND_DJM_CTL("Capture Ch2 Capture Switch", 250mk2_cap2, 2, SND_DJM_WINDEX_CAP),
+ SND_DJM_CTL("Capture Ch3 Capture Switch", 250mk2_cap3, 0, SND_DJM_WINDEX_CAP),+ SND_DJM_CTL("Playback Ch1 Playback Switch", 250mk2_pb1, 0, SND_DJM_WINDEX_PB),
+ SND_DJM_CTL("Playback Ch2 Playback Switch", 250mk2_pb2, 1, SND_DJM_WINDEX_PB),
....
I guess your intention to make the differences clearer, but still it leaves me some itch feeling.
And now I noticed that you've submitted to a wrong list. The kernel patches should be sent to [email protected], not alsa-devel. So I drop the patch for now.
Let me know if you believe this is the best naming, or if you have any other proposals. And for the next patch, please submit to linux-sound ML instead.
thanks,
Takashi
Dne 11. 05. 25 v 16:23 Takashi Iwai napsal(a):
Quoted 29 lines
Quoted 8 lines · Takashi Iwai
Quoted 5 lines · František Kučera
From: František Kučera <[email protected]>
so alsamixer can show the controls in correct categories: capture/playback
Signed-off-by František Kučera <[email protected]>Applied now. Thanks.
... on the second thought, I'm not sure whether the proposed new names are the best choice. Now we see "Capture" and "Playback" twice for ChX switches (also for Master switch, too):
(quoted diff) +6
-0+ SND_DJM_CTL("Master Capture Level Capture Switch", cap_level, 0, SND_DJM_WINDEX_CAPLVL), + SND_DJM_CTL("Capture Ch1 Capture Switch", 250mk2_cap1, 2, SND_DJM_WINDEX_CAP), + SND_DJM_CTL("Capture Ch2 Capture Switch", 250mk2_cap2, 2, SND_DJM_WINDEX_CAP), + SND_DJM_CTL("Capture Ch3 Capture Switch", 250mk2_cap3, 0, SND_DJM_WINDEX_CAP), + SND_DJM_CTL("Playback Ch1 Playback Switch", 250mk2_pb1, 0, SND_DJM_WINDEX_PB), + SND_DJM_CTL("Playback Ch2 Playback Switch", 250mk2_pb2, 1, SND_DJM_WINDEX_PB),I guess your intention to make the differences clearer, but still it leaves me some itch feeling.
And now I noticed that you've submitted to a wrong list. The kernel patches should be sent to [email protected], not alsa-devel. So I drop the patch for now.
Quoted 8 lines
Let me know if you believe this is the best naming, or if you have any other proposals. And for the next patch, please submit to linux-sound ML instead.
thanks,
Takashi
I agree that the names are somehow weird... (I asked for advice in the e-mail "Pioneer DJ DJM mixers channel names" 2025-04-24).
I tried to find best fitting names in <https://docs.kernel.org/sound/designs/control-names.html> but this convention fits rather classic sound cards than mixers with many universal channels.
The "Capture Switch" or "Playback Switch" at the end of the name are hidden in the alsamixer utility and only "Capture Ch1" is displayed. The suffix serves for assigning the control to the correct category (F3 - playback, F4 - capture, F5 - all). And without "Capture" or "Playback" prefix, I will see only Ch1, Ch2 etc. and if I switch to "All" (F5) I can not distinguish Capture Ch1 from Playback Ch1...
Hope we can find a better naming convention for mixers.
Thanks,
Franta
Jaroslav Kysela
maintainerQuoted 41 lines · František Kučera
Dne 11. 05. 25 v 16:23 Takashi Iwai napsal(a):
Quoted 29 lines
Quoted 8 lines · Takashi Iwai
Quoted 5 lines · František Kučera
From: František Kučera <[email protected]>
so alsamixer can show the controls in correct categories: capture/playback
Signed-off-by František Kučera <[email protected]>Applied now. Thanks.
... on the second thought, I'm not sure whether the proposed new names are the best choice. Now we see "Capture" and "Playback" twice for ChX switches (also for Master switch, too):
(quoted diff) +6
-0+ SND_DJM_CTL("Master Capture Level Capture Switch", cap_level, 0, SND_DJM_WINDEX_CAPLVL), + SND_DJM_CTL("Capture Ch1 Capture Switch", 250mk2_cap1, 2, SND_DJM_WINDEX_CAP), + SND_DJM_CTL("Capture Ch2 Capture Switch", 250mk2_cap2, 2, SND_DJM_WINDEX_CAP), + SND_DJM_CTL("Capture Ch3 Capture Switch", 250mk2_cap3, 0, SND_DJM_WINDEX_CAP), + SND_DJM_CTL("Playback Ch1 Playback Switch", 250mk2_pb1, 0, SND_DJM_WINDEX_PB), + SND_DJM_CTL("Playback Ch2 Playback Switch", 250mk2_pb2, 1, SND_DJM_WINDEX_PB),I guess your intention to make the differences clearer, but still it leaves me some itch feeling.
And now I noticed that you've submitted to a wrong list. The kernel patches should be sent to [email protected], not alsa-devel. So I drop the patch for now.
Quoted 8 lines
Let me know if you believe this is the best naming, or if you have any other proposals. And for the next patch, please submit to linux-sound ML instead.
thanks,
Takashi
I agree that the names are somehow weird... (I asked for advice in the e-mail "Pioneer DJ DJM mixers channel names" 2025-04-24).
Quoted 5 lines
I tried to find best fitting names in <https://docs.kernel.org/sound/designs/control-names.html> but this convention fits rather classic sound cards than mixers with many universal channels.
The "Capture Switch" or "Playback Switch" at the end of the name are hidden in the alsamixer utility and only "Capture Ch1" is displayed. The suffix serves for assigning the control to the correct category (F3 - playback, F4 - capture, F5 - all). And without "Capture" or "Playback" prefix, I will see only Ch1, Ch2 etc. and if I switch to "All" (F5) I can not distinguish Capture Ch1 from Playback Ch1...
Hope we can find a better naming convention for mixers.
Perhaps something like "Master Input Level Capture Switch", "Input 1 Capture Switch" and "Output 1 Capture Switch" names may be better. I guess that the channels are (or can be) handled separately.
Jaroslav
Signature · 2 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.