aboutsummaryrefslogtreecommitdiff
path: root/sound/pci/ice1712/amp.c
diff options
context:
space:
mode:
authorGravatar Takashi Iwai <tiwai@suse.de> 2012-01-12 09:59:14 +0100
committerGravatar Takashi Iwai <tiwai@suse.de> 2012-01-12 09:59:14 +0100
commit627b79628f56c3deeb17dec1edf6899b49552fa4 (patch)
treedeac8b2cce5d70708fa944a270ee031f069226d8 /sound/pci/ice1712/amp.c
parentMerge branch 'for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/broon... (diff)
parentALSA: usb-audio: add Yamaha MOX6/MOX8 support (diff)
downloadlinux-627b79628f56c3deeb17dec1edf6899b49552fa4.tar.gz
linux-627b79628f56c3deeb17dec1edf6899b49552fa4.tar.bz2
linux-627b79628f56c3deeb17dec1edf6899b49552fa4.zip
Merge branch 'topic/misc' into for-linus
Diffstat (limited to 'sound/pci/ice1712/amp.c')
-rw-r--r--sound/pci/ice1712/amp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/pci/ice1712/amp.c b/sound/pci/ice1712/amp.c
index e328cfb7620c..e525da2673be 100644
--- a/sound/pci/ice1712/amp.c
+++ b/sound/pci/ice1712/amp.c
@@ -68,8 +68,11 @@ static int __devinit snd_vt1724_amp_init(struct snd_ice1712 *ice)
static int __devinit snd_vt1724_amp_add_controls(struct snd_ice1712 *ice)
{
- /* we use pins 39 and 41 of the VT1616 for left and right read outputs */
- snd_ac97_write_cache(ice->ac97, 0x5a, snd_ac97_read(ice->ac97, 0x5a) & ~0x8000);
+ if (ice->ac97)
+ /* we use pins 39 and 41 of the VT1616 for left and right
+ read outputs */
+ snd_ac97_write_cache(ice->ac97, 0x5a,
+ snd_ac97_read(ice->ac97, 0x5a) & ~0x8000);
return 0;
}