logo       

[PATCH] [UBUNTU:sound/pci/ice1712/] Force analog daughter board detection f: msg#00037

Subject: [PATCH] [UBUNTU:sound/pci/ice1712/] Force analog daughter board detection for Julia
Subject: [PATCH] [UBUNTU:sound/pci/ice1712/] Force analog daughter board 
detection for Juli@

UpstreamStatus: Added in upstream pci/ice1712/juli.c r1.3

This patch from Jaroslav Kysela <perex@xxxxxxx> forces analog daughter
board usage, because detection is unreliable: "it should be very rare
to use Juli@ without the analog doughter board".

Signed-off-by: Daniel T Chen <crimsun@xxxxxxxxxx>

---

 sound/pci/ice1712/juli.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

8e37034bdbb88bfdac46d1c13e5fd6e781f80751
diff --git a/sound/pci/ice1712/juli.c b/sound/pci/ice1712/juli.c
index 2437876..a5e04a3 100644
--- a/sound/pci/ice1712/juli.c
+++ b/sound/pci/ice1712/juli.c
@@ -175,7 +175,14 @@ static int __devinit juli_init(ice1712_t
        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");
-- 
1.1.3


-- 
Daniel T. Chen            crimsun@xxxxxxxxxx
GPG key:   www.sh.nu/~crimsun/pubkey.gpg.asc

Attachment: pgps9C3hOytFL.pgp
Description: PGP signature


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe