Skip to content

Commit

Permalink
[ALSA] ice1724 (juli) - forced analog doughter board detection
Browse files Browse the repository at this point in the history
Modules: ICE1712 driver

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Jaroslav Kysela committed Jan 3, 2006
1 parent c1b8f5f commit fd6715e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sound/pci/ice1712/juli.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,14 @@ static int __devinit juli_init(ice1712_t *ice)
if (err < 0)
return err;

ice->spec.juli.analog = ice->gpio.get_data(ice) & GPIO_ANALOG_PRESENT;
#if 0
/* it seems that the analog doughter board detection does not work
reliably, so force the analog flag; it should be very rare
to use Juli@ without the analog doughter board */
ice->spec.juli.analog = (ice->gpio.get_data(ice) & GPIO_ANALOG_PRESENT) ? 0 : 1;
#else
ice->spec.juli.analog = 1;
#endif

if (ice->spec.juli.analog) {
printk(KERN_INFO "juli@: analog I/O detected\n");
Expand Down

0 comments on commit fd6715e

Please sign in to comment.