Skip to content

Commit 48827e1

Browse files
hahnjotiwai
authored andcommitted
ALSA: usb-audio: Add quirk for VF0770
The device advertises 8 formats, but only a rate of 48kHz is honored by the hardware and 24 bits give chopped audio, so only report the one working combination. This fixes out-of-the-box audio experience with PipeWire which otherwise attempts to choose S24_3LE (while PulseAudio defaulted to S16_LE). Signed-off-by: Jonas Hahnfeld <hahnjo@hahnjo.de> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20211012200906.3492-1-hahnjo@hahnjo.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent b37a151 commit 48827e1

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

‎sound/usb/quirks-table.h‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,48 @@
7777
/* E-Mu 0204 USB */
7878
{ USB_DEVICE_VENDOR_SPEC(0x041e, 0x3f19) },
7979

80+
/*
81+
* Creative Technology, Ltd Live! Cam Sync HD [VF0770]
82+
* The device advertises 8 formats, but only a rate of 48kHz is honored by the
83+
* hardware and 24 bits give chopped audio, so only report the one working
84+
* combination.
85+
*/
86+
{
87+
USB_DEVICE(0x041e, 0x4095),
88+
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
89+
.ifnum = QUIRK_ANY_INTERFACE,
90+
.type = QUIRK_COMPOSITE,
91+
.data = &(const struct snd_usb_audio_quirk[]) {
92+
{
93+
.ifnum = 2,
94+
.type = QUIRK_AUDIO_STANDARD_MIXER,
95+
},
96+
{
97+
.ifnum = 3,
98+
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
99+
.data = &(const struct audioformat) {
100+
.formats = SNDRV_PCM_FMTBIT_S16_LE,
101+
.channels = 2,
102+
.fmt_bits = 16,
103+
.iface = 3,
104+
.altsetting = 4,
105+
.altset_idx = 4,
106+
.endpoint = 0x82,
107+
.ep_attr = 0x05,
108+
.rates = SNDRV_PCM_RATE_48000,
109+
.rate_min = 48000,
110+
.rate_max = 48000,
111+
.nr_rates = 1,
112+
.rate_table = (unsigned int[]) { 48000 },
113+
},
114+
},
115+
{
116+
.ifnum = -1
117+
},
118+
},
119+
},
120+
},
121+
80122
/*
81123
* HP Wireless Audio
82124
* When not ignored, causes instability issues for some users, forcing them to

0 commit comments

Comments
 (0)