ALSA: usb-audio: add the profile name of Dell desktop
PATCH 1/1 ALSA: usb-audio: add the profile name of Dell desktop
From: Shuming Fan <[email protected]>
Add the profile name to let userspace pick correct UCM profile
--- sound/usb/card.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/usb/card.c +4 -0
@@ -398,6 +398,10 @@ static const struct usb_audio_device_name usb_audio_names[] = {PROFILE_NAME (0x0bda ,0x4014 ,"Dell" ,"WD15 Dock" ,"Dell-WD15-Dock" ),/* Dell WD19 Dock */ PROFILE_NAME (0x0bda ,0x402e ,"Dell" ,"WD19 Dock" ,"Dell-WD15-Dock" ), +/* Dell Desktop - Front */ +PROFILE_NAME (0x0bda ,0x4c54 ,"Dell" ,"Desktop" ,"Dell-Desktop-Front" ), +/* Dell Desktop - Rear */ +PROFILE_NAME (0x0bda ,0x4c55 ,"Dell" ,"Desktop" ,"Dell-Desktop-Rear" ), DEVICE_NAME(0x0ccd, 0x0028, "TerraTec", "Aureon5.1MkII"),
Signature · 1 line
2.33.0
Quoted 4 lines · On Thu, 11 Nov 2021 10:19:14 +0100, <[email protected]> wrote:
From: Shuming Fan <[email protected]>
Add the profile name to let userspace pick correct UCM profile
Was the corresponding change for alsa-ucm-conf submitted to upstream?
Quoted 10 lines
Signed-off-by Shuming Fan <[email protected]>--- sound/usb/card.c | 4 ++++ 1 file changed, 4 insertions(+)sound/usb/card.c +0
-0
sound/usb/card.c static const struct usb_audio_device_name usb_audio_names[] = { · line 404
Quoted 7 lines
sound/usb/card.c +4
-0@@ -398,6 +398,10 @@ static const struct usb_audio_device_name usb_audio_names[] = {PROFILE_NAME (0x0bda ,0x4014 ,"Dell" ,"WD15 Dock" ,"Dell-WD15-Dock" ),/* Dell WD19 Dock */ PROFILE_NAME (0x0bda ,0x402e ,"Dell" ,"WD19 Dock" ,"Dell-WD15-Dock" ), +/* Dell Desktop - Front */ +PROFILE_NAME (0x0bda ,0x4c54 ,"Dell" ,"Desktop" ,"Dell-Desktop-Front" ), +/* Dell Desktop - Rear */ + PROFILE_NAME(0x0bda, 0x4c55, "Dell", "Desktop", "Dell-Desktop-Rear"),
IMO, the profile name sounds too generic. It's better to have with some model name at least so that it can be identified more uniquely.
thanks,
Takashi
Jaroslav Kysela
maintainerQuoted 3 lines · On 11. 11. 21 10:19, [email protected] wrote:
From: Shuming Fan <[email protected]>
Add the profile name to let userspace pick correct UCM profile
It's no longer necessary to force the card names in the drivers. UCM can match the USB vendor / device IDs from the 'components' string, too.
I think that we should abandon this way of the UCM configuration selection for new devices with device IDs. The kernel already exports necessary information to select the right UCM configuration in the user space.
Jaroslav
Quoted 20 lines
Signed-off-by Shuming Fan <[email protected]>--- sound/usb/card.c | 4 ++++ 1 file changed, 4 insertions(+)sound/usb/card.c +4
-0@@ -398,6 +398,10 @@ static const struct usb_audio_device_name usb_audio_names[] = {PROFILE_NAME (0x0bda ,0x4014 ,"Dell" ,"WD15 Dock" ,"Dell-WD15-Dock" ),/* Dell WD19 Dock */ PROFILE_NAME (0x0bda ,0x402e ,"Dell" ,"WD19 Dock" ,"Dell-WD15-Dock" ), +/* Dell Desktop - Front */ +PROFILE_NAME (0x0bda ,0x4c54 ,"Dell" ,"Desktop" ,"Dell-Desktop-Front" ), +/* Dell Desktop - Rear */ +PROFILE_NAME (0x0bda ,0x4c55 ,"Dell" ,"Desktop" ,"Dell-Desktop-Rear" ), DEVICE_NAME(0x0ccd, 0x0028, "TerraTec", "Aureon5.1MkII"),
Signature · 2 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
Jaroslav Kysela
maintainerQuoted 11 lines · Jaroslav Kysela
Quoted 3 lines · On 11. 11. 21 10:19, [email protected] wrote:
From: Shuming Fan <[email protected]>
Add the profile name to let userspace pick correct UCM profile
It's no longer necessary to force the card names in the drivers. UCM can match the USB vendor / device IDs from the 'components' string, too.
I think that we should abandon this way of the UCM configuration selection for new devices with device IDs. The kernel already exports necessary information to select the right UCM configuration in the user space.
Untested example:
https://github.com/perexg/alsa-ucm-conf/commit/74ced65440b5011bbec1680b2804c8a9c82b5152
Jaroslav
Signature · 2 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
Hi Jaroslav,
Quoted 12 lines · Jaroslav Kysela
Quoted 11 lines · On 11. 11. 21 10:19, [email protected] wrote:
Quoted 3 lines
From: Shuming Fan <[email protected]>
Add the profile name to let userspace pick correct UCM profile
It's no longer necessary to force the card names in the drivers. UCM can match the USB vendor / device IDs from the 'components' string, too.
I think that we should abandon this way of the UCM configuration selection for new devices with device IDs. The kernel already exports necessary information to select the right UCM configuration in the user
Quoted 8 lines
space.
Untested example:
https://github.com/perexg/alsa-ucm-conf/commit/74ced65440b5011bbec1680
b2804c8a9c82b5152Jaroslav
Thanks a lot. I will take your example to test.
Quoted 4 lines
--
Jaroslav Kysela <[email protected]>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc. ------Please consider the environment before printing this e-mail.
Hi Jaroslav,
Quoted 14 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Add the profile name to let userspace pick correct UCM profile
It's no longer necessary to force the card names in the drivers. UCM can match the USB vendor / device IDs from the 'components' string, too.
Quoted 9 lines
Quoted 4 lines
I think that we should abandon this way of the UCM configuration selection for new devices with device IDs. The kernel already exports necessary information to select the right UCM configuration in the user
space.
Untested example:
Quoted 6 lines
https://github.com/perexg/alsa-ucm-conf/commit/74ced65440b5011bbec1680
Quoted 3 lines
b2804c8a9c82b5152Jaroslav
Thanks a lot. I will take your example to test.
I had tested with USB-Audio.conf that the system seems not to apply the UCM config.
The related info of the test machine shows below.
root@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xcc338000 irq 153
1 [Rear ]: USB-Audio - USB audio Rear
Generic USB audio Rear at usb-0000:00:14.0-2.2, high speed
2 [FRONT ]: USB-Audio - USB audio FRONT
Generic USB audio FRONT at usb-0000:00:14.0-2.1, high speedroot@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# alsaucm --version alsaucm: version 1.2.2
root@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 8564:4000 Transcend Information, Inc. RDF8 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0a5c:5842 Broadcom Corp. 58200 Bus 001 Device 002: ID 0bda:5532 Realtek Semiconductor Corp. Integrated_Webcam_HD Bus 001 Device 008: ID 04f3:0235 Elan Microelectronics Corp. Optical Mouse Bus 001 Device 007: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory Bus 001 Device 006: ID 0bda:4c55 Realtek Semiconductor Corp. USB2.0 Hub Bus 001 Device 009: ID 0bda:4c54 Realtek Semiconductor Corp.
May I ask you to give me some suggestions?
Quoted 46 lines · Shuming [范書銘]
Hi Jaroslav,
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Quoted 1 line
Add the profile name to let userspace pick correct UCM profile
It's no longer necessary to force the card names in the drivers. UCM can match the USB vendor / device IDs from the 'components' string, too.
I think that we should abandon this way of the UCM configuration selection for new devices with device IDs. The kernel already exports necessary information to select the right UCM configuration in the user
space.
Quoted 8 lines
Quoted 3 lines
Untested example:
https://github.com/perexg/alsa-ucm-conf/commit/74ced65440b5011bbec1680
Quoted 3 lines
b2804c8a9c82b5152Jaroslav
Thanks a lot. I will take your example to test.
I had tested with USB-Audio.conf that the system seems not to apply the UCM config.
The related info of the test machine shows below.
root@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# cat /proc/asound/cards 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0xcc338000 irq 153 1 [Rear ]: USB-Audio - USB audio Rear Generic USB audio Rear at usb-0000:00:14.0-2.2, high speed 2 [FRONT ]: USB-Audio - USB audio FRONT Generic USB audio FRONT at usb-0000:00:14.0-2.1, high speedroot@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# alsaucm --version alsaucm: version 1.2.2root@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 8564:4000 Transcend Information, Inc. RDF8 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0a5c:5842 Broadcom Corp. 58200 Bus 001 Device 002: ID 0bda:5532 Realtek Semiconductor Corp. Integrated_Webcam_HD Bus 001 Device 008: ID 04f3:0235 Elan Microelectronics Corp. Optical Mouse Bus 001 Device 007: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory Bus 001 Device 006: ID 0bda:4c55 Realtek Semiconductor Corp. USB2.0 Hub Bus 001 Device 009: ID 0bda:4c54 Realtek Semiconductor Corp.
Quoted 1 line
May I ask you to give me some suggestions?
Looks like the alsa-lib in the ubuntu 20.04 doesn't support it.
Quoted 1 line
Jaroslav Kysela
maintainerQuoted 48 lines · Hui Wang
Quoted 46 lines · Shuming [范書銘]
Hi Jaroslav,
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Quoted 1 line
Add the profile name to let userspace pick correct UCM profile
It's no longer necessary to force the card names in the drivers. UCM can match the USB vendor / device IDs from the 'components' string, too.
I think that we should abandon this way of the UCM configuration selection for new devices with device IDs. The kernel already exports necessary information to select the right UCM configuration in the user
space.
Quoted 8 lines
Quoted 3 lines
Untested example:
https://github.com/perexg/alsa-ucm-conf/commit/74ced65440b5011bbec1680
Quoted 3 lines
b2804c8a9c82b5152Jaroslav
Thanks a lot. I will take your example to test.
I had tested with USB-Audio.conf that the system seems not to apply the UCM config.
The related info of the test machine shows below.
root@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# cat /proc/asound/cards 0 [PCH ]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0xcc338000 irq 153 1 [Rear ]: USB-Audio - USB audio Rear Generic USB audio Rear at usb-0000:00:14.0-2.2, high speed 2 [FRONT ]: USB-Audio - USB audio FRONT Generic USB audio FRONT at usb-0000:00:14.0-2.1, high speedroot@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# alsaucm --version alsaucm: version 1.2.2root@Latitude-5410:/usr/share/alsa/ucm2/USB-Audio# lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 8564:4000 Transcend Information, Inc. RDF8 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0a5c:5842 Broadcom Corp. 58200 Bus 001 Device 002: ID 0bda:5532 Realtek Semiconductor Corp. Integrated_Webcam_HD Bus 001 Device 008: ID 04f3:0235 Elan Microelectronics Corp. Optical Mouse Bus 001 Device 007: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory Bus 001 Device 006: ID 0bda:4c55 Realtek Semiconductor Corp. USB2.0 Hub Bus 001 Device 009: ID 0bda:4c54 Realtek Semiconductor Corp.
Quoted 2 lines
Quoted 1 line
May I ask you to give me some suggestions?
Looks like the alsa-lib in the ubuntu 20.04 doesn't support it.
I cannot comment specific distribution packages. It seems that alsa-lib-1.2.2 in Ubuntu has many later UCM upstream changes, but I cannot verify, if it's enough for this file. I would recommend to use upstream alsa-lib and alsa-ucm-conf 1.2.5 or later (from the repository) for tests.
Also, please, create an issue or pull request on github for this problem:
https://github.com/alsa-project/alsa-ucm-conf/issues
We can resolve it there.
Jaroslav
Signature · 2 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
Quoted 6 lines · Jaroslav Kysela
Quoted 3 lines · On 11. 11. 21 10:19, [email protected] wrote:
From: Shuming Fan <[email protected]>
Add the profile name to let userspace pick correct UCM profile
Quoted 8 lines
It's no longer necessary to force the card names in the drivers. UCM can match the USB vendor / device IDs from the 'components' string, too.
I think that we should abandon this way of the UCM configuration selection for new devices with device IDs. The kernel already exports necessary information to select the right UCM configuration in the user space.
Sounds reasonable. Less changes in kernel, better :)
Thanks!
Takashi