提交 db67319a 编写于 作者: C Clemens Ladisch 提交者: Jaroslav Kysela

[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: NClemens Ladisch <clemens@ladisch.de>
上级 4d23359b
...@@ -1038,8 +1038,7 @@ static int snd_opti93x_capture_prepare(snd_pcm_substream_t *substream) ...@@ -1038,8 +1038,7 @@ static int snd_opti93x_capture_prepare(snd_pcm_substream_t *substream)
chip->c_dma_size = size; chip->c_dma_size = size;
snd_opti93x_out_mask(chip, OPTi93X_IFACE_CONF, snd_opti93x_out_mask(chip, OPTi93X_IFACE_CONF,
OPTi93X_CAPTURE_ENABLE | OPTi93X_CAPTURE_PIO, OPTi93X_CAPTURE_ENABLE | OPTi93X_CAPTURE_PIO, 0);
(unsigned char)~(OPTi93X_CAPTURE_ENABLE | OPTi93X_CAPTURE_PIO));
snd_dma_program(chip->dma2, runtime->dma_addr, size, snd_dma_program(chip->dma2, runtime->dma_addr, size,
DMA_MODE_READ | DMA_AUTOINIT); DMA_MODE_READ | DMA_AUTOINIT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册