Re: [PATCH v2 5/5] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-05-01 Thread Konrad Dybcio
On 5/1/25 8:48 AM, Luca Weiss wrote: > Enable USB audio offloading which allows to play audio via a USB-C > headset with lower power consumption and enabling some other features. > > This can be used like the following: > > $ amixer -c0 cset name='USB_RX Audio Mixer Mult

[PATCH v2 5/5] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-30 Thread Luca Weiss
Enable USB audio offloading which allows to play audio via a USB-C headset with lower power consumption and enabling some other features. This can be used like the following: $ amixer -c0 cset name='USB_RX Audio Mixer MultiMedia1' On $ aplay --device=plughw:0,0 test.wav Compared

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-29 Thread Konrad Dybcio
On 4/29/25 10:55 AM, Luca Weiss wrote: > On Mon Apr 28, 2025 at 11:43 PM CEST, Konrad Dybcio wrote: >> On 4/28/25 9:41 AM, Luca Weiss wrote: >>> On Fri Apr 25, 2025 at 11:06 PM CEST, Konrad Dybcio wrote: >>>> On 4/25/25 12:44 PM, Luca Weiss wrote: >>>>>

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-29 Thread Luca Weiss
On Mon Apr 28, 2025 at 11:43 PM CEST, Konrad Dybcio wrote: > On 4/28/25 9:41 AM, Luca Weiss wrote: >> On Fri Apr 25, 2025 at 11:06 PM CEST, Konrad Dybcio wrote: >>> On 4/25/25 12:44 PM, Luca Weiss wrote: >>>> Enable USB audio offloading which allows to play audio

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-28 Thread Konrad Dybcio
On 4/28/25 9:41 AM, Luca Weiss wrote: > On Fri Apr 25, 2025 at 11:06 PM CEST, Konrad Dybcio wrote: >> On 4/25/25 12:44 PM, Luca Weiss wrote: >>> Enable USB audio offloading which allows to play audio via a USB-C >>> headset with lower power consumption and e

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-28 Thread Konrad Dybcio
On 4/28/25 9:41 AM, Luca Weiss wrote: > On Fri Apr 25, 2025 at 11:06 PM CEST, Konrad Dybcio wrote: >> On 4/25/25 12:44 PM, Luca Weiss wrote: >>> Enable USB audio offloading which allows to play audio via a USB-C >>> headset with lower power consumption and e

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-28 Thread Luca Weiss
On Fri Apr 25, 2025 at 11:06 PM CEST, Konrad Dybcio wrote: > On 4/25/25 12:44 PM, Luca Weiss wrote: >> Enable USB audio offloading which allows to play audio via a USB-C >> headset with lower power consumption and enabling some other features. >> >> This can

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-25 Thread Konrad Dybcio
On 4/25/25 12:44 PM, Luca Weiss wrote: > Enable USB audio offloading which allows to play audio via a USB-C > headset with lower power consumption and enabling some other features. > > This can be used like the following: > > $ amixer -c0 cset name='USB_RX Audi

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 12:44:56PM +0200, Luca Weiss wrote: > Enable USB audio offloading which allows to play audio via a USB-C > headset with lower power consumption and enabling some other features. > > This can be used like the following: > > $ amixer -c0 cset name=&

[PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-25 Thread Luca Weiss
Enable USB audio offloading which allows to play audio via a USB-C headset with lower power consumption and enabling some other features. This can be used like the following: $ amixer -c0 cset name='USB_RX Audio Mixer MultiMedia1' On $ aplay --device=plughw:0,0 test.wav Compared

[PATCH 0/6] Enable USB audio offloading on Fairphone 4 smartphone

2025-04-25 Thread Luca Weiss
bdai node arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support .../devicetree/bindings/sound/qcom,q6afe.yaml | 13 .../devicetree/bindings/sound/qcom,sm8250.yaml | 1 + .../devicetree/bindings/usb/snps,dwc3-common.yaml | 4 +++ arch/arm64/boot/dts/qcom/sm

[PATCH 5.11 071/152] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

[PATCH 5.10 057/126] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

[PATCH 5.4 41/74] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

[PATCH 4.19 29/56] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

[PATCH 4.14 24/52] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

[PATCH 4.9 19/35] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

[PATCH 4.4 15/28] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-04-05 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 625bd5a616ceda4840cd28f82e957c8ced394b6a upstream. Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0

Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-03-29 Thread Takashi Iwai
we need to reconsider the delay > > length. > > I tested this Logitech device with various delays 2..20ms > in snd_usb_ctl_msg_quirk() but it didn't help. > > Disregarding the delay between control transfers, > This device is always stuck at get_cur, responding STALL

Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-03-28 Thread Ikjoon Jang
l transfers. [ 24.045618] usb 1-1.2.1.1: 1:1: cannot get freq at ep 0x82 [ 24.167475] usb 1-1.2.1.1: 2:0: cannot get min/max values for control 2 (id 2) [ 24.287393] usb 1-1.2.1.1: 6:0: cannot get min/max values for control 2 (id 6) [ 24.289854] usbcore: registered new interface driver snd-usb-aud

Re: [PATCH v3 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-26 Thread Takashi Iwai
On Thu, 25 Mar 2021 17:59:13 +0100, Kai-Heng Feng wrote: > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no > error and the other two functions of the USB audio, Line In and Line > Out, work just fine. > > The mic starts to work again after run

Re: [PATCH v3 1/2] ALSA: usb-audio: Carve out connector value checking into a helper

2021-03-26 Thread Takashi Iwai
On Thu, 25 Mar 2021 17:59:12 +0100, Kai-Heng Feng wrote: > > This is preparation for next patch, no functional change intended. > > Signed-off-by: Kai-Heng Feng Applied now. Thanks. Takashi > --- > v3: > - No change. > v2: > - Only return early when ret < 0. > > sound/usb/mixer.c | 34 +

Re: [PATCH] ALSA: usb-audio: Don't store returned value and check for errors

2021-03-26 Thread Takashi Iwai
On Thu, 25 Mar 2021 09:36:41 +0100, Muhammad Usama Anjum wrote: > > The returned value by create_autodetect_quirk isn't being used other > than in the success check on next line. Remove the return value > assignement. Check for error values instead of success check. > > Signed-off-by: Muhammad Us

[PATCH v3 1/2] ALSA: usb-audio: Carve out connector value checking into a helper

2021-03-25 Thread Kai-Heng Feng
This is preparation for next patch, no functional change intended. Signed-off-by: Kai-Heng Feng --- v3: - No change. v2: - Only return early when ret < 0. sound/usb/mixer.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/sound/usb/mixer.

[PATCH v3 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Kai-Heng Feng
Rear Mic on Lenovo P620 cannot record after S3, despite that there's no error and the other two functions of the USB audio, Line In and Line Out, work just fine. The mic starts to work again after running userspace app like "alsactl store". Following the lead, the evidence shows

Re: [PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Takashi Iwai
g wrote: > > > > > > > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no > > > > error and the other two functions of the USB audio, Line In and Line > > > > Out, work just fine. > > > > > > > > The mic

Re: [PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Kai-Heng Feng
t there's no > > > error and the other two functions of the USB audio, Line In and Line > > > Out, work just fine. > > > > > > The mic starts to work again after running userspace app like "alsactl > > > store". Following the lead, the evidenc

Re: [PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Kai-Heng Feng
On Thu, Mar 25, 2021 at 9:41 PM Takashi Iwai wrote: > > On Thu, 25 Mar 2021 13:12:48 +0100, > Kai-Heng Feng wrote: > > > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no > > error and the other two functions of the USB audio, Line In

Re: [PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Takashi Iwai
On Thu, 25 Mar 2021 13:12:48 +0100, Kai-Heng Feng wrote: > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no > error and the other two functions of the USB audio, Line In and Line > Out, work just fine. > > The mic starts to work again after run

[PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Kai-Heng Feng
Rear Mic on Lenovo P620 cannot record after S3, despite that there's no error and the other two functions of the USB audio, Line In and Line Out, work just fine. The mic starts to work again after running userspace app like "alsactl store". Following the lead, the evidence shows

[PATCH v2 1/2] ALSA: usb-audio: Carve out connector value checking into a helper

2021-03-25 Thread Kai-Heng Feng
This is preparation for next patch, no functional change intended. Signed-off-by: Kai-Heng Feng --- v2: - Only return early when ret < 0. sound/usb/mixer.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/sound/usb/mixer.c b/sound/usb/mixe

Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-03-25 Thread Joakim Tjernlund
tually the delay applied to Logitech devices is from 1 to 2ms, not > 20ms. The 20ms delay is applied for some other devices. But if > extending the delay fixes the problem, we need to reconsider the delay > length. > There are a lot of devices USB Audio devices that need that 1-2

[PATCH] ALSA: usb-audio: Don't store returned value and check for errors

2021-03-25 Thread Muhammad Usama Anjum
The returned value by create_autodetect_quirk isn't being used other than in the success check on next line. Remove the return value assignement. Check for error values instead of success check. Signed-off-by: Muhammad Usama Anjum --- sound/usb/quirks.c | 6 +++--- 1 file changed, 3 insertions(+

Re: [PATCH 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Kai-Heng Feng
On Thu, Mar 25, 2021 at 3:19 PM Takashi Iwai wrote: > > On Wed, 24 Mar 2021 18:14:08 +0100, > Kai-Heng Feng wrote: > > > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no > > error and the other two functions of the USB audio, Line In

Re: [PATCH 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Takashi Iwai
On Wed, 24 Mar 2021 18:14:08 +0100, Kai-Heng Feng wrote: > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no > error and the other two functions of the USB audio, Line In and Line > Out, work just fine. > > The mic starts to work again after run

Re: [PATCH] ALSA: usb-audio: Fix missing return assignment

2021-03-25 Thread Dan Carpenter
On Thu, Mar 25, 2021 at 01:24:23AM +0500, Muhammad Usama Anjum wrote: > On Wed, 2021-03-24 at 21:50 +0300, Dan Carpenter wrote: > > > - usb_driver_claim_interface(driver, iface, (void *)-1L); > > > + err = usb_driver_claim_interface(driver, iface, (void > > > *)-1L)

Re: [PATCH] ALSA: usb-audio: Fix missing return assignment

2021-03-24 Thread Muhammad Usama Anjum
On Wed, 2021-03-24 at 21:50 +0300, Dan Carpenter wrote: > On Wed, Mar 24, 2021 at 10:26:04PM +0500, Muhammad Usama Anjum wrote: > > Return value of usb_driver_claim_interface should not be ignored. > > Instead it should be stored in err variable and returned from > > this function. > > > > Signed-

Re: [PATCH] ALSA: usb-audio: Fix missing return assignment

2021-03-24 Thread Dan Carpenter
On Wed, Mar 24, 2021 at 10:26:04PM +0500, Muhammad Usama Anjum wrote: > Return value of usb_driver_claim_interface should not be ignored. > Instead it should be stored in err variable and returned from > this function. > > Signed-off-by: Muhammad Usama Anjum > --- > sound/usb/quirks.c | 4 ++-- >

[PATCH] ALSA: usb-audio: Fix missing return assignment

2021-03-24 Thread Muhammad Usama Anjum
Return value of usb_driver_claim_interface should not be ignored. Instead it should be stored in err variable and returned from this function. Signed-off-by: Muhammad Usama Anjum --- sound/usb/quirks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/usb/quirks.c b/s

[PATCH 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-24 Thread Kai-Heng Feng
Rear Mic on Lenovo P620 cannot record after S3, despite that there's no error and the other two functions of the USB audio, Line In and Line Out, work just fine. The mic starts to work again after running userspace app like "alsactl store". Following the lead, the evidence shows

[PATCH 1/2] ALSA: usb-audio: Carve out connector value checking into a helper

2021-03-24 Thread Kai-Heng Feng
This is preparation for next patch, no functional change intended. Signed-off-by: Kai-Heng Feng --- sound/usb/mixer.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index b004b2e63a5d..98f5417a70e4 100

Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-03-24 Thread Takashi Iwai
On Wed, 24 Mar 2021 13:03:14 +0100, Ikjoon Jang wrote: > > On Wed, Mar 24, 2021, 7:16 PM Joakim Tjernlund > wrote: > > On Wed, 2021-03-24 at 18:51 +0800, Ikjoon Jang wrote: > > Logitech ConferenceCam Connect is a compound USB device with UVC and > > UAC. Not 100% reproducible but som

Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-03-24 Thread Joakim Tjernlund
On Wed, 2021-03-24 at 18:51 +0800, Ikjoon Jang wrote: > Logitech ConferenceCam Connect is a compound USB device with UVC and > UAC. Not 100% reproducible but sometimes it keeps responding STALL to > every control transfer once it receives get_freq request. > > This patch adds 046d:0x084c to a snd_

[PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-03-24 Thread Ikjoon Jang
Logitech ConferenceCam Connect is a compound USB device with UVC and UAC. Not 100% reproducible but sometimes it keeps responding STALL to every control transfer once it receives get_freq request. This patch adds 046d:0x084c to a snd_usb_get_sample_rate_quirk list. Bugzilla: https://bugzilla.kern

Re: [PATCH 0/8] USB Audio Gadget part 2: Feedback endpoint, Volume/Mute support

2021-03-23 Thread Greg Kroah-Hartman
/Mute of the Host making it > closer to a real USB Audio card. > > This patch set should be applied on top of USB Audio Gadget > part 1 fixes/improvements that I've sent previously to the > mailing list [2] This series did not apply to my tree (except for the first patch). Can you rebase it on my usb-testing branch and resend? thanks, greg k-h

[PATCH 5.10 035/157] ALSA: usb-audio: Fix unintentional sign extension issue

2021-03-22 Thread Greg Kroah-Hartman
the upper 32 bits of the unsigned long will end up as also being set because of the sign-extension. Fix this by casting device to an unsigned long before the shift. Addresses-Coverity: ("Unintended sign extension") Fixes: a07df82c7990 ("ALSA: usb-audio: Add DJM750 to Pioneer mixer

[PATCH 5.11 040/120] ALSA: usb-audio: Fix unintentional sign extension issue

2021-03-22 Thread Greg Kroah-Hartman
the upper 32 bits of the unsigned long will end up as also being set because of the sign-extension. Fix this by casting device to an unsigned long before the shift. Addresses-Coverity: ("Unintended sign extension") Fixes: a07df82c7990 ("ALSA: usb-audio: Add DJM750 to Pioneer mixer

[PATCH 5.10 12/13] ALSA: usb-audio: Dont avoid stopping the stream at disconnection

2021-03-19 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 257d2d7e9e798305d65825cb82b0a7d1c0511e89 upstream In the later patch, we're going to issue the PCM sync_stop calls at disconnection. But currently the USB-audio driver can't handle it because it has a check of shutdown flag for stopping the URBs. This is

Re: [PATCH] ALSA: usb-audio: Fix unintentional sign extension issue

2021-03-18 Thread Takashi Iwai
is > set then all then all the upper 32 bits of the unsigned long will > end up as also being set because of the sign-extension. Fix this > by casting device to an unsigned long before the shift. > > Addresses-Coverity: ("Unintended sign extension") > Fixes: a07df82

[PATCH] ALSA: usb-audio: Fix unintentional sign extension issue

2021-03-18 Thread Colin King
being set because of the sign-extension. Fix this by casting device to an unsigned long before the shift. Addresses-Coverity: ("Unintended sign extension") Fixes: a07df82c7990 ("ALSA: usb-audio: Add DJM750 to Pioneer mixer quirk") Signed-off-by: Colin Ian King --- sound/us

[PATCH 5.10 182/290] ALSA: usb-audio: fix use after free in usb_audio_disconnect

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Pavel Skripkin commit c5aa956eaeb05fe87e33433d7fd9f5e4d23c7416 upstream. The problem was in wrong "if" placement. chip->quirk_type is freed in snd_card_free_when_closed(), but inside if statement it's accesed. Fixes: 9799110825db ("ALSA:

[PATCH 5.11 173/306] ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Kai-Heng Feng commit 9799110825dba087c2bdce886977cf84dada2005 upstream. Rear audio on Lenovo ThinkStation P620 stops working after commit 1965c4364bdd ("ALSA: usb-audio: Disable autosuspend for Lenovo ThinkStation P620"): [6.013526] usbcore: regi

[PATCH 5.11 175/306] ALSA: usb-audio: fix use after free in usb_audio_disconnect

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Pavel Skripkin commit c5aa956eaeb05fe87e33433d7fd9f5e4d23c7416 upstream. The problem was in wrong "if" placement. chip->quirk_type is freed in snd_card_free_when_closed(), but inside if statement it's accesed. Fixes: 9799110825db ("ALSA:

[PATCH 5.11 174/306] ALSA: usb-audio: fix NULL ptr dereference in usb_audio_probe

2021-03-15 Thread gregkh
ed-by: syzbot+719da9b149a931f51...@syzkaller.appspotmail.com Fixes: 9799110825db ("ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()") Signed-off-by: Pavel Skripkin Cc: Link: https://lore.kernel.org/r/f1ebad6e721412843bd1b1258c0a63c6b2fb.1615242

[PATCH 5.10 181/290] ALSA: usb-audio: fix NULL ptr dereference in usb_audio_probe

2021-03-15 Thread gregkh
ed-by: syzbot+719da9b149a931f51...@syzkaller.appspotmail.com Fixes: 9799110825db ("ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()") Signed-off-by: Pavel Skripkin Cc: Link: https://lore.kernel.org/r/f1ebad6e721412843bd1b1258c0a63c6b2fb.1615242

[PATCH 5.10 179/290] ALSA: usb-audio: Apply the control quirk to Plantronics headsets

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 06abcb18b3a021ba1a3f2020cbefb3ed04e59e72 upstream. Other Plantronics headset models seem requiring the same workaround as C320-M to add the 20ms delay for the control messages, too. Apply the workaround generically for devices with the vendor

[PATCH 5.10 178/290] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk(). BugL

[PATCH 5.10 180/290] ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Kai-Heng Feng commit 9799110825dba087c2bdce886977cf84dada2005 upstream. Rear audio on Lenovo ThinkStation P620 stops working after commit 1965c4364bdd ("ALSA: usb-audio: Disable autosuspend for Lenovo ThinkStation P620"): [6.013526] usbcore: regi

[PATCH 5.11 172/306] ALSA: usb-audio: Apply the control quirk to Plantronics headsets

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 06abcb18b3a021ba1a3f2020cbefb3ed04e59e72 upstream. Other Plantronics headset models seem requiring the same workaround as C320-M to add the 20ms delay for the control messages, too. Apply the workaround generically for devices with the vendor

[PATCH 5.11 171/306] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk(). BugL

[PATCH 4.19 063/120] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk(). BugL

[PATCH 4.19 064/120] ALSA: usb-audio: Apply the control quirk to Plantronics headsets

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 06abcb18b3a021ba1a3f2020cbefb3ed04e59e72 upstream. Other Plantronics headset models seem requiring the same workaround as C320-M to add the 20ms delay for the control messages, too. Apply the workaround generically for devices with the vendor

[PATCH 5.4 094/168] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk(). BugL

[PATCH 5.4 095/168] ALSA: usb-audio: Apply the control quirk to Plantronics headsets

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 06abcb18b3a021ba1a3f2020cbefb3ed04e59e72 upstream. Other Plantronics headset models seem requiring the same workaround as C320-M to add the 20ms delay for the control messages, too. Apply the workaround generically for devices with the vendor

[PATCH 4.14 44/95] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk(). BugL

[PATCH 4.9 27/78] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk(). BugL

[PATCH 4.4 27/75] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk(). BugL

[PATCH 5.10 42/49] ALSA: usb-audio: add mixer quirks for Pioneer DJM-900NXS2

2021-03-10 Thread gregkh
From: Greg Kroah-Hartman From: Fabian Lesniak [ Upstream commit fee03efc69345344c8851596d74d93199b175bfe ] This commit adds mixer quirks for the Pioneer DJM-900NXS2 mixer. This device has 6 capture channels, 5 of them allow setting the signal source. This adds controls for these, similar to th

[PATCH 5.10 41/49] ALSA: usb-audio: Add DJM750 to Pioneer mixer quirk

2021-03-10 Thread gregkh
From: Greg Kroah-Hartman From: Olivia Mackintosh [ Upstream commit a07df82c799013236aa90a140785775eda9f9523 ] This allows for N different devices to use the pioneer mixer quirk for setting capture/record type and recording level. The impementation has not changed much with the exception of an

[PATCH 5.11 28/36] ALSA: usb-audio: add mixer quirks for Pioneer DJM-900NXS2

2021-03-10 Thread gregkh
From: Greg Kroah-Hartman From: Fabian Lesniak [ Upstream commit fee03efc69345344c8851596d74d93199b175bfe ] This commit adds mixer quirks for the Pioneer DJM-900NXS2 mixer. This device has 6 capture channels, 5 of them allow setting the signal source. This adds controls for these, similar to th

[PATCH 5.11 27/36] ALSA: usb-audio: Add DJM750 to Pioneer mixer quirk

2021-03-10 Thread gregkh
From: Greg Kroah-Hartman From: Olivia Mackintosh [ Upstream commit a07df82c799013236aa90a140785775eda9f9523 ] This allows for N different devices to use the pioneer mixer quirk for setting capture/record type and recording level. The impementation has not changed much with the exception of an

[PATCH 5.11 31/44] ALSA: usb-audio: Fix Pioneer DJM devices URB_CONTROL request direction to set samplerate

2021-03-08 Thread gregkh
From: Greg Kroah-Hartman From: Nicolas MURE [ Upstream commit 2c9119001dcb1dc7027257c5d8960d30f5ba58be ] This commit only contains the fix about the `URB_CONTROL` request direction to set the samplerate of Pioneer DJM devices (`URB_CONTROL out`). Fixes: 3b85f5fc75d5 ("ALSA: usb-audio

[PATCH 5.11 05/44] ALSA: usb-audio: Allow modifying parameters with succeeding hw_params calls

2021-03-08 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 5f5e6a3e8b1df52f79122e447855cffbf1710540 upstream. The recent fix for the hw constraints for implicit feedback streams via commit e4ea77f8e53f ("ALSA: usb-audio: Always apply the hw constraints for implicit fb sync") added the ch

[PATCH 5.11 04/44] ALSA: usb-audio: Drop bogus dB range in too low level

2021-03-08 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 21cba9c5359dd9d1bffe355336cfec0b66d1ee52 upstream. Some USB audio firmware seem to report broken dB values for the volume controls, and this screws up applications like PulseAudio who blindly trusts the given data. For example, Edifier G2000

[PATCH 5.11 02/44] ALSA: usb-audio: use Corsair Virtuoso mapping for Corsair Virtuoso SE

2021-03-08 Thread gregkh
From: Greg Kroah-Hartman From: Andrea Fagiani commit 11302bb69e72d0526bc626ee5c451a3d22cde904 upstream. The Corsair Virtuoso SE RGB Wireless is a USB headset with a mic and a sidetone feature. Assign the Corsair Virtuoso name map to the SE product ids as well, in order to label its mixer appro

[PATCH 5.11 03/44] ALSA: usb-audio: Dont abort even if the clock rate differs

2021-03-08 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit dcf269b3f703f5dbc2101824d9dbe95feed87b3d upstream. The commit 93db51d06b32 ("ALSA: usb-audio: Check valid altsetting at parsing rates for UAC2/3") changed the behavior of the function set_sample_rate_v2v3() slightly to treat the in

[PATCH 5.10 03/42] ALSA: usb-audio: Drop bogus dB range in too low level

2021-03-08 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 21cba9c5359dd9d1bffe355336cfec0b66d1ee52 upstream. Some USB audio firmware seem to report broken dB values for the volume controls, and this screws up applications like PulseAudio who blindly trusts the given data. For example, Edifier G2000 reports a PCM volume from

[PATCH 5.10 02/42] ALSA: usb-audio: use Corsair Virtuoso mapping for Corsair Virtuoso SE

2021-03-08 Thread Greg Kroah-Hartman
From: Andrea Fagiani commit 11302bb69e72d0526bc626ee5c451a3d22cde904 upstream. The Corsair Virtuoso SE RGB Wireless is a USB headset with a mic and a sidetone feature. Assign the Corsair Virtuoso name map to the SE product ids as well, in order to label its mixer appropriately and allow userspac

[PATCH 5.11 066/104] ALSA: usb-audio: Add support for Pioneer DJM-750

2021-03-05 Thread Greg Kroah-Hartman
From: Olivia Mackintosh [ Upstream commit b952ac76a20bc0b23cd7e22de19fb407713238a3 ] This adds the Pioneer DJ DJM-750 to the quirks table and ensures skip_pioneer_sync_ep() is (also) called: this device uses the vendor ID of 0x08e4 (I'm not sure why they use multiple vendor IDs but many just lik

[PATCH 5.11 076/104] ALSA: usb-audio: Add DJM-450 to the quirks table

2021-03-05 Thread Greg Kroah-Hartman
From: Olivia Mackintosh [ Upstream commit 9119e5661eab2c56a96b936cde49c6740dc49ff9 ] As with most Pioneer devices, the device descriptor is vendor specific and as such, the number of channels, the PCM format, endpoints and sample rate need to be specified. This device has 8 inputs and 8 outputs

[PATCH 5.11 075/104] ALSA: usb-audio: Add DJM450 to Pioneer format quirk

2021-03-05 Thread Greg Kroah-Hartman
From: Olivia Mackintosh [ Upstream commit 3b85f5fc75d564a9eb4171dcb6b8687b080cd4d5 ] Like the DJM-750, ensure that the format control message is passed to the device when opening a stream. It seems as though fmt->sync_ep is not always set when this function is called hence the passing of the val

Re: [PATCH] ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()

2021-03-04 Thread Kai-Heng Feng
Hi Joakim, On Thu, Mar 4, 2021 at 5:50 PM Joakim Tjernlund wrote: > > On Thu, 2021-03-04 at 12:34 +0800, Kai-Heng Feng wrote: > > Rear audio on Lenovo ThinkStation P620 stops working after commit > > 1965c4364bdd ("ALSA: usb-audio: Disable autosuspend for Lenov

Re: [PATCH] ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()

2021-03-04 Thread Joakim Tjernlund
On Thu, 2021-03-04 at 12:34 +0800, Kai-Heng Feng wrote: > Rear audio on Lenovo ThinkStation P620 stops working after commit > 1965c4364bdd ("ALSA: usb-audio: Disable autosuspend for Lenovo > ThinkStation P620"): > [6.013526] usbcore: registered new interfac

Re: [PATCH] ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()

2021-03-04 Thread Takashi Iwai
On Thu, 04 Mar 2021 05:34:16 +0100, Kai-Heng Feng wrote: > > Rear audio on Lenovo ThinkStation P620 stops working after commit > 1965c4364bdd ("ALSA: usb-audio: Disable autosuspend for Lenovo > ThinkStation P620"): > [6.013526] usbcore: registered new inter

[PATCH] ALSA: usb-audio: Disable USB autosuspend properly in setup_disable_autosuspend()

2021-03-03 Thread Kai-Heng Feng
Rear audio on Lenovo ThinkStation P620 stops working after commit 1965c4364bdd ("ALSA: usb-audio: Disable autosuspend for Lenovo ThinkStation P620"): [6.013526] usbcore: registered new interface driver snd-usb-audio [6.023064] usb 3-6: cannot get ctl value: req = 0x81, wVal

AW: [PATCH 0/8] USB Audio Gadget part 2: Feedback endpoint, Volume/Mute support

2021-03-01 Thread Johannes Freyberger
nel.org; linux- > ker...@vger.kernel.org; Linux USB > Betreff: Re: [PATCH 0/8] USB Audio Gadget part 2: Feedback endpoint, > Volume/Mute support > > Hi Johannes, > > On Mon, Mar 1, 2021 at 6:49 PM Johannes Freyberger > wrote: > > > > Hi Ruslan, > > >

Re: [PATCH 0/8] USB Audio Gadget part 2: Feedback endpoint, Volume/Mute support

2021-03-01 Thread Ruslan Bilovol
Hi Johannes, On Mon, Mar 1, 2021 at 6:49 PM Johannes Freyberger wrote: > > Hi Ruslan, > > thanks for all your efforts to make the USB Audio Gadget work in Win10 using > UAC2. Meanwhile I managed to apply and compile your previous modifications > and now my Raspberry PI shows

[PATCH 5.11 597/775] ALSA: usb-audio: Add implicit fb quirk for BOSS GP-10

2021-03-01 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 15447b64789d9ade71eb374d5ae1f37d0bbce0bd upstream. BOSS GP-10 with 0582:0185 requires the similar quirk to make the implicit feedback working like other BOSS devices. Reported-by: Keith Milner Cc: Link: https://lore.kernel.org/r/20210214154251.10750-1-ti...@suse.de S

[PATCH 5.11 596/775] ALSA: usb-audio: Dont avoid stopping the stream at disconnection

2021-03-01 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 257d2d7e9e798305d65825cb82b0a7d1c0511e89 upstream. In the later patch, we're going to issue the PCM sync_stop calls at disconnection. But currently the USB-audio driver can't handle it because it has a check of shutdown flag for stopping the URBs. This is

[PATCH 5.11 595/775] ALSA: usb-audio: More strict state change in EP

2021-03-01 Thread Greg Kroah-Hartman
the state change more strictly. The unexpected state change is now handled as an error. Fixes: d0f09d1e4a88 ("ALSA: usb-audio: Refactoring endpoint URB deactivation") Cc: Link: https://lore.kernel.org/r/20210206203052.15606-3-ti...@suse.de Signed-off-by: Takashi Iwai Signed-off-by

[PATCH 5.11 594/775] ALSA: usb-audio: Handle invalid running state at releasing EP

2021-03-01 Thread Greg Kroah-Hartman
nt code to adapt two points above. Fixes: d0f09d1e4a88 ("ALSA: usb-audio: Refactoring endpoint URB deactivation") Cc: Link: https://lore.kernel.org/r/20210206203052.15606-2-ti...@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --

[PATCH 5.11 593/775] ALSA: usb-audio: Correct document for snd_usb_endpoint_free_all()

2021-03-01 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 036f90dd92bb0aac66fdeec8386401dd396c6079 upstream. The kerndoc comment for the new function snd_usb_endpoint_free_all() had a typo wrt the argument name. Fix it. Fixes: 00272c61827e ("ALSA: usb-audio: Avoid unnecessary interface re-setup") Reported-by: Pi

[PATCH 5.10 013/663] ALSA: usb-audio: Fix PCM buffer allocation in non-vmalloc mode

2021-03-01 Thread Greg Kroah-Hartman
From: Takashi Iwai commit fb3c293b82c31a9a68fbcf4e7a45fadd8a47ea2b upstream. The commit f274baa49be6 ("ALSA: usb-audio: Allow non-vmalloc buffer for PCM buffers") introduced the mode to allocate coherent pages for PCM buffers, and it used bus->controller device as its DMA device.

[PATCH 5.11 014/775] ALSA: usb-audio: Fix PCM buffer allocation in non-vmalloc mode

2021-03-01 Thread Greg Kroah-Hartman
From: Takashi Iwai commit fb3c293b82c31a9a68fbcf4e7a45fadd8a47ea2b upstream. The commit f274baa49be6 ("ALSA: usb-audio: Allow non-vmalloc buffer for PCM buffers") introduced the mode to allocate coherent pages for PCM buffers, and it used bus->controller device as its DMA device.

[PATCH 5.4 010/340] ALSA: usb-audio: Fix PCM buffer allocation in non-vmalloc mode

2021-03-01 Thread Greg Kroah-Hartman
From: Takashi Iwai commit fb3c293b82c31a9a68fbcf4e7a45fadd8a47ea2b upstream. The commit f274baa49be6 ("ALSA: usb-audio: Allow non-vmalloc buffer for PCM buffers") introduced the mode to allocate coherent pages for PCM buffers, and it used bus->controller device as its DMA device.

[PATCH 4.19 021/247] ALSA: usb-audio: Fix PCM buffer allocation in non-vmalloc mode

2021-03-01 Thread Greg Kroah-Hartman
From: Takashi Iwai commit fb3c293b82c31a9a68fbcf4e7a45fadd8a47ea2b upstream. The commit f274baa49be6 ("ALSA: usb-audio: Allow non-vmalloc buffer for PCM buffers") introduced the mode to allocate coherent pages for PCM buffers, and it used bus->controller device as its DMA device.

Re: [PATCH 0/8] USB Audio Gadget part 2: Feedback endpoint, Volume/Mute support

2021-03-01 Thread Johannes Freyberger
Hi Ruslan, thanks for all your efforts to make the USB Audio Gadget work in Win10 using UAC2. Meanwhile I managed to apply and compile your previous modifications and now my Raspberry PI shows up in the Windows Device Manager as a valid UAC2 audio device. Unfortunately it still doesn't wo

[PATCH 5/8] usb: audio-v2: add ability to define feature unit descriptor

2021-03-01 Thread Ruslan Bilovol
lovol --- include/linux/usb/audio-v2.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/linux/usb/audio-v2.h b/include/linux/usb/audio-v2.h index ead8c9a..8fc2abd 100644 --- a/include/linux/usb/audio-v2.h +++ b/include/linux/usb/audio-v2.h @@ -156,6 +156,20 @@ s

[PATCH 0/8] USB Audio Gadget part 2: Feedback endpoint, Volume/Mute support

2021-03-01 Thread Ruslan Bilovol
implementation, yet also adds new Volume/Mute support which allows developers to control UAC1/2 Gadget's Volume/Mute from the Host and in the same way UAC1/2 Gadget can control Volume/Mute of the Host making it closer to a real USB Audio card. This patch set should be applied on top of USB Audio

[PATCH v2 0/5] USB Audio Gadget part 1: misc fixes and improvements

2021-03-01 Thread Ruslan Bilovol
Here are some bug fixes and improvements to USB Audio Gadget drivers which I made during my work on a new UAC features like feedback endpoint implementation and Volume/Mute controls. That's nice bugfixes/improvements that I expect get applied faster than coming new features thus sent th

  1   2   3   4   5   6   7   8   9   10   >