linux-alpha.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rene Herman <rene.herman@keyaccess.nl>
To: Bob Tracy <rct@frus.com>
Cc: ALSA devel <alsa-devel@alsa-project.org>,
	Michael Cree <mcree@orcon.net.nz>,
	Krzysztof Helt <krzysztof.h1@wp.pl>, Takashi Iwai <tiwai@suse.de>,
	linux-kernel@vger.kernel.org,
	Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
	linux-alpha@vger.kernel.org
Subject: Re: [regression] 2.6.25-rc4 snd-es18xx broken on Alpha
Date: Mon, 17 Mar 2008 23:00:41 +0100	[thread overview]
Message-ID: <47DEEA09.9000108@keyaccess.nl> (raw)
In-Reply-To: <20080313042402.CE3D7DBA2@gherkin.frus.com>

[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]

On 13-03-08 05:24, Bob Tracy wrote:

> Rene Herman wrote:
>> Okay, and applying the attached just makes your sound completely dead in the 
>> water?
>> (patch to delete es1888_init function)
> 
> Oddly enough, the patch had no effect whatsoever (at least with the
> ALSA drivers: I didn't try building a kernel with the OSS "sb" driver).
> Just to make sure I wasn't "benefiting" from initialization inherited
> from a prior boot, I even powered-down the machine for 30 seconds
> before booting on the new kernel.  snd-sb8 still works, and snd-es18xx
> is still broken (in exactly the same way as before).

Okay, thought I'd stare at this thing a bit -- there's no specific 1888 
documentation available it seems but I did notice something in the 1878 
datasheet which might mean something. The docs says that bits 0-1 are don't 
care for DMA but don't for IRQ, so could it possibly be as simple as the 
attached?

1878 sheet doesn't document register 0x7f, it seems...

Assuming it's not just this, this thing is going to require quite a bit of 
trial and error and without the hardware this will be troublesome. I expect 
this is not it, since the arch init code also doesn't care about bit 0 when 
setting that same register for IRQ 5.

If this is not it -- I'd try s/0x50/0x10/ in that line, even completely 
commenting out the IRQ setting line (with the arch code built in) and just 
generally frolic around 'till something blows up...

Rene.


[-- Attachment #2: es18xx_trial_and_error.diff --]
[-- Type: text/plain, Size: 1273 bytes --]

diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c
index 90498e4..71d1b96 100644
--- a/sound/isa/es18xx.c
+++ b/sound/isa/es18xx.c
@@ -1449,16 +1449,16 @@ static int __devinit snd_es18xx_initialize(struct snd_es18xx *chip)
 		switch (chip->irq) {
 		case 2:
 		case 9:
-			irqmask = 0;
+			irqmask = 0x0;
 			break;
 		case 5:
-			irqmask = 1;
+			irqmask = 0x5;
 			break;
 		case 7:
-			irqmask = 2;
+			irqmask = 0xa;
 			break;
 		case 10:
-			irqmask = 3;
+			irqmask = 0xf;
 			break;
 		default:
 			snd_printk(KERN_ERR "invalid irq %d\n", chip->irq);
@@ -1497,7 +1497,7 @@ static int __devinit snd_es18xx_initialize(struct snd_es18xx *chip)
 		}
 
 		/* Enable and set Audio 1 IRQ */
-		snd_es18xx_write(chip, 0xB1, 0x50 | (irqmask << 2));
+		snd_es18xx_write(chip, 0xB1, 0x50 | irqmask);
 		/* Enable and set Audio 1 DMA */
 		snd_es18xx_write(chip, 0xB2, 0x50 | (dma1mask << 2));
 		/* Set Audio 2 DMA */
@@ -1513,7 +1513,9 @@ static int __devinit snd_es18xx_initialize(struct snd_es18xx *chip)
 			   FM enabled */
 			snd_es18xx_mixer_write(chip, 0x40, 0x43 | (chip->mpu_port & 0xf0) >> 1);
 		}
+#if 0
 		snd_es18xx_mixer_write(chip, 0x7f, ((irqmask + 1) << 1) | 0x01);
+#endif
 	}
 	if (chip->caps & ES18XX_NEW_RATE) {
 		/* Change behaviour of register A1

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2008-03-17 22:00 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-08  3:58 [regression] 2.6.25-rc4 snd-es18xx broken on Alpha Bob Tracy
2008-03-09 15:34 ` Ivan Kokshaysky
2008-03-09 23:57   ` Bob Tracy
2008-03-10  7:34     ` Michael Cree
2008-03-10 15:17       ` Rene Herman
2008-03-10 15:21         ` Rene Herman
2008-03-10 16:21         ` Bob Tracy
2008-03-10 16:56           ` Rene Herman
2008-03-10 17:14             ` Takashi Iwai
2008-03-10 19:29               ` [alsa-devel] " Rene Herman
2008-03-10 22:22                 ` Bob Tracy
2008-03-10 22:33                   ` Rene Herman
2008-03-11 14:07                     ` [alsa-devel] " Bob Tracy
2008-03-11 15:17                       ` Rene Herman
2008-03-11 18:08                         ` Bob Tracy
2008-03-11 20:00                           ` [alsa-devel] " Michael Cree
2008-03-11 20:34                             ` Bob Tracy
2008-03-12 14:40                             ` Bob Tracy
2008-03-12 19:34                               ` Rene Herman
2008-03-12 20:31                                 ` [alsa-devel] " Bob Tracy
2008-03-12 21:12                                   ` Rene Herman
2008-03-13  4:24                                     ` Bob Tracy
2008-03-17 22:00                                       ` Rene Herman [this message]
2008-03-18  3:24                                         ` [alsa-devel] " Bob Tracy
2008-03-18  3:54                                           ` Michael Cree
2008-03-23 10:40                                             ` Michael Cree
2008-03-24 18:15                                               ` Rene Herman
2008-03-24 23:56                                                 ` Michael Cree
2008-03-25  0:29                                                   ` [alsa-devel] " Rene Herman
2008-03-25  1:22                                                     ` Michael Cree
2008-03-25  2:22                                                       ` Rene Herman
2008-03-30  5:18                                                         ` Bob Tracy
2008-03-30 10:02                                                           ` Michael Cree
2008-03-30  9:13                                                         ` [alsa-devel] " Michael Cree
2008-03-25  2:46                                                     ` Rene Herman
2008-03-30 21:07                                                     ` Bob Tracy
2008-03-30 21:11                                                       ` Michael Cree
2008-03-30 21:18                                                         ` Bob Tracy
2008-03-30  4:24                                                 ` Bob Tracy
2008-03-30 22:09                                         ` [alsa-devel] " Bob Tracy
2008-03-14 13:13                                     ` Bob Tracy
2008-03-15  1:18                                       ` Tyson Whitehead
2008-03-17 22:04                                         ` Rene Herman
2008-03-18 13:55                                           ` Tyson Whitehead
2008-03-18 22:57                                             ` Rene Herman
     [not found]                                         ` <s5hskypnwp8.wl%tiwai@suse.de>
2008-03-18 14:16                                           ` Tyson Whitehead
2008-03-29  6:42                                             ` Bob Tracy
2008-03-29 12:09                                               ` [alsa-devel] " Rene Herman
2008-03-30 16:14                                                 ` Ivan Kokshaysky
2008-03-30 21:17                                                   ` Michael Cree
2008-03-30 20:24                                                 ` [alsa-devel] " Bob Tracy
2008-03-12 22:48                                 ` Rafael J. Wysocki
2008-03-23  9:48                             ` Michael Cree
2008-03-11  5:36             ` Bob Tracy
2008-03-10 15:08   ` Rene Herman
  -- strict thread matches above, loose matches on Subject: below --
2008-03-14 23:33 Bob Tracy
2008-04-01 19:07 [alsa-devel] " Rene Herman
2008-04-01 20:32 ` Bob Tracy
2008-04-01 20:26 [alsa-devel] " Bob Tracy
2008-04-01 21:02 ` Michael Cree

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47DEEA09.9000108@keyaccess.nl \
    --to=rene.herman@keyaccess.nl \
    --cc=alsa-devel@alsa-project.org \
    --cc=ink@jurassic.park.msu.ru \
    --cc=krzysztof.h1@wp.pl \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcree@orcon.net.nz \
    --cc=rct@frus.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).