Skip to content

Commit

Permalink
Adds an ALSA mapping for Gigabyte Pro WiFi Rev 2.1
Browse files Browse the repository at this point in the history
This patch was written by Takashi Iwai, I am just
commiting it into the pop-os kernel before this
is upstreamed
  • Loading branch information
13r0ck authored and jackpot51 committed Jun 16, 2022
1 parent 8e6d521 commit 5f41559
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions sound/usb/mixer_maps.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,31 @@ static const struct usbmix_name_map msi_mpg_x570s_carbon_max_wifi_alc4080_map[]
{}
};

/* Gigabyte B450/550 Mobo */
static const struct usbmix_name_map gigabyte_b450_map[] = {
{ 24, NULL }, /* OT, IEC958?, disabled */
{ 21, "Speaker" }, /* OT */
{ 29, "Speaker Playback" }, /* FU */
{ 22, "Headphone" }, /* OT */
{ 30, "Headphone Playback" }, /* FU */
{ 11, "Line" }, /* IT */
{ 27, "Line Capture" }, /* FU */
{ 12, "Mic" }, /* IT */
{ 28, "Mic Capture" }, /* FU */
{ 9, "Front Mic" }, /* IT */
{ 25, "Front Mic Capture" }, /* FU */
{}
};

static const struct usbmix_connector_map gigabyte_b450_connector_map[] = {
{ 13, 21 }, /* Speaker */
{ 14, 22 }, /* Headphone */
{ 19, 11 }, /* Line */
{ 20, 12 }, /* Mic */
{ 17, 9 }, /* Front Mic */
{}
};

/*
* Control map entries
*/
Expand Down Expand Up @@ -581,6 +606,10 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
.map = trx40_mobo_map,
.connector_map = trx40_mobo_connector_map,
},
{ /* Gigabyte B450/550 Mobo */
.id = USB_ID(0x0414, 0xa00d),
.map = gigabyte_b450_map,
},
{ /* ASUS ROG Zenith II */
.id = USB_ID(0x0b05, 0x1916),
.map = asus_rog_map,
Expand Down

0 comments on commit 5f41559

Please sign in to comment.