alsa-project / alsa-ucm-conf

ALSA Use Case Manager configuration
BSD 3-Clause "New" or "Revised" License
76 stars 218 forks source link

MSI MPG X570S EDGE MAX WIFI compatibility #172

Closed yhojann-cl closed 1 year ago

yhojann-cl commented 2 years ago

Please, add 0db0:151f to realtek-alc4080 chip compatibility in MPG X570S EDGE MAX WIFI motherboard in https://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/USB-Audio/USB-Audio.conf#L45 :

$ lsusb | grep 0db0
Bus 001 Device 003: ID 0db0:151f Micro Star International USB Audio

In ucm2/USB-Audio/USB-Audio.conf add 151f to regex of 0db0:

Regex "USB((0b05:(1996|1a2[07]))|(0db0:(1feb|419c|a073|151f)))"

My Motherboard is MSI X570S and output audio works fine but:

My alsa data: http://alsa-project.org/db/?f=e29a6593e48350efeba75f69d5ece62379973c35

yhojann-cl commented 2 years ago

Have apply the change in mi pc and restart it but can not dettect the hardware:

$ git clone https://github.com/alsa-project/alsa-ucm-conf;
$ rsync -tvrz --delete --links alsa-ucm-conf/ucm/ /usr/share/alsa/ucm/;
$ rsync -tvrz --delete --links alsa-ucm-conf/ucm2/ /usr/share/alsa/ucm2/;
$ reboot
...
$ pactl list
...
Placa #1
    Nombre: alsa_card.usb-Generic_USB_Audio-00
    Controlador: module-alsa-card.c
    Módulo propietario: 24
    Propiedades:
        alsa.card = "1"
        alsa.card_name = "USB Audio"
        alsa.long_card_name = "Generic USB Audio at usb-0000:2a:00.1-2, high speed"
        alsa.driver_name = "snd_usb_audio"
        device.bus_path = "pci-0000:2a:00.1-usb-0:2:1.0"
        sysfs.path = "/devices/pci0000:00/0000:00:01.2/0000:20:00.0/0000:21:08.0/0000:2a:00.1/usb1/1-2/1-2:1.0/sound/card1"
        udev.id = "usb-Generic_USB_Audio-00"
        device.bus = "usb"
        device.vendor.id = "0db0"
        device.vendor.name = "Micro Star International"
        device.product.id = "151f"
        device.product.name = "USB Audio"
        device.serial = "Generic_USB_Audio"
        device.string = "1"
        device.description = "USB Audio"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-usb"
...

The microphone and headphone does not work when plug, but when aplay and arecord dettect this interfaces:

I try change manualy in the /etc/pulse/default.pa and works but not by default in applications and need change manualy from gnome settings, when plug microphone select a bad hardware id and need change this.

perexg commented 2 years ago

I added your USB ID in 1f8b99dcec93e8b76e0ea0ec4d94874006d39033 . It would be nice, if you can test the latest ucm configuration.

yhojann-cl commented 1 year ago

Thanks to add the id to settings but has same results, input and output does not works.

$ git clone https://github.com/alsa-project/alsa-ucm-conf;
$ cat ./alsa-ucm-conf/VERSION
1.2.8
$ sudo rsync -tvrz --links --delete ./alsa-ucm-conf/ucm/ /usr/share/alsa/ucm/;
$ sudo rsync -tvrz --links --delete ./alsa-ucm-conf/ucm2/ /usr/share/alsa/ucm2/;
$ sudo alsaucm reload;
ALSA lib parser.c:2021:(parse_master_file) Incompatible syntax 6 in HDA-Intel.conf
ALSA lib main.c:1412:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -22
alsaucm: error failed to open sound card hw:0: Invalid argument

When I connect the headphones to the front connector (motherboard usb) it is not heard but the audio comes out through the speakers of the rear connector. The microphone does not work in either the rear or the front connector.

I buy a simple connector: https://articulo.mercadolibre.cl/MLC-954412749-tarjeta-adaptador-doble-sonido-usb-stereo-audio-microfono-_JM and works very fine, but when need use microphone can not use rear speakers, need connect the plug to the frontal connector.

The last diagnostic from alsa-info command: http://alsa-project.org/db/?f=7d2d309b95033d38784cbbd23854f5245c143d95

alexpagri commented 1 year ago

Hi, I got the exact same issue. Mb: MSI MAG Z790 TOMAHAWK WIFI ALC4080 id: 0db0:a74b - in case you will add it soon.

upmangaurav commented 1 year ago

Same issue on MSI B650M Mortar Wifi for Ubuntu.

perexg commented 1 year ago

All USB IDs from the issue were added to https://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/USB-Audio/USB-Audio.conf . Create another issue for your hardware with a full description of your problem.