ALSA: emu10k1: track loss of external clock on E-MU cards
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Sat, 15 Jul 2023 16:07:38 +0000 (18:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Jul 2023 07:21:21 +0000 (09:21 +0200)
commitc960b012ec4747265f0392a31570045d3f982447
tree5b38127d5b32213513c8f0ada34e04ba52a27ffe
parent7e9f28398a6e226d4c31cb0e5501a36f37fa139d
ALSA: emu10k1: track loss of external clock on E-MU cards
85;95;0c
This uses IRQs to track spontaneous changes to the word clock source
register.

FWIW, that this can happen in the first place is the reason why it is
futile to lock the clock source mixer setting while the device is open -
we can't consistently control the rate anyway. Though arguably, we
should reset any open streams when that happens, as they become
corrupted anyway.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230715160738.326832-1-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/emu10k1.h
sound/pci/emu10k1/emu10k1.c
sound/pci/emu10k1/emu10k1_main.c
sound/pci/emu10k1/emumixer.c