Commit 41b3e5c
usb: gadget: u_audio: set volume value to uevent
Different Windwos version has different volume gain
range [0], set UAC_VOLUME_MAX/MIN to maximum according
UAC 1.0 spec. And Windows volume slider position /
Loundness is not linear [1], it's better to set
c/p_volume to uevent than percentage.
[0]: https://docs.microsoft.com/en-us/windows-hardware/drivers/audio/default-audio-volume-settings
[1]: https://docs.microsoft.com/en-us/windows/win32/coreaudio/audio-tapered-volume-controls
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I41d03cfe1d8d348720c89083707070c68a158bcb1 parent 71d16a0 commit 41b3e5c
2 files changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
691 | 690 | | |
692 | 691 | | |
693 | 692 | | |
| |||
736 | 735 | | |
737 | 736 | | |
738 | 737 | | |
739 | | - | |
740 | | - | |
741 | | - | |
| 738 | + | |
742 | 739 | | |
743 | 740 | | |
744 | 741 | | |
745 | 742 | | |
746 | 743 | | |
747 | | - | |
748 | | - | |
749 | | - | |
| 744 | + | |
750 | 745 | | |
751 | 746 | | |
752 | 747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
0 commit comments