linux/sound/firewire/dice
Takashi Sakamoto 757eb00c4c ALSA: dice: fix regression for Lexicon I-ONIX FW810S
commit 9b84f0f74d upstream.

For Lexicon I-ONIX FW810S, the call of ioctl(2) with
SNDRV_PCM_IOCTL_HW_PARAMS can returns -ETIMEDOUT. This is a regression due
to the commit 41319eb56e ("ALSA: dice: wait just for
NOTIFY_CLOCK_ACCEPTED after GLOBAL_CLOCK_SELECT operation"). The device
does not emit NOTIFY_CLOCK_ACCEPTED notification when accepting
GLOBAL_CLOCK_SELECT operation with the same parameters as current ones.

This commit fixes the regression. When receiving no notification, return
-ETIMEDOUT as long as operating for any change.

Fixes: 41319eb56e ("ALSA: dice: wait just for NOTIFY_CLOCK_ACCEPTED after GLOBAL_CLOCK_SELECT operation")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20221130130604.29774-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-08 11:28:42 +01:00
..
dice-alesis.c ALSA: dice: fix stream format at middle sampling rate for Alesis iO 26 2021-05-14 09:40:15 +02:00
dice-extension.c ALSA: dice: fix fallback from protocol extension into limited functionality 2020-01-13 10:43:27 +01:00
dice-harman.c ALSA: dice: add support for Lexicon I-ONIX FW810s 2021-01-15 11:13:33 +01:00
dice-hwdep.c ALSA: Convert strlcpy to strscpy when return value is unused 2021-01-08 09:30:05 +01:00
dice-interface.h ALSA: dice: improve support for ancient firmware for DICE 2018-04-24 17:18:59 +02:00
dice-midi.c ALSA: dice: share PCM buffer size for both direction 2019-10-18 04:35:47 +02:00
dice-mytek.c ALSA: dice: add stream format parameters for Mytek devices 2018-05-18 08:53:51 +02:00
dice-pcm.c ALSA: dice: disable double_pcm_frames mode for M-Audio Profire 610, 2626 and Avid M-Box 3 Pro 2021-05-18 08:57:21 +02:00
dice-presonus.c ALSA: dice: add stream format parameters for PreSonus FireStudio 2019-05-20 07:46:43 +02:00
dice-proc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 345 2019-06-05 17:37:08 +02:00
dice-stream.c ALSA: dice: fix regression for Lexicon I-ONIX FW810S 2022-12-08 11:28:42 +01:00
dice-tcelectronic.c ALSA: dice: fix stream format for TC Electronic Konnekt Live at high sampling transfer frequency 2021-05-18 08:57:54 +02:00
dice-transaction.c ALSA: dice: wait just for NOTIFY_CLOCK_ACCEPTED after GLOBAL_CLOCK_SELECT operation 2021-06-01 18:36:18 +02:00
dice.c ALSA: dice: cease from delayed card registration 2021-06-07 17:14:14 +02:00
dice.h ALSA: dice: cease from delayed card registration 2021-06-07 17:14:14 +02:00
Makefile ALSA: dice: add support for Lexicon I-ONIX FW810s 2021-01-15 11:13:33 +01:00