From 5abdadfa3a490b66651a4a64f4dd748eb5268d83 Mon Sep 17 00:00:00 2001 From: Pavel Hofman Date: Thu, 5 Jan 2012 23:05:18 +0100 Subject: [PATCH] --- yaml --- r: 284133 b: refs/heads/master c: e7848163aa2a649d9065f230fadff80dc3519775 h: refs/heads/master i: 284131: b38000e1aa861bde64b1d5e5267b1b98bc78239d v: v3 --- [refs] | 2 +- trunk/sound/pci/ice1712/amp.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 1fa67624bbff..6c44159357b4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: dcc2cf7507861476c874cc7974e5d4557a32475f +refs/heads/master: e7848163aa2a649d9065f230fadff80dc3519775 diff --git a/trunk/sound/pci/ice1712/amp.c b/trunk/sound/pci/ice1712/amp.c index e328cfb7620c..e525da2673be 100644 --- a/trunk/sound/pci/ice1712/amp.c +++ b/trunk/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; }