Skip to contentSkip to conversation

ALSA: usb: mixer: volume quirk for CM102-A+/102S+

PATCH In review Federico Cuello 2 participants 4 messages May 6, 2018 – May 13, 2018 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: usb: mixer: volume quirk for CM102-A+/102S+

Currently it's not possible to set volume lower than 26% (it just mutes).

Also fixes this warning:

Warning! Unlikely big volume range (=9472), cval->res is probably wrong.
[13] FU [PCM Playback Volume] ch = 2, val = -9473/-1/1

, and volume works fine for full range.

---
 sound/usb/mixer.c | 8 ++++++++
 1 file changed, 8 insertions(+)
sound/usb/mixer.c +8 -0
index 344d7b069d59..bb5ab7a7dfa5 100644
@@ -967,6 +967,14 @@ static void volume_control_quirks(struct usb_mixer_elem_info *cval,
 		}
 		break;
 
+	case USB_ID(0x0d8c, 0x0103):
+		if (!strcmp(kctl->id.name, "PCM Playback Volume")) {
+			usb_audio_info(chip,
+				 "set volume quirk for CM102-A+/102S+\n");
+			cval->min = -256;
+		}
+		break;
+
 	case USB_ID(0x0471, 0x0101):
 	case USB_ID(0x0471, 0x0104):
 	case USB_ID(0x0471, 0x0105):
Signature · 1 line
2.17.0
#1 lore raw
Quoted 9 lines · Federico Cuello

Currently it's not possible to set volume lower than 26% (it just mutes).

Also fixes this warning:

Warning! Unlikely big volume range (=9472), cval->res is probably wrong.
[13] FU [PCM Playback Volume] ch = 2, val = -9473/-1/1

, and volume works fine for full range.

Could you give your sign-off? It's a formal process. Otherwise we can't merge anything.

thanks,

Takashi

#2 lore raw
Quoted 7 lines · Takashi Iwai
Quoted 5 lines · Federico Cuello

Currently it's not possible to set volume lower than 26% (it just mutes).

Also fixes this warning:

Quoted 8 lines
Quoted 5 lines

Warning! Unlikely big volume range (=9472), cval->res is probably
wrong.
[13] FU [PCM Playback Volume] ch = 2, val = -9473/-1/1

, and volume works fine for full range.

Could you give your sign-off? It's a formal process. Otherwise we can't merge anything.

Yes, sorry. I didn't know about that before but I already resent the signed-off patch on May 8, 2018.

Thanks a lot!
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#3 lore raw
Quoted 14 lines · Federico Cuello
Quoted 12 lines · Takashi Iwai
Quoted 10 lines · Federico Cuello

Currently it's not possible to set volume lower than 26% (it just mutes).

Also fixes this warning:

Warning! Unlikely big volume range (=9472), cval->res is probably
wrong.
[13] FU [PCM Playback Volume] ch = 2, val = -9473/-1/1

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

, and volume works fine for full range.

Could you give your sign-off? It's a formal process. Otherwise we can't merge anything.

Yes, sorry. I didn't know about that before but I already resent the signed-off patch on May 8, 2018.

OK, now I saw it and applied it. But at the next time if such a thing happens, please put some prefix to indicate it's resending, e.g. [PATCH RESEND] or [PATCH v2].
Also, put maintainers (me) to Cc. In this way, it won't be missed.

thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel