Skip to content

Commit

Permalink
Rewrite mixer map for TRX40 Aorus Master
Browse files Browse the repository at this point in the history
The Aorus Xtreme uses the same ID for audio controller, but the
maps are very different. This successfully fixes all of the
audio jacks on the back.
  • Loading branch information
13r0ck committed Jun 15, 2023
1 parent c828436 commit d6fbaa6
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions sound/usb/mixer_maps.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,16 +433,25 @@ static const struct usbmix_connector_map trx40_mobo_connector_map[] = {

/* Rear panel + front mic on Gigabyte TRX40 Aorus Master with ALC1220-VB */
static const struct usbmix_name_map aorus_master_alc1220vb_map[] = {
{ 17, NULL }, /* OT, IEC958?, disabled */
{ 18, NULL }, /* OT, IEC958 - broken response, disabled */
{ 19, NULL, 12 }, /* FU, Input Gain Pad - broken response, disabled */
{ 16, "Line Out" }, /* OT */
{ 22, "Line Out Playback" }, /* FU */
{ 7, "Line" }, /* IT */
{ 19, "Line Capture" }, /* FU */
{ 8, "Mic" }, /* IT */
{ 20, "Mic Capture" }, /* FU */
{ 9, "Front Mic" }, /* IT */
{ 21, "Front Mic Capture" }, /* FU */
{ 11, "Headphone" }, /* OT */
{ 23, "Headphone Playback" }, /* FU */
{}
};

static const struct usbmix_connector_map aorus_master_alc1220vb_connector_map[] = {
{ 10, 16 }, /* (Back) Speaker */
{ 11, 17 }, /* Front Headphone */
{ 13, 7 }, /* Line */
{ 14, 8 }, /* Mic */
{ 15, 9 }, /* Front Mic */
{}
};

Expand Down Expand Up @@ -631,6 +640,7 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
{ /* Gigabyte TRX40 Aorus Master (rear panel + front mic) */
.id = USB_ID(0x0414, 0xa001),
.map = aorus_master_alc1220vb_map,
.connector_map = aorus_master_alc1220vb_connector_map,
},
{ /* Gigabyte TRX40 Aorus Pro WiFi */
.id = USB_ID(0x0414, 0xa002),
Expand Down

0 comments on commit d6fbaa6

Please sign in to comment.