logo       

[PATCH] [UBUNTU:sound/pci/] Fix possible OOPS with ALI5455 SPDIF-in: msg#00005

Subject: [PATCH] [UBUNTU:sound/pci/] Fix possible OOPS with ALI5455 SPDIF-in
Subject: [PATCH] [UBUNTU:sound/pci/] Fix possible OOPS with ALI5455 SPDIF-in

UpstreamStatus: Added in upstream hg changeset 9d88e5e3f42f [0]

This commit from Takashi Iwai prevents a possible OOPS if the SPDIF-in
is used on an ALI5455 by disabling the broken "functionality."

[0] 
http://sourceforge.net/mailarchive/forum.php?thread_id=10200068&forum_id=33141

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

---

 sound/pci/intel8x0.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

f85189bf9340928e76578111962ccba053f615e4
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c
index f4e3801..e378093 100644
--- a/sound/pci/intel8x0.c
+++ b/sound/pci/intel8x0.c
@@ -1252,6 +1252,7 @@ static int snd_intel8x0_ali_ac97spdifout
        return 0;
 }
 
+#if 0 // NYI
 static int snd_intel8x0_ali_spdifin_open(snd_pcm_substream_t * substream)
 {
        intel8x0_t *chip = snd_pcm_substream_chip(substream);
@@ -1267,7 +1268,6 @@ static int snd_intel8x0_ali_spdifin_clos
        return 0;
 }
 
-#if 0 // NYI
 static int snd_intel8x0_ali_spdifout_open(snd_pcm_substream_t * substream)
 {
        intel8x0_t *chip = snd_pcm_substream_chip(substream);
@@ -1394,6 +1394,7 @@ static snd_pcm_ops_t snd_intel8x0_ali_ac
        .pointer =      snd_intel8x0_pcm_pointer,
 };
 
+#if 0 // NYI
 static snd_pcm_ops_t snd_intel8x0_ali_spdifin_ops = {
        .open =         snd_intel8x0_ali_spdifin_open,
        .close =        snd_intel8x0_ali_spdifin_close,
@@ -1405,7 +1406,6 @@ static snd_pcm_ops_t snd_intel8x0_ali_sp
        .pointer =      snd_intel8x0_pcm_pointer,
 };
 
-#if 0 // NYI
 static snd_pcm_ops_t snd_intel8x0_ali_spdifout_ops = {
        .open =         snd_intel8x0_ali_spdifout_open,
        .close =        snd_intel8x0_ali_spdifout_close,
@@ -1539,7 +1539,7 @@ static struct ich_pcm_table ali_pcms[] _
        {
                .suffix = "IEC958",
                .playback_ops = &snd_intel8x0_ali_ac97spdifout_ops,
-               .capture_ops = &snd_intel8x0_ali_spdifin_ops,
+               /* .capture_ops = &snd_intel8x0_ali_spdifin_ops, */
                .prealloc_size = 64 * 1024,
                .prealloc_max_size = 128 * 1024,
                .ac97_idx = ALID_AC97SPDIFOUT,
-- 
1.1.3


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

Attachment: pgpdVvLIbRnnR.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