Skip to content

Commit ab2165e

Browse files
tgurrtiwai
authored andcommitted
ALSA: usb-audio: Add dB range mapping for Sennheiser Communications Headset PC 8
The decibel volume range contains a negative maximum value resulting in pipewire complaining about the device and effectivly having no sound output. The wrong values also resulted in the headset sounding muted already at a mixer level of about ~25%. PipeWire BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1049 BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=212897 Signed-off-by: Timo Gurr <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 266fd99 commit ab2165e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sound/usb/mixer_maps.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,13 @@ static const struct usbmix_name_map bose_companion5_map[] = {
337337
{ 0 } /* terminator */
338338
};
339339

340+
/* Sennheiser Communications Headset [PC 8], the dB value is reported as -6 negative maximum */
341+
static const struct usbmix_dB_map sennheiser_pc8_dB = {-9500, 0};
342+
static const struct usbmix_name_map sennheiser_pc8_map[] = {
343+
{ 9, NULL, .dB = &sennheiser_pc8_dB },
344+
{ 0 } /* terminator */
345+
};
346+
340347
/*
341348
* Dell usb dock with ALC4020 codec had a firmware problem where it got
342349
* screwed up when zero volume is passed; just skip it as a workaround
@@ -593,6 +600,11 @@ static const struct usbmix_ctl_map usbmix_ctl_maps[] = {
593600
.id = USB_ID(0x17aa, 0x1046),
594601
.map = lenovo_p620_rear_map,
595602
},
603+
{
604+
/* Sennheiser Communications Headset [PC 8] */
605+
.id = USB_ID(0x1395, 0x0025),
606+
.map = sennheiser_pc8_map,
607+
},
596608
{ 0 } /* terminator */
597609
};
598610

0 commit comments

Comments
 (0)