|
@@ -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;
|
|
|
}
|
|
|
|