mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-09 08:09:12 +00:00
[ALSA] ice1724 (juli) - forced analog doughter board detection
Modules: ICE1712 driver Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
parent
c1b8f5f0e4
commit
fd6715e564
1 changed files with 8 additions and 1 deletions
|
@ -175,7 +175,14 @@ static int __devinit juli_init(ice1712_t *ice)
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
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) {
|
if (ice->spec.juli.analog) {
|
||||||
printk(KERN_INFO "juli@: analog I/O detected\n");
|
printk(KERN_INFO "juli@: analog I/O detected\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue