Linux Sound subsystem development
 help / color / mirror / Atom feed
* [RFC]sound:usb:mixer.c: Solving 'Generic AB13X USB Audio' Unlikely volume range.
@ 2025-09-29 13:37 Sidharth Seela
  2025-09-29 15:20 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Sidharth Seela @ 2025-09-29 13:37 UTC (permalink / raw)
  To: perex, tiwai, zhujun2, kuninori.morimoto.gx; +Cc: linux-sound, linux-kernel

Dear Maintainers,
I am using a generic "boat" make earphones, which are too loud across
different systems with eg: iOS, macOS, Debian Linux. And hence I believe
the issue is not with a driver but the headphones.

After connecting this device to laptop I get the following in dmesg logs:
	usb 1-5: New USB device found, idVendor=001f, idProduct=0b21, bcdDevice= 1.00
	usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
	usb 1-5: Product: AB13X USB Audio
	usb 1-5: Manufacturer: Generic
	usb 1-5: SerialNumber: 20210726905926
	usb 1-5: Warning! Unlikely big volume range (=11520), cval->res is probably wrong.
	usb 1-5: [2] FU [PCM Playback Volume] ch = 2, val = -11520/0/1
	usb 1-5: Warning! Unlikely big volume range (=8191), cval->res is probably wrong.
	usb 1-5: [5] FU [Mic Capture Volume] ch = 1, val = 0/8191/1

By using pavucontrol, I am able to get fair sound, after reducing 17dB in
Analog Stereo Output and reducing 6dB in Digital Stereo Output.

I believe this issue could be solved by adding a quirk patch to
sound/usb/mixer.c:1096 (/* volume control quriks */).


BR,
Sidharth Seela

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC]sound:usb:mixer.c: Solving 'Generic AB13X USB Audio' Unlikely volume range.
  2025-09-29 13:37 [RFC]sound:usb:mixer.c: Solving 'Generic AB13X USB Audio' Unlikely volume range Sidharth Seela
@ 2025-09-29 15:20 ` Takashi Iwai
  2025-09-30 13:46   ` Sidharth Seela
  0 siblings, 1 reply; 3+ messages in thread
From: Takashi Iwai @ 2025-09-29 15:20 UTC (permalink / raw)
  To: Sidharth Seela
  Cc: perex, tiwai, zhujun2, kuninori.morimoto.gx, linux-sound,
	linux-kernel

On Mon, 29 Sep 2025 15:37:52 +0200,
Sidharth Seela wrote:
> 
> Dear Maintainers,
> I am using a generic "boat" make earphones, which are too loud across
> different systems with eg: iOS, macOS, Debian Linux. And hence I believe
> the issue is not with a driver but the headphones.
> 
> After connecting this device to laptop I get the following in dmesg logs:
> 	usb 1-5: New USB device found, idVendor=001f, idProduct=0b21, bcdDevice= 1.00
> 	usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> 	usb 1-5: Product: AB13X USB Audio
> 	usb 1-5: Manufacturer: Generic
> 	usb 1-5: SerialNumber: 20210726905926
> 	usb 1-5: Warning! Unlikely big volume range (=11520), cval->res is probably wrong.
> 	usb 1-5: [2] FU [PCM Playback Volume] ch = 2, val = -11520/0/1
> 	usb 1-5: Warning! Unlikely big volume range (=8191), cval->res is probably wrong.
> 	usb 1-5: [5] FU [Mic Capture Volume] ch = 1, val = 0/8191/1
> 
> By using pavucontrol, I am able to get fair sound, after reducing 17dB in
> Analog Stereo Output and reducing 6dB in Digital Stereo Output.
> 
> I believe this issue could be solved by adding a quirk patch to
> sound/usb/mixer.c:1096 (/* volume control quriks */).

An oft-seen firmware bug is that it provides the wrong mixer range
that confuses the driver.  USB audio firmware should provide the above
volume range in 1/256 dB level.

Try to figure out the volume level and you'd need to hard-code the
actual volume range there for your device.


Takashi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC]sound:usb:mixer.c: Solving 'Generic AB13X USB Audio' Unlikely volume range.
  2025-09-29 15:20 ` Takashi Iwai
@ 2025-09-30 13:46   ` Sidharth Seela
  0 siblings, 0 replies; 3+ messages in thread
From: Sidharth Seela @ 2025-09-30 13:46 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: perex, tiwai, zhujun2, kuninori.morimoto.gx, linux-sound,
	linux-kernel

Thankyou Takashi for your reply,

On Mon, Sep 29, 2025 at 8:51 PM Takashi Iwai <tiwai@suse.de> wrote:
> An oft-seen firmware bug is that it provides the wrong mixer range
> that confuses the driver.  USB audio firmware should provide the above
> volume range in 1/256 dB level.

If possible, could you explain/ point me to a doc regarding cval->max,
cval->min,
and cval->res and its meanings, its relation to power and dB.


> Try to figure out the volume level and you'd need to hard-code the
> actual volume range there for your device
.
I am able to change the values and load in the module. But unable to exactly
understand how the values are related.

-- 
Thanks,
Sidharth Seela
www.realtimedesign.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-30 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-29 13:37 [RFC]sound:usb:mixer.c: Solving 'Generic AB13X USB Audio' Unlikely volume range Sidharth Seela
2025-09-29 15:20 ` Takashi Iwai
2025-09-30 13:46   ` Sidharth Seela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox