diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-07-25 18:40:39 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 15:57:59 +0200 |
commit | 18b5d32f201462ef7ed3c01773a88b4645128158 (patch) | |
tree | 3c6c631104fee79f581bb0d7b23332c76a0d56d1 /sound/pci/ca0106/ca0106_mixer.c | |
parent | 485100706b4b397f8072c756839878f634e21f85 (diff) | |
download | blackbird-op-linux-18b5d32f201462ef7ed3c01773a88b4645128158.tar.gz blackbird-op-linux-18b5d32f201462ef7ed3c01773a88b4645128158.zip |
[ALSA] ca0106: Add more symbol SPI register names and use them
Add more symbol name for SPI register values. Change the SPI_XXX_BIT defines
from the bit number to a mask. Saves having to write (1<<SPI_XXX_BIT) all the
time to convert to mask. We never end up wanting the bit number.
Use all the symbol names for the SPI DAC init sequence. The sequence is
exactly the same as it was before.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/ca0106/ca0106_mixer.c')
-rw-r--r-- | sound/pci/ca0106/ca0106_mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ca0106/ca0106_mixer.c b/sound/pci/ca0106/ca0106_mixer.c index 18a0525a6b5c..be519a17dfa5 100644 --- a/sound/pci/ca0106/ca0106_mixer.c +++ b/sound/pci/ca0106/ca0106_mixer.c @@ -599,7 +599,7 @@ static struct snd_kcontrol_new snd_ca0106_volume_i2c_adc_ctls[] __devinitdata = .info = spi_mute_info, \ .get = spi_mute_get, \ .put = spi_mute_put, \ - .private_value = (reg<<SPI_REG_SHIFT) | (1<<bit) \ + .private_value = (reg<<SPI_REG_SHIFT) | (bit) \ } static struct snd_kcontrol_new snd_ca0106_volume_spi_dac_ctls[] |