]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hdspm - Implement generic function to toggle settings
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Mon, 3 Dec 2012 13:55:49 +0000 (14:55 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Dec 2012 14:29:45 +0000 (15:29 +0100)
commit456f4b37716e49278afe9236dc0240513419574a
tree1351735f1dd88069e67149c3f3cb9929a1776253
parented5a6ff13ee409dab891750dbe80f45907330072
ALSA: hdspm - Implement generic function to toggle settings

The driver contains at least six similar functions that change only a
single bit in the control register, only the bit position varies.

This patch implements a generic function to toggle a certain bit
position that will be used to replace the old code.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdspm.c