summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hills <mark@xwax.org>2020-07-08 11:18:44 +0100
committerTakashi Iwai <tiwai@suse.de>2020-07-09 12:57:59 +0200
commitdb091b0e14239f0ebd5709f3f9b5a1d662483adc (patch)
tree052540d1e95ce6cc8f826ef1bda13a49ecb17625
parentec03370e6d8a64ef01e9318229d7076048b0d23c (diff)
ALSA: echoaudio: Remove redundant check
This check is always false, as it's not the responsibilty of the device-specific code to make this check. It is already checked in snd_echo_digital_mode_put. I do not have a Mona interface to test this change. This patch is in preparation for follow-up patch to modify the behavior of "opencount". Signed-off-by: Mark Hills <mark@xwax.org> Link: https://lore.kernel.org/r/20200708101848.3457-1-mark@xwax.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/echoaudio/mona_dsp.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/pci/echoaudio/mona_dsp.c b/sound/pci/echoaudio/mona_dsp.c
index dce9e57d01c4..f77db83dd73d 100644
--- a/sound/pci/echoaudio/mona_dsp.c
+++ b/sound/pci/echoaudio/mona_dsp.c
@@ -300,11 +300,6 @@ static int set_input_clock(struct echoaudio *chip, u16 clock)
u32 control_reg, clocks_from_dsp;
int err;
-
- /* Prevent two simultaneous calls to switch_asic() */
- if (atomic_read(&chip->opencount))
- return -EAGAIN;
-
/* Mask off the clock select bits */
control_reg = le32_to_cpu(chip->comm_page->control_register) &
GML_CLOCK_CLEAR_MASK;