aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106/ca0106_mixer.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-07-25 12:40:39 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:57:59 -0400
commit18b5d32f201462ef7ed3c01773a88b4645128158 (patch)
tree3c6c631104fee79f581bb0d7b23332c76a0d56d1 /sound/pci/ca0106/ca0106_mixer.c
parent485100706b4b397f8072c756839878f634e21f85 (diff)
[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.c2
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 =
599 .info = spi_mute_info, \ 599 .info = spi_mute_info, \
600 .get = spi_mute_get, \ 600 .get = spi_mute_get, \
601 .put = spi_mute_put, \ 601 .put = spi_mute_put, \
602 .private_value = (reg<<SPI_REG_SHIFT) | (1<<bit) \ 602 .private_value = (reg<<SPI_REG_SHIFT) | (bit) \
603} 603}
604 604
605static struct snd_kcontrol_new snd_ca0106_volume_spi_dac_ctls[] 605static struct snd_kcontrol_new snd_ca0106_volume_spi_dac_ctls[]