diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-09-05 04:36:27 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-09-12 04:41:21 -0400 |
commit | db67319ac29d2f35ece30bce6a9b611afd6b600f (patch) | |
tree | e7782998fbb3cdc1e6721ec861949092d97234cd /sound | |
parent | 4d23359b7ec8b03da2154df935af7d625075f6cf (diff) |
[ALSA] opti93x: optimize a register access
Opti9xx drivers
When clearing some bits in a register, don't bother with the bits that
won't be changed anyway.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/isa/opti9xx/opti92x-ad1848.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/isa/opti9xx/opti92x-ad1848.c b/sound/isa/opti9xx/opti92x-ad1848.c index 411a702d85ba..782750d62ebb 100644 --- a/sound/isa/opti9xx/opti92x-ad1848.c +++ b/sound/isa/opti9xx/opti92x-ad1848.c | |||
@@ -1038,8 +1038,7 @@ static int snd_opti93x_capture_prepare(snd_pcm_substream_t *substream) | |||
1038 | 1038 | ||
1039 | chip->c_dma_size = size; | 1039 | chip->c_dma_size = size; |
1040 | snd_opti93x_out_mask(chip, OPTi93X_IFACE_CONF, | 1040 | snd_opti93x_out_mask(chip, OPTi93X_IFACE_CONF, |
1041 | OPTi93X_CAPTURE_ENABLE | OPTi93X_CAPTURE_PIO, | 1041 | OPTi93X_CAPTURE_ENABLE | OPTi93X_CAPTURE_PIO, 0); |
1042 | (unsigned char)~(OPTi93X_CAPTURE_ENABLE | OPTi93X_CAPTURE_PIO)); | ||
1043 | 1042 | ||
1044 | snd_dma_program(chip->dma2, runtime->dma_addr, size, | 1043 | snd_dma_program(chip->dma2, runtime->dma_addr, size, |
1045 | DMA_MODE_READ | DMA_AUTOINIT); | 1044 | DMA_MODE_READ | DMA_AUTOINIT); |