* [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device
@ 2025-01-15 6:45 胡连勤
2025-01-15 8:02 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: 胡连勤 @ 2025-01-15 6:45 UTC (permalink / raw)
To: perex@perex.cz, tiwai@suse.com, lina@asahilina.net,
mbarriolinares@gmail.com, wangdicheng@kylinos.cn,
cyan.vtb@gmail.com, dan.carpenter@linaro.org, bsevens@google.com
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
胡连勤
From: Lianqin Hu <hulianqin@vivo.com>
Audio control requests that sets sampling frequency sometimes fail on
this card. Adding delay between control messages eliminates that problem.
Signed-off-by: Lianqin Hu <hulianqin@vivo.com>
---
sound/usb/quirks.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 8ba0aff8be2e..7968d6a2f592 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -2239,6 +2239,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
QUIRK_FLAG_CTL_MSG_DELAY_1M),
DEVICE_FLG(0x0c45, 0x6340, /* Sonix HD USB Camera */
QUIRK_FLAG_GET_SAMPLE_RATE),
+ DEVICE_FLG(0x0d8c, 0x0014, /* USB Audio Device */
+ QUIRK_FLAG_CTL_MSG_DELAY_1M),
DEVICE_FLG(0x0ecb, 0x205c, /* JBL Quantum610 Wireless */
QUIRK_FLAG_FIXED_RATE),
DEVICE_FLG(0x0ecb, 0x2069, /* JBL Quantum810 Wireless */
--
2.39.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device
2025-01-15 6:45 [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device 胡连勤
@ 2025-01-15 8:02 ` Takashi Iwai
2025-01-15 8:30 ` 答复: " 胡连勤
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2025-01-15 8:02 UTC (permalink / raw)
To: 胡连勤
Cc: perex@perex.cz, tiwai@suse.com, lina@asahilina.net,
mbarriolinares@gmail.com, wangdicheng@kylinos.cn,
cyan.vtb@gmail.com, dan.carpenter@linaro.org, bsevens@google.com,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
On Wed, 15 Jan 2025 07:45:33 +0100,
胡连勤 wrote:
>
> From: Lianqin Hu <hulianqin@vivo.com>
>
> Audio control requests that sets sampling frequency sometimes fail on
> this card. Adding delay between control messages eliminates that problem.
>
> Signed-off-by: Lianqin Hu <hulianqin@vivo.com>
Could you give a bit more specific name / model to both the subject
and the quirk comment? Then it'd be more helpful for people who read
/ check the changes later.
thanks,
Takashi
> ---
> sound/usb/quirks.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
> index 8ba0aff8be2e..7968d6a2f592 100644
> --- a/sound/usb/quirks.c
> +++ b/sound/usb/quirks.c
> @@ -2239,6 +2239,8 @@ static const struct usb_audio_quirk_flags_table quirk_flags_table[] = {
> QUIRK_FLAG_CTL_MSG_DELAY_1M),
> DEVICE_FLG(0x0c45, 0x6340, /* Sonix HD USB Camera */
> QUIRK_FLAG_GET_SAMPLE_RATE),
> + DEVICE_FLG(0x0d8c, 0x0014, /* USB Audio Device */
> + QUIRK_FLAG_CTL_MSG_DELAY_1M),
> DEVICE_FLG(0x0ecb, 0x205c, /* JBL Quantum610 Wireless */
> QUIRK_FLAG_FIXED_RATE),
> DEVICE_FLG(0x0ecb, 0x2069, /* JBL Quantum810 Wireless */
> --
> 2.39.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread* 答复: [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device
2025-01-15 8:02 ` Takashi Iwai
@ 2025-01-15 8:30 ` 胡连勤
2025-01-15 8:41 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: 胡连勤 @ 2025-01-15 8:30 UTC (permalink / raw)
To: Takashi Iwai
Cc: perex@perex.cz, tiwai@suse.com, lina@asahilina.net,
mbarriolinares@gmail.com, wangdicheng@kylinos.cn,
cyan.vtb@gmail.com, dan.carpenter@linaro.org, bsevens@google.com,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Hello linux kernel expert:
> On Wed, 15 Jan 2025 07:45:33 +0100,
> 胡连勤 wrote:
> >
> > From: Lianqin Hu <hulianqin@vivo.com>
> >
> > Audio control requests that sets sampling frequency sometimes fail on
> > this card. Adding delay between control messages eliminates that problem.
> >
> > Signed-off-by: Lianqin Hu <hulianqin@vivo.com>
>
> Could you give a bit more specific name / model to both the subject and the
> quirk comment? Then it'd be more helpful for people who read / check the
> changes later.
We used this sound card to connect to the phone, and only saw the following information in the log, without specific sound card model information:
usb 1-1: New USB device found, idVendor=0d8c, idProduct=0014, bcdDevice= 1.00
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: USB Audio Device
usb 1-1: Manufacturer: C-Media Electronics Inc.
usb 1-1: usb_probe_device
We currently do not have an effective way to obtain the detailed model of this sound card. We are very sorry.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: 答复: [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device
2025-01-15 8:30 ` 答复: " 胡连勤
@ 2025-01-15 8:41 ` Takashi Iwai
2025-01-15 8:46 ` 答复: " 胡连勤
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2025-01-15 8:41 UTC (permalink / raw)
To: 胡连勤
Cc: Takashi Iwai, perex@perex.cz, tiwai@suse.com, lina@asahilina.net,
mbarriolinares@gmail.com, wangdicheng@kylinos.cn,
cyan.vtb@gmail.com, dan.carpenter@linaro.org, bsevens@google.com,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
On Wed, 15 Jan 2025 09:30:14 +0100,
胡连勤 wrote:
>
> Hello linux kernel expert:
>
> > On Wed, 15 Jan 2025 07:45:33 +0100,
> > 胡连勤 wrote:
> > >
> > > From: Lianqin Hu <hulianqin@vivo.com>
> > >
> > > Audio control requests that sets sampling frequency sometimes fail on
> > > this card. Adding delay between control messages eliminates that problem.
> > >
> > > Signed-off-by: Lianqin Hu <hulianqin@vivo.com>
> >
> > Could you give a bit more specific name / model to both the subject and the
> > quirk comment? Then it'd be more helpful for people who read / check the
> > changes later.
>
> We used this sound card to connect to the phone, and only saw the following information in the log, without specific sound card model information:
>
> usb 1-1: New USB device found, idVendor=0d8c, idProduct=0014, bcdDevice= 1.00
> usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> usb 1-1: Product: USB Audio Device
> usb 1-1: Manufacturer: C-Media Electronics Inc.
> usb 1-1: usb_probe_device
>
> We currently do not have an effective way to obtain the detailed model of this sound card. We are very sorry.
Well, you can put such info in the patch description. It's already
helpful to know whether it's an an unknown / unnamed product.
thanks,
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
* 答复: 答复: [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device
2025-01-15 8:41 ` Takashi Iwai
@ 2025-01-15 8:46 ` 胡连勤
0 siblings, 0 replies; 5+ messages in thread
From: 胡连勤 @ 2025-01-15 8:46 UTC (permalink / raw)
To: Takashi Iwai
Cc: perex@perex.cz, tiwai@suse.com, lina@asahilina.net,
mbarriolinares@gmail.com, wangdicheng@kylinos.cn,
cyan.vtb@gmail.com, dan.carpenter@linaro.org, bsevens@google.com,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Hello linux kernel expert:
> > > >
> > > > From: Lianqin Hu <hulianqin@vivo.com>
> > > >
> > > > Audio control requests that sets sampling frequency sometimes fail
> > > > on this card. Adding delay between control messages eliminates that
> problem.
> > > >
> > > > Signed-off-by: Lianqin Hu <hulianqin@vivo.com>
> > >
> > > Could you give a bit more specific name / model to both the subject
> > > and the quirk comment? Then it'd be more helpful for people who
> > > read / check the changes later.
> >
> > We used this sound card to connect to the phone, and only saw the
> following information in the log, without specific sound card model
> information:
> >
> > usb 1-1: New USB device found, idVendor=0d8c, idProduct=0014,
> > bcdDevice= 1.00 usb 1-1: New USB device strings: Mfr=1, Product=2,
> > SerialNumber=0 usb 1-1: Product: USB Audio Device usb 1-1:
> > Manufacturer: C-Media Electronics Inc.
> > usb 1-1: usb_probe_device
> >
> > We currently do not have an effective way to obtain the detailed model of
> this sound card. We are very sorry.
>
> Well, you can put such info in the patch description. It's already helpful to
> know whether it's an an unknown / unnamed product.
OK, I will modify it and send a new patch.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-15 8:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 6:45 [PATCH] ALSA: usb-audio: Add delay quirk for USB Audio Device 胡连勤
2025-01-15 8:02 ` Takashi Iwai
2025-01-15 8:30 ` 答复: " 胡连勤
2025-01-15 8:41 ` Takashi Iwai
2025-01-15 8:46 ` 答复: " 胡连勤
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox