diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-01-14 02:56:01 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:57 -0500 |
commit | 01a3affb2eebfd6c996c36d82bbbc6040eb3a7f1 (patch) | |
tree | a80f44ba4a5d6997d932a7d80e9b517064eb2555 /sound/pci/oxygen/oxygen_lib.c | |
parent | 7113e95812f508bff10f95f2e52ce6ee8cda1875 (diff) |
[ALSA] oxygen: use an array of snd_kcontrol pointers
Use an array for the pointers to known controls so that it is easier to
add more.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/oxygen_lib.c')
-rw-r--r-- | sound/pci/oxygen/oxygen_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c index 9cd4be2593ab..5b77c9439c36 100644 --- a/sound/pci/oxygen/oxygen_lib.c +++ b/sound/pci/oxygen/oxygen_lib.c | |||
@@ -114,7 +114,7 @@ static void oxygen_spdif_input_bits_changed(struct work_struct *work) | |||
114 | } | 114 | } |
115 | } | 115 | } |
116 | 116 | ||
117 | if (chip->spdif_input_bits_ctl) { | 117 | if (chip->controls[CONTROL_SPDIF_INPUT_BITS]) { |
118 | spin_lock_irq(&chip->reg_lock); | 118 | spin_lock_irq(&chip->reg_lock); |
119 | chip->interrupt_mask |= OXYGEN_INT_SPDIF_IN_CHANGE; | 119 | chip->interrupt_mask |= OXYGEN_INT_SPDIF_IN_CHANGE; |
120 | oxygen_write16(chip, OXYGEN_INTERRUPT_MASK, | 120 | oxygen_write16(chip, OXYGEN_INTERRUPT_MASK, |
@@ -122,7 +122,7 @@ static void oxygen_spdif_input_bits_changed(struct work_struct *work) | |||
122 | spin_unlock_irq(&chip->reg_lock); | 122 | spin_unlock_irq(&chip->reg_lock); |
123 | 123 | ||
124 | snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, | 124 | snd_ctl_notify(chip->card, SNDRV_CTL_EVENT_MASK_VALUE, |
125 | &chip->spdif_input_bits_ctl->id); | 125 | &chip->controls[CONTROL_SPDIF_INPUT_BITS]->id); |
126 | } | 126 | } |
127 | } | 127 | } |
128 | 128 | ||