All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Alsa-user] is this card supported by ALSA?
       [not found]                               ` <loom.20080714T232812-533@post.gmane.org>
@ 2008-07-15  0:11                                 ` Rene Herman
  2008-07-15 13:11                                   ` Takashi Iwai
  0 siblings, 1 reply; 23+ messages in thread
From: Rene Herman @ 2008-07-15  0:11 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: alsa-user, Takashi Iwai, ALSA devel

On 15-07-08 01:36, Landis McGauhey wrote:

It seems there's just a bit too much oddness going on. Takashi, you know 
more about ac97. Also bringing in alsa-devel...

> # cat /proc/asound/AudioPCI/codec97#0/ac97#0-0=
> 
> 0-0/0: 0x76058384 F�S

Eep? A 0x83847605 would be a SigmaTel STAC9704. And:

[ ... ]

> # cat /proc/asound/AudioPCI/codec97#0/ac97#0-0+regs=

[ ... ]

> 0:7c = 0000
> 0:7e = 8384

does't fit the above ID. Do we just have a crummy codec that needs delay 
between acceses somewhere or something?

Here full contents again:

> # cat /proc/asound/AudioPCI/codec97#0/ac97#0-0=
> 
> 0-0/0: 0x76058384 F�S
> 
> PCI Subsys Vendor: 0x0000
> PCI Subsys Device: 0x0000
> 
> Capabilities     : -dedicated MIC PCM IN channel- -bass & treble-
> DAC resolution   : 16-bit
> ADC resolution   : 20-bit
> 3D enhancement   : Reserved 29
> 
> Current setup
> Mic gain         : +0dB [+20dB]
> POP path         : post 3D
> Sim. stereo      : off
> 3D enhancement   : off
> Loudness         : on
> Mono output      : MIX
> Mic select       : Mic2
> ADC/DAC loopback : off
> 
> # cat /proc/asound/AudioPCI/codec97#0/ac97#0-0+regs=
> 
> 0:00 = 0000
> 0:02 = 0140
> 0:04 = 8909
> 0:06 = 8000
> 0:08 = 8009
> 0:0a = ffff
> 0:0c = 150b
> 0:0e = 801f
> 0:10 = 805f
> 0:12 = 9515
> 0:14 = 9212
> 0:16 = 9f1f
> 0:18 = 9f1f
> 0:1a = 9010
> 0:1c = 0000
> 0:1e = 0000
> 0:20 = 0000
> 0:22 = 0000
> 0:24 = 0000
> 0:26 = 0000
> 0:28 = 000f
> 0:2a = ffff
> 0:2c = ffff
> 0:2e = ffff
> 0:30 = ffff
> 0:32 = ffff
> 0:34 = ffff
> 0:36 = ffff
> 0:38 = ffff
> 0:3a = ffff
> 0:3c = ffff
> 0:3e = ffff
> 0:40 = ffff
> 0:42 = ffff
> 0:44 = ffff
> 0:46 = ffff
> 0:48 = ffff
> 0:4a = ffff
> 0:4c = ffff
> 0:4e = ffff
> 0:50 = ffff
> 0:52 = ffff
> 0:54 = ffff
> 0:56 = ffff
> 0:58 = ffff
> 0:5a = 0000
> 0:5c = 0000
> 0:5e = 0000
> 0:60 = 0000
> 0:62 = 0000
> 0:64 = 0000
> 0:66 = 0000
> 0:68 = 0000
> 0:6a = 0000
> 0:6c = 0000
> 0:6e = 0000
> 0:70 = 0000
> 0:72 = 0000
> 0:74 = 0000
> 0:76 = 0000
> 0:78 = 0000
> 0:7a = 0000
> 0:7c = 0000
> 0:7e = 8384

Rene.

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

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-15 14:19                                     ` Takashi Iwai
@ 2008-07-15 14:42                                       ` Rene Herman
  2008-07-15 15:25                                         ` Landis McGauhey
  2008-07-15 17:02                                         ` Rene Herman
  0 siblings, 2 replies; 23+ messages in thread
From: Rene Herman @ 2008-07-15 14:42 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, ALSA devel

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

On 15-07-08 16:19, Takashi Iwai wrote:

> The below is a patch to improve the codec access routines in a bit
> more robust way (and clean-ups, too).  Give it a try.

Thank you for taking this...

Landis, if it's easier for you due to webmail stuff, I'm attaching the 
patch to this message so that it might be easier for you to save it 
(Takashi posted it "inline" in the message).

The way to use this is very similar to what you did for the OSS driver 
patch. You save this somewhere, then from the root of the source tree 
(from /usr/src/linux-2.6.25.9 it was...) you do

# patch -p1 --dry-run < /some/where/ens1371-ac97.diff

and upon seeing that complete without errors, without the --dry-run:

# patch -p1 --dry-run < /some/where/ens1371-ac97.diff

You then recompile the kernel with "make" (which should now only 
recompile the snd-ens1371 driver) and do a "make modules_install" after 
it finishes.

Then, make sure no old driver for the card is loaded:

# modprobe -r snd-ens1371
# modprobe -r es1371

and load the new one:

# modprobe snd-ens1371

then up and unmute volumes in alsamixer again and try if you have sound 
with "speaker-test" or "aplay foo.wav".

If you do, you should blacklist the now installed OSS es1371 driver (add 
"blacklist es1371" to /etc/modprobe.d/blacklist) and make sure 
snd-ens1371 is no longer blacklisted. If all's well, working sound 
should then survive a reboot (and a future kernel would include the fix 
autonmatically so things just work out of the box).

Rene.

[-- Attachment #2: ens1371-ac97.diff --]
[-- Type: text/plain, Size: 7633 bytes --]

diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c
index 72d85a5..cd74fb2 100644
--- a/sound/pci/ens1370.c
+++ b/sound/pci/ens1370.c
@@ -461,8 +461,6 @@ MODULE_DEVICE_TABLE(pci, snd_audiopci_ids);
  *  constants
  */
 
-#define POLL_COUNT	0xa000
-
 #ifdef CHIP1370
 static unsigned int snd_es1370_fixed_rates[] =
 	{5512, 11025, 22050, 44100};
@@ -514,14 +512,16 @@ static const unsigned int snd_ensoniq_sample_shift[] =
 
 static unsigned int snd_es1371_wait_src_ready(struct ensoniq * ensoniq)
 {
-	unsigned int t, r = 0;
+	unsigned int r = 0;
+	unsigned long end_time;
 
-	for (t = 0; t < POLL_COUNT; t++) {
+	end_time = jiffies + msecs_to_jiffies(100);
+	do {
 		r = inl(ES_REG(ensoniq, 1371_SMPRATE));
 		if ((r & ES_1371_SRC_RAM_BUSY) == 0)
 			return r;
-		cond_resched();
-	}
+		schedule_timeout_uninterruptible(1);
+	} while (time_after_eq(end_time, jiffies));
 	snd_printk(KERN_ERR "wait source ready timeout 0x%lx [0x%x]\n",
 		   ES_REG(ensoniq, 1371_SMPRATE), r);
 	return 0;
@@ -529,7 +529,7 @@ static unsigned int snd_es1371_wait_src_ready(struct ensoniq * ensoniq)
 
 static unsigned int snd_es1371_src_read(struct ensoniq * ensoniq, unsigned short reg)
 {
-	unsigned int temp, i, orig, r;
+	unsigned int temp, orig, r;
 
 	/* wait for ready */
 	temp = orig = snd_es1371_wait_src_ready(ensoniq);
@@ -545,11 +545,13 @@ static unsigned int snd_es1371_src_read(struct ensoniq * ensoniq, unsigned short
 	
 	if ((temp & 0x00870000) != 0x00010000) {
 		/* wait for the right state */
-		for (i = 0; i < POLL_COUNT; i++) {
+		unsigned long end_time = jiffies + msecs_to_jiffies(100);
+		do {
 			temp = inl(ES_REG(ensoniq, 1371_SMPRATE));
 			if ((temp & 0x00870000) == 0x00010000)
 				break;
-		}
+			schedule_timeout_uninterruptible(1);
+		} while (time_after_eq(end_time, jiffies));
 	}
 
 	/* hide the state bits */	
@@ -602,104 +604,90 @@ static void snd_es1370_codec_write(struct snd_ak4531 *ak4531,
 
 #ifdef CHIP1371
 
+static int _es1371_wait_wip(struct ensoniq *ensoniq)
+{
+	unsigned long end_time;
+
+	end_time = jiffies + msecs_to_jiffies(100);
+	do {
+		if (!(inl(ES_REG(ensoniq, 1371_CODEC)) & ES_1371_CODEC_WIP))
+			return 0;
+	} while (time_after_eq(end_time, jiffies));
+	snd_printk(KERN_ERR "codec wait timeout, status = 0x%x\n",
+		   inl(ES_REG(ensoniq, 1371_CODEC)));
+	return -EINVAL;
+}
+
+static void _es1371_codec_write(struct ensoniq *ensoniq,
+				unsigned int val)
+{
+	unsigned int x;
+	unsigned long end_time;
+
+	_es1371_wait_wip(ensoniq);
+	/* save the current state for latter */
+	x = snd_es1371_wait_src_ready(ensoniq);
+	outl((x & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 |
+		   ES_1371_DIS_P2 | ES_1371_DIS_R1)) | 0x00010000,
+	     ES_REG(ensoniq, 1371_SMPRATE));
+	/* wait for not busy (state 0) first to avoid
+	   transition states */
+	end_time = jiffies + msecs_to_jiffies(100);
+	do {
+		if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) ==
+		    0x00000000)
+			break;
+	} while (time_after_eq(end_time, jiffies));
+	/* wait for a SAFE time to write addr/data and then do it, dammit */
+	end_time = jiffies + msecs_to_jiffies(100);
+	do {
+		if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) ==
+		    0x00010000)
+			break;
+	} while (time_after_eq(end_time, jiffies));
+	outl(val, ES_REG(ensoniq, 1371_CODEC));
+	/* restore SRC reg */
+	snd_es1371_wait_src_ready(ensoniq);
+	outl(x, ES_REG(ensoniq, 1371_SMPRATE));
+}
+
 static void snd_es1371_codec_write(struct snd_ac97 *ac97,
 				   unsigned short reg, unsigned short val)
 {
 	struct ensoniq *ensoniq = ac97->private_data;
-	unsigned int t, x;
 
 	mutex_lock(&ensoniq->src_mutex);
-	for (t = 0; t < POLL_COUNT; t++) {
-		if (!(inl(ES_REG(ensoniq, 1371_CODEC)) & ES_1371_CODEC_WIP)) {
-			/* save the current state for latter */
-			x = snd_es1371_wait_src_ready(ensoniq);
-			outl((x & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 |
-			           ES_1371_DIS_P2 | ES_1371_DIS_R1)) | 0x00010000,
-			     ES_REG(ensoniq, 1371_SMPRATE));
-			/* wait for not busy (state 0) first to avoid
-			   transition states */
-			for (t = 0; t < POLL_COUNT; t++) {
-				if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) ==
-				    0x00000000)
-					break;
-			}
-			/* wait for a SAFE time to write addr/data and then do it, dammit */
-			for (t = 0; t < POLL_COUNT; t++) {
-				if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) ==
-				    0x00010000)
-					break;
-			}
-			outl(ES_1371_CODEC_WRITE(reg, val), ES_REG(ensoniq, 1371_CODEC));
-			/* restore SRC reg */
-			snd_es1371_wait_src_ready(ensoniq);
-			outl(x, ES_REG(ensoniq, 1371_SMPRATE));
-			mutex_unlock(&ensoniq->src_mutex);
-			return;
-		}
-	}
+	_es1371_codec_write(ensoniq, ES_1371_CODEC_WRITE(reg, val));
 	mutex_unlock(&ensoniq->src_mutex);
-	snd_printk(KERN_ERR "codec write timeout at 0x%lx [0x%x]\n",
-		   ES_REG(ensoniq, 1371_CODEC), inl(ES_REG(ensoniq, 1371_CODEC)));
 }
 
 static unsigned short snd_es1371_codec_read(struct snd_ac97 *ac97,
 					    unsigned short reg)
 {
 	struct ensoniq *ensoniq = ac97->private_data;
-	unsigned int t, x, fail = 0;
+	unsigned int fail;
+	unsigned long end_time;
 
-      __again:
 	mutex_lock(&ensoniq->src_mutex);
-	for (t = 0; t < POLL_COUNT; t++) {
-		if (!(inl(ES_REG(ensoniq, 1371_CODEC)) & ES_1371_CODEC_WIP)) {
-			/* save the current state for latter */
-			x = snd_es1371_wait_src_ready(ensoniq);
-			outl((x & (ES_1371_SRC_DISABLE | ES_1371_DIS_P1 |
-			           ES_1371_DIS_P2 | ES_1371_DIS_R1)) | 0x00010000,
-			     ES_REG(ensoniq, 1371_SMPRATE));
-			/* wait for not busy (state 0) first to avoid
-			   transition states */
-			for (t = 0; t < POLL_COUNT; t++) {
-				if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) ==
-				    0x00000000)
-					break;
+	for (fail = 0; fail < 10; fail++) {
+		_es1371_codec_write(ensoniq, ES_1371_CODEC_READS(reg));
+		/* wait for WIP again */
+		_es1371_wait_wip(ensoniq);
+		/* now wait for the stinkin' data (RDY) */
+		end_time = jiffies + msecs_to_jiffies(100);
+		do {
+			unsigned int x = inl(ES_REG(ensoniq, 1371_CODEC));
+			if (x & ES_1371_CODEC_RDY) {
+				mutex_unlock(&ensoniq->src_mutex);
+				return ES_1371_CODEC_READ(x);
 			}
-			/* wait for a SAFE time to write addr/data and then do it, dammit */
-			for (t = 0; t < POLL_COUNT; t++) {
-				if ((inl(ES_REG(ensoniq, 1371_SMPRATE)) & 0x00870000) ==
-				    0x00010000)
-					break;
-			}
-			outl(ES_1371_CODEC_READS(reg), ES_REG(ensoniq, 1371_CODEC));
-			/* restore SRC reg */
-			snd_es1371_wait_src_ready(ensoniq);
-			outl(x, ES_REG(ensoniq, 1371_SMPRATE));
-			/* wait for WIP again */
-			for (t = 0; t < POLL_COUNT; t++) {
-				if (!(inl(ES_REG(ensoniq, 1371_CODEC)) & ES_1371_CODEC_WIP))
-					break;		
-			}
-			/* now wait for the stinkin' data (RDY) */
-			for (t = 0; t < POLL_COUNT; t++) {
-				if ((x = inl(ES_REG(ensoniq, 1371_CODEC))) & ES_1371_CODEC_RDY) {
-					mutex_unlock(&ensoniq->src_mutex);
-					return ES_1371_CODEC_READ(x);
-				}
-			}
-			mutex_unlock(&ensoniq->src_mutex);
-			if (++fail > 10) {
-				snd_printk(KERN_ERR "codec read timeout (final) "
-					   "at 0x%lx, reg = 0x%x [0x%x]\n",
-					   ES_REG(ensoniq, 1371_CODEC), reg,
-					   inl(ES_REG(ensoniq, 1371_CODEC)));
-				return 0;
-			}
-			goto __again;
-		}
+		} while (time_after_eq(end_time, jiffies));
 	}
+	snd_printk(KERN_ERR "codec read timeout (final) "
+		   "at 0x%lx, reg = 0x%x [0x%x]\n",
+		   ES_REG(ensoniq, 1371_CODEC), reg,
+		   inl(ES_REG(ensoniq, 1371_CODEC)));
 	mutex_unlock(&ensoniq->src_mutex);
-	snd_printk(KERN_ERR "es1371: codec read timeout at 0x%lx [0x%x]\n",
-		   ES_REG(ensoniq, 1371_CODEC), inl(ES_REG(ensoniq, 1371_CODEC)));
 	return 0;
 }
 

[-- 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

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-15 15:01 ` Sergei Steshenko
@ 2008-07-15 15:06   ` Rene Herman
  0 siblings, 0 replies; 23+ messages in thread
From: Rene Herman @ 2008-07-15 15:06 UTC (permalink / raw)
  To: Sergei Steshenko; +Cc: Takashi Iwai, Landis McGauhey, ALSA devel, alsa-user

On 15-07-08 17:01, Sergei Steshenko wrote:

> And that's why something equivalent to 'ndiswrapper' for audio is 
> necessary.

Please note -- if you're _trying_ to be a troll, it's too obvious to 
have the fun last longer than this message.

Rene.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-15 15:25                                         ` Landis McGauhey
@ 2008-07-15 15:36                                           ` Rene Herman
  0 siblings, 0 replies; 23+ messages in thread
From: Rene Herman @ 2008-07-15 15:36 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, ALSA devel

On 15-07-08 17:25, Landis McGauhey wrote:
> 
> 
>  > Date: Tue, 15 Jul 2008 16:42:05 +0200
>  > From: rene.herman@keyaccess.nl
>  > To: b3zdomny@hotmail.com
>  > CC: tiwai@suse.de; alsa-user@lists.sourceforge.net; 
> alsa-devel@alsa-project.org
>  > Subject: Re: [Alsa-user] is this card supported by ALSA?
> <snip>
> 
> OK, interim report:
> 
> the patch, the make, the makemodules, and the modprobes all proceeded 
> without error.

the "make modules_install" I hope. "make modules" would just make the 
modules, not install them. You need to be very sure you're running the 
new;y compiled driver (ie, as said, unload any current driver, and 
reload after the make modules_install).

Whatever the result, sound or no, please also report the 
/proc/asound/AudioPCI/code97#0/ files

> # aplay /usr/share/sounds/startup3.wav
> ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
> aplay: main:564: audio open error: No such file or directory

Quite frankly, I haven't a clue what _that_ is now about again all of a 
sudden, but also try "aplay -D hw:AudioPCI foo.wav".

Rene.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-15 14:42                                       ` [Alsa-user] " Rene Herman
  2008-07-15 15:25                                         ` Landis McGauhey
@ 2008-07-15 17:02                                         ` Rene Herman
  1 sibling, 0 replies; 23+ messages in thread
From: Rene Herman @ 2008-07-15 17:02 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, ALSA devel

On 15-07-08 16:42, Rene Herman wrote:

> On 15-07-08 16:19, Takashi Iwai wrote:
> 
>> The below is a patch to improve the codec access routines in a bit
>> more robust way (and clean-ups, too).  Give it a try.
> 
> Thank you for taking this...
> 
> Landis, if it's easier for you due to webmail stuff, I'm attaching the 
> patch to this message so that it might be easier for you to save it 
> (Takashi posted it "inline" in the message).
> 
> The way to use this is very similar to what you did for the OSS driver 
> patch. You save this somewhere, then from the root of the source tree 
> (from /usr/src/linux-2.6.25.9 it was...) you do
> 
> # patch -p1 --dry-run < /some/where/ens1371-ac97.diff
> 
> and upon seeing that complete without errors, without the --dry-run:
> 
> # patch -p1 --dry-run < /some/where/ens1371-ac97.diff

Just in case... I did _say_ "without the --dry-run" but then neglected 
to actually delete it from the second line here. You _did_ delete it, right?

> You then recompile the kernel with "make" (which should now only 
> recompile the snd-ens1371 driver) and do a "make modules_install" after 
> it finishes.
> 
> Then, make sure no old driver for the card is loaded:
> 
> # modprobe -r snd-ens1371
> # modprobe -r es1371
> 
> and load the new one:
> 
> # modprobe snd-ens1371
> 
> then up and unmute volumes in alsamixer again and try if you have sound 
> with "speaker-test" or "aplay foo.wav".
> 
> If you do, you should blacklist the now installed OSS es1371 driver (add 
> "blacklist es1371" to /etc/modprobe.d/blacklist) and make sure 
> snd-ens1371 is no longer blacklisted. If all's well, working sound 
> should then survive a reboot (and a future kernel would include the fix 
> autonmatically so things just work out of the box).

Off,
Rene.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-16  9:16 ` Rene Herman
@ 2008-07-16 11:07   ` Takashi Iwai
  0 siblings, 0 replies; 23+ messages in thread
From: Takashi Iwai @ 2008-07-16 11:07 UTC (permalink / raw)
  To: Rene Herman; +Cc: alsa-user, Landis McGauhey, ALSA devel

At Wed, 16 Jul 2008 11:16:32 +0200,
Rene Herman wrote:
> 
> On 15-07-08 22:28, Landis McGauhey wrote:
> 
> > Yes, I did delete '-dry-run'.
> > 
> > In fact, just to be doubly certain, I just re-ran the whole process and
> 
> I still worry a little bit, since if all's well, you should have seen 
> the "patch -p1" command fail this time (it commenting that the patch 
> seemed already applied) but I'll assume you did see that then. It's 
> unfortunate that the problem with your card seems involved in a way 
> which makes it fairly hard to debug this while not having the card 
> locally to fiddle around with, adding delays between things ...
> 
> > additionally ran alsaconf (and again there was a loud 'click' in the 
> > speakers when alsaconf loaded the driver):
> > 
> > # cat /proc/asound/AudioPCI/codec97#0/ac97#0-0=
> > 0-0/0: 0x83848384 STS
> 
> ... because, lovely, yet another variant.

Well, from The fact that this is repeated numbers, I guess this is a
result of (still) wrong codec communication.  Likely the previous
number remains to the next read.

I guess my patch did something wrong, too -- at least, waiting for SRC
up/down shouldn't be with sleep but a busy loop.

> There is an interface problem 
> between the ES1371 and (supposed) STAC9704 chips on your card and even 
> though that MIGHT not be all the problem (even though the ALSA driver 
> doesn't recognize your AC97 codec due to this, the OSS driver also 
> drives it without any special quirks) this will need to be taken care of 
> first.
> 
> With the card locally, the attached is the first thing I'd try. It makes 
> the driver wait around a bit to have the codec recover from reset. Apply 
> it as before, run "make" and "make modules_install" and re-load the 
> snd-ens1371 driver with (as root) "modprobe -r snd-ens1371 && modprobe 
> -r es1371 && modprobe snd-ens1371" after which ALSA sound may or may not 
> work (test through aplay).
> 
> (note by the way that for now I'm foregoing any other problems you have 
> with rebooting not loading the correct driver and such -- your dmesg 
> indicated that the OSS es1371 driver was loading even though you said 
> you blacklisted that, so just do the manual modprobe/modprobe -r stuff.)
> 
> Please also make sure that, after loading the newly patched snd-ens1371, 
> there's nothing interesting at the end of dmesg -- nothing about 
> timeouts and such. If there is something, please post.

Yeah, the kernel messages are really important.  Some messages should
appear if the codec access timeout occured.  Then it can explains why
zero is read for many registers.


Takashi

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-16 13:38 Landis McGauhey
@ 2008-07-16 14:40 ` Rene Herman
  2008-07-16 14:44   ` Rene Herman
  0 siblings, 1 reply; 23+ messages in thread
From: Rene Herman @ 2008-07-16 14:40 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, devel, ALSA

On 16-07-08 15:38, Landis McGauhey wrote:

> "pop" in speaker as alsaconf loads snd-ens1371
> 
> running alsamixer-- no mute toggle underneath mic, that's a first
> 
> and just so you know,  there's no mute toggle under "master", 
> "master-m", and "PCM", either, but that's nominal.  There was one
> time, however, that "master" and/or "PCM" had a mute toggle.  Perhaps
> "master" and/or "PCM" are muted and we can't tell because there are
> supposed to be mute toggles there, but they are missing?  Something
> to consider...

I'm afraid that codec communication is just really messed up and the 
last two patches seem to have made things worse, so in preparation for 
any possible follow ups, you might as well revert those:

from /usr/src/linux-2.6.25.9:

# moodprobe -r  ens1371-ac97_reset_hack.diff
# moodprobe -r  ens1371-ac97.diff

do please again run "make" and "make modules_install" after this but 
that's just so that I'm satisfied you're back at the start. No need to 
test anything, you'd just find the old behaviour again.

One thing I am noticing now that we've been looking at the codec ID in 
ALSA in the OSS driver output there:

===
es1371: found chip, vendor id 0x1102 device id 0x8938 revision 0x00
es1371: found es1371 rev 0 at io 0xde80 irq 23
es1371: Enabling internal amplifier.
ac97_codec: AC97 Audio codec, id:  (Unknown)
gameport: ESS1371 Gameport is isa0218/gameport0, io 0x218, speed 1125kHz
===

is the "id: (Unknown)" bit. The OSS driver also definitely knows about 
the Sigmatel STAC9704 codec so it seems _this_ problam might not be 
unique to the ALSA driver. The OSS driver does produce sound, so perhaps 
we're chasing something not maximally productive right now...

It would be sort of interesting to have you look at the physical card 
and verify that it's indeed a Sigmatel STAC9704. It should be a tiny 
chip with a greek sigma sign and "STAC9704" in small enough letters that 
you might even need a magnifying glass. If it's hard or clumsy to take 
it out, don't bother though, it's not that important. You had 76058384 
as an ID and a STAC9704 is 83847605 (upper/lower 16-bit switched) but 
that will not have gotten to be there by accident.

Yes, before anyone wonders, I verified that the ALSA driver does that 
"Enabling internal amplifier" thing (that might be that pop that you 
hear; is the pop also present when loading the OSS driver?)

> Rene & Takashi: I fear this is taking up too much of our time and
> this effort may have long passed the point of diminishing returns. 
> Personally, my goal is to have audio with Skype, whether with OSS or
> ALSA, I don't care.  If you want to continue to work on this for the
> sake of the community at large and others who have this same card
> and this same problem, then I'm willing and would be honored to be
> the guinea pig and be an active participant in the community. I'm
> sorry this problem is so stubborn and if you have better things to
> do, I understand.  If you don't care to work on this anymore, I would
> understand and if you could perhaps just help me get sound in Skype
> (that is, to have /dev/dsp appear as I/O options in Skype
> configuration) with OSS, then I would be a happy camper indeed.

I'm afraid I don't know Skype. Older versions of it couldn't use ALSA 
but needed the OSS emulation. If newer version now can't use OSS but 
need ALSA, lovely...

I'll keep looking for a bit but ofcourse you don't have to wait around 
for anything. If I find anything with a good chance of success I'll let 
you know. Please conform that you've reverted the last two patches as 
mentioned above.

Rene.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-16 14:40 ` [Alsa-user] " Rene Herman
@ 2008-07-16 14:44   ` Rene Herman
  2008-07-16 14:52     ` Rene Herman
  0 siblings, 1 reply; 23+ messages in thread
From: Rene Herman @ 2008-07-16 14:44 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, devel, ALSA

On 16-07-08 16:40, Rene Herman wrote:

> # moodprobe -r  ens1371-ac97_reset_hack.diff
> # moodprobe -r  ens1371-ac97.diff

I'm getting really sick of the fact that I seem to need to make at least 
one typo or other small error per post. "modprobe" ofcourse.

Rene.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-16 14:44   ` Rene Herman
@ 2008-07-16 14:52     ` Rene Herman
  0 siblings, 0 replies; 23+ messages in thread
From: Rene Herman @ 2008-07-16 14:52 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, devel, ALSA

On 16-07-08 16:44, Rene Herman wrote:

> On 16-07-08 16:40, Rene Herman wrote:
> 
>> # moodprobe -r  ens1371-ac97_reset_hack.diff
>> # moodprobe -r  ens1371-ac97.diff
> 
> I'm getting really sick of the fact that I seem to need to make at least 
> one typo or other small error per post. "modprobe" ofcourse.

Oh, I so love myself. Try this instead:

# patch -p1 -r < ens1371-ac97_reset_hack.diff
# patch -p1 -r < ens1371-ac97.diff

I'll make sure I get some sleep before I post again.

Rene.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
@ 2008-07-16 18:00 Landis McGauhey
  2008-07-16 18:50 ` Rene Herman
  0 siblings, 1 reply; 23+ messages in thread
From: Landis McGauhey @ 2008-07-16 18:00 UTC (permalink / raw)
  To: Rene Herman; +Cc: Takashi Iwai, alsa-user, devel, alsa

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




> Date: Wed, 16 Jul 2008 16:52:39 +0200
> From: rene.herman@keyaccess.nl
> To: b3zdomny@hotmail.com
> CC: tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; ALSA@sc8-sf-spam2.sourceforge.net
> Subject: Re: [Alsa-user] is this card supported by ALSA?
> 
> On 16-07-08 16:44, Rene Herman wrote:
> 
> > On 16-07-08 16:40, Rene Herman wrote:
> > 
> >> # moodprobe -r  ens1371-ac97_reset_hack.diff
> >> # moodprobe -r  ens1371-ac97.diff
> > 
> > I'm getting really sick of the fact that I seem to need to make at least 
> > one typo or other small error per post. 'modprobe' ofcourse.
> 
> Oh, I so love myself. Try this instead:
> 
> # patch -p1 -r < ens1371-ac97_reset_hack.diff
> # patch -p1 -r < ens1371-ac97.diff
> 
> I'll make sure I get some sleep before I post again.
> 
> Rene.


OK, this is interesting:

 # patch -p1 -r < ens1371-ac97_reset_hack.diff=
bash: ens1371-ac97_reset_hack.diff: No such file or directory

# patch -p1 -r < ens1371-ac97.diff
bash: ens1371-ac97.diff: No such file or directory

Go figure.

Attached are two high-res pix of the card.  The smallest chips were just too darned small for me to read the printing; maybe you can magnify the pix and make something of them.  Thanks again for all your help.  I think I'm just going to be happy with OSS for awhile and see if I can't get it to support Skype.  If you decide to keep working on this and you want to test something, you're welcome to contact me.

best regards as always,

Landis
 
_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008

[-- Attachment #2: p7163034.jpg --]
[-- Type: image/jpeg, Size: 2448672 bytes --]

[-- Attachment #3: p7163032.jpg --]
[-- Type: image/jpeg, Size: 2183175 bytes --]

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

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

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-16 18:00 [Alsa-user] is this card supported by ALSA? Landis McGauhey
@ 2008-07-16 18:50 ` Rene Herman
  2008-07-16 20:15   ` Landis McGauhey
  2008-07-18 16:31   ` [Alsa-user] " Rene Herman
  0 siblings, 2 replies; 23+ messages in thread
From: Rene Herman @ 2008-07-16 18:50 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, devel, alsa

On 16-07-08 20:00, Landis McGauhey wrote:

> OK, this is interesting:
> 
> # patch -p1 -r < ens1371-ac97_reset_hack.diff=
> bash:ens1371-ac97_reset_hack.diff: No such file or directory
> 
> # patch -p1 -r < ens1371-ac97.diff
> bash: ens1371-ac97.diff: No such file or directory
> 
> Go figure.

Of course. You've done this a number of times now, so I took for granted 
that by now you'd understand to put in the path yourself. You saved 
these diff's from earlier mssages.

> Attached are two high-res pix of the card. The smallest chips were
> just too darned small for me to read the printing; maybe you can
> magnify the pix and make something of them.

A CT4730. You have an onboard amp (and it's disabled -- setting both the 
jumpers to the SPK position enables it but keeping it disabled is better 
if you don't really need it; these opamps suck).

Moreover, the AC97 codec seems integrated in the EV1938. Just found a 
patch for FreeBSD following up a similar report for your card. Will look 
at it tomorrow.

Rene.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-16 18:50 ` Rene Herman
@ 2008-07-16 20:15   ` Landis McGauhey
  2008-07-16 20:30     ` Sergei Steshenko
  2008-07-18 16:31   ` [Alsa-user] " Rene Herman
  1 sibling, 1 reply; 23+ messages in thread
From: Landis McGauhey @ 2008-07-16 20:15 UTC (permalink / raw)
  To: Rene Herman; +Cc: Takashi Iwai, alsa-user, devel, alsa


[-- Attachment #1.1: Type: text/plain, Size: 1984 bytes --]




> Date: Wed, 16 Jul 2008 20:50:21 +0200
> From: rene.herman@keyaccess.nl
> To: b3zdomny@hotmail.com
> CC: tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> Subject: Re: [Alsa-user] is this card supported by ALSA?
> 
> On 16-07-08 20:00, Landis McGauhey wrote:
> 
> > OK, this is interesting:
> > 
> > # patch -p1 -r < ens1371-ac97_reset_hack.diff=
> > bash:ens1371-ac97_reset_hack.diff: No such file or directory
> > 
> > # patch -p1 -r < ens1371-ac97.diff
> > bash: ens1371-ac97.diff: No such file or directory
> > 
> > Go figure.
> 
> Of course. You've done this a number of times now, so I took for granted 
> that by now you'd understand to put in the path yourself. You saved 
> these diff's from earlier mssages.
> 
> > Attached are two high-res pix of the card. The smallest chips were
> > just too darned small for me to read the printing; maybe you can
> > magnify the pix and make something of them.
> 
> A CT4730. You have an onboard amp (and it's disabled -- setting both the 
> jumpers to the SPK position enables it but keeping it disabled is better 
> if you don't really need it; these opamps suck).
> 
> Moreover, the AC97 codec seems integrated in the EV1938. Just found a 
> patch for FreeBSD following up a similar report for your card. Will look 
> at it tomorrow.
> 
> Rene.


OK, thanks!  As for the "patch -p1 -r" commands, I see.  I already had sent the diff's to the recycle bin, so following your message, I restored them and then ran the commands again with the paths.  They erred out with a complaint that "option requires an argument -- r".  I'm reading the manual now, I'll figure it out, you go get some sleep!

as always, many thanks and best regards,

Landis
  
_________________________________________________________________
Time for vacation? WIN what you need- enter now!
http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm

[-- Attachment #1.2: Type: text/html, Size: 2399 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-16 20:15   ` Landis McGauhey
@ 2008-07-16 20:30     ` Sergei Steshenko
  2008-07-16 20:31       ` Landis McGauhey
  2008-07-17  4:08       ` Rene Herman
  0 siblings, 2 replies; 23+ messages in thread
From: Sergei Steshenko @ 2008-07-16 20:30 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, Rene Herman, devel, alsa



-----Original Message-----
From: Landis McGauhey <b3zdomny@hotmail.com>
To: Rene Herman <rene.herman@keyaccess.nl>
Date: Wed, 16 Jul 2008 13:15:19 -0700
Subject: Re: [Alsa-user] is this card supported by ALSA?

> 
> 
> 
> > Date: Wed, 16 Jul 2008 20:50:21 +0200
> > From: rene.herman@keyaccess.nl
> > To: b3zdomny@hotmail.com
> > CC: tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> > Subject: Re: [Alsa-user] is this card supported by ALSA?
> > 
> > On 16-07-08 20:00, Landis McGauhey wrote:
> > 
> > > OK, this is interesting:
> > > 
> > > # patch -p1 -r < ens1371-ac97_reset_hack.diff=
> > > bash:ens1371-ac97_reset_hack.diff: No such file or directory
> > > 
> > > # patch -p1 -r < ens1371-ac97.diff
> > > bash: ens1371-ac97.diff: No such file or directory
> > > 
> > > Go figure.
> > 
> > Of course. You've done this a number of times now, so I took for granted 
> > that by now you'd understand to put in the path yourself. You saved 
> > these diff's from earlier mssages.
> > 
> > > Attached are two high-res pix of the card. The smallest chips were
> > > just too darned small for me to read the printing; maybe you can
> > > magnify the pix and make something of them.
> > 
> > A CT4730. You have an onboard amp (and it's disabled -- setting both the 
> > jumpers to the SPK position enables it but keeping it disabled is better 
> > if you don't really need it; these opamps suck).
> > 
> > Moreover, the AC97 codec seems integrated in the EV1938. Just found a 
> > patch for FreeBSD following up a similar report for your card. Will look 
> > at it tomorrow.
> > 
> > Rene.
> 
> 
> OK, thanks!  As for the "patch -p1 -r" commands, I see.  I already had sent the diff's to the recycle bin, so following your message, I restored them and then ran the commands again with the paths.  They erred out with a complaint that "option requires an argument -- r".  I'm reading the manual now, I'll figure it out, you go get some sleep!
> 
> as always, many thanks and best regards,
> 
> Landis
>   
> _________________________________________________________________
> Time for vacation? WIN what you need- enter now!
> http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-user
> 
> 

Maybe Rene meant '-R' (reverse patch) rather than '-r rejects_file'.

Regards,
  Sergei.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-16 20:30     ` Sergei Steshenko
@ 2008-07-16 20:31       ` Landis McGauhey
  2008-07-17  4:08       ` Rene Herman
  1 sibling, 0 replies; 23+ messages in thread
From: Landis McGauhey @ 2008-07-16 20:31 UTC (permalink / raw)
  To: Sergei Steshenko; +Cc: Takashi Iwai, alsa-user, Rene Herman, devel, alsa


[-- Attachment #1.1: Type: text/plain, Size: 763 bytes --]




> From: steshenko_sergei@list.ru
> To: b3zdomny@hotmail.com
> CC: rene.herman@keyaccess.nl; tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> Subject: Re[2]: [Alsa-user] is this card supported by ALSA?
> Date: Thu, 17 Jul 2008 00:30:15 +0400
<snip>
> 
> Maybe Rene meant '-R' (reverse patch) rather than '-r rejects_file'.
> 
> Regards,
>   Sergei.
> 
> 

Spasibo, Sergei.  Yes, that's what I'm thinking, too.

Poka,

Landis

_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008

[-- Attachment #1.2: Type: text/html, Size: 1025 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-16 20:30     ` Sergei Steshenko
  2008-07-16 20:31       ` Landis McGauhey
@ 2008-07-17  4:08       ` Rene Herman
  1 sibling, 0 replies; 23+ messages in thread
From: Rene Herman @ 2008-07-17  4:08 UTC (permalink / raw)
  To: Sergei Steshenko; +Cc: Takashi Iwai, Landis McGauhey, devel, alsa-user, alsa

On 16-07-08 22:30, Sergei Steshenko wrote:

> Maybe Rene meant '-R' (reverse patch) rather than '-r rejects_file'.

Hey, I said I made at least one error per post -- there wouldn't be any 
logic in that all of a sudden not being so for the 3rd correction to 
another post since that, obviously, is a post in itself.

I wonder what the error in this one is going to be. I should probably 
start putting in deliberate typos in an attempt to avoid more sarious 
damage.

Or maybe the sleep thing will have actually worked...

Rene.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [Alsa-user] is this card supported by ALSA?
  2008-07-16 18:50 ` Rene Herman
  2008-07-16 20:15   ` Landis McGauhey
@ 2008-07-18 16:31   ` Rene Herman
  2008-07-18 17:46     ` Landis McGauhey
                       ` (2 more replies)
  1 sibling, 3 replies; 23+ messages in thread
From: Rene Herman @ 2008-07-18 16:31 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, devel, alsa

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

On 16-07-08 20:50, Rene Herman wrote:

> Moreover, the AC97 codec seems integrated in the EV1938. Just found a
> patch for FreeBSD following up a similar report for your card. Will
> look at it tomorrow.

Nothing interesting. Ready to give up on this. There is a communication 
problem with the AC97 codec and that's the kind of thing which is almost 
impossible to debug via email, especially since apparently this is not 
different for the OSS driver; it's also not getting back a valid ID at 
least.

I do wonder a bit if that might mean that the only difference is the 
ALSA "mute by default" behaviour. The attached patch does away with the 
default muting of the AC97 controls. You'd apply it as before (after 
reverting the previous 2 patches as written earlier), "make", "make 
modules_install" and then load snd-ens1371:

# modprobe -r es1371
# modprobe -r snd-ens1371
# modprobe snd-ens1371

and then "aplay foo.wav" (without first starting alsamixer). If no 
sound, adjust levels in alsamixer, retry aplay, if no sound, reboot (to 
get the card to a startup state) and retry after the above 3 modprobes.

If for some unimagineable reason you still need "alsaconf" instead of 
just modprobe snd-ens1371 to load the driver, adjust accordingly. Have 
no idea why that would be the case.

If as expected you still have no sound I give up. Stared at this stuff, 
but am not seeing anything stand out. If you ever decide to replace the 
card and can find an ALSA developer in your neighbourhood to donate it 
to that could be interesting. I've never seen an EV1938 locally here; 
distribution is probably limited to the US.

Rene.

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

diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c
index 4f4343d..97a4365 100644
--- a/sound/pci/ac97/ac97_codec.c
+++ b/sound/pci/ac97/ac97_codec.c
@@ -1196,8 +1196,6 @@ static int snd_ac97_cmute_new_stereo(struct snd_card *card, char *name, int reg,
 	err = snd_ctl_add(card, kctl);
 	if (err < 0)
 		return err;
-	/* mute as default */
-	snd_ac97_write_cache(ac97, reg, val | mute_mask);
 	return 0;
 }
 

[-- 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

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-18 16:31   ` [Alsa-user] " Rene Herman
@ 2008-07-18 17:46     ` Landis McGauhey
  2008-07-18 19:35     ` Landis McGauhey
  2008-07-18 21:43     ` Landis McGauhey
  2 siblings, 0 replies; 23+ messages in thread
From: Landis McGauhey @ 2008-07-18 17:46 UTC (permalink / raw)
  To: Rene Herman; +Cc: Takashi Iwai, alsa-user, devel, alsa


[-- Attachment #1.1: Type: text/plain, Size: 2580 bytes --]




> Date: Fri, 18 Jul 2008 18:31:14 +0200
> From: rene.herman@keyaccess.nl
> To: b3zdomny@hotmail.com
> CC: tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> Subject: Re: [Alsa-user] is this card supported by ALSA?
> 
> On 16-07-08 20:50, Rene Herman wrote:
> 
> > Moreover, the AC97 codec seems integrated in the EV1938. Just found a
> > patch for FreeBSD following up a similar report for your card. Will
> > look at it tomorrow.
> 
> Nothing interesting. Ready to give up on this. There is a communication 
> problem with the AC97 codec and that's the kind of thing which is almost 
> impossible to debug via email, especially since apparently this is not 
> different for the OSS driver; it's also not getting back a valid ID at 
> least.
> 
> I do wonder a bit if that might mean that the only difference is the 
> ALSA "mute by default" behaviour. The attached patch does away with the 
> default muting of the AC97 controls. You'd apply it as before (after 
> reverting the previous 2 patches as written earlier), "make", "make 
> modules_install" and then load snd-ens1371:
> 
> # modprobe -r es1371
> # modprobe -r snd-ens1371
> # modprobe snd-ens1371
> 
> and then "aplay foo.wav" (without first starting alsamixer). If no 
> sound, adjust levels in alsamixer, retry aplay, if no sound, reboot (to 
> get the card to a startup state) and retry after the above 3 modprobes.
> 
> If for some unimagineable reason you still need "alsaconf" instead of 
> just modprobe snd-ens1371 to load the driver, adjust accordingly. Have 
> no idea why that would be the case.
> 
> If as expected you still have no sound I give up. Stared at this stuff, 
> but am not seeing anything stand out. If you ever decide to replace the 
> card and can find an ALSA developer in your neighbourhood to donate it 
> to that could be interesting. I've never seen an EV1938 locally here; 
> distribution is probably limited to the US.
> 
> Rene.

Thank you so much, Rene.  I will do these procedures, but in the meantime I have OSS in full swing.  Do I need to do something to turn off or uninstall OSS before proceeding with the above procedures?  Thank you.

Best regards from North-Central California where the forest fires are increasingly under control and our skies are finally more clear,

Landis

_________________________________________________________________
Time for vacation? WIN what you need- enter now!
http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm

[-- Attachment #1.2: Type: text/html, Size: 2995 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-18 16:31   ` [Alsa-user] " Rene Herman
  2008-07-18 17:46     ` Landis McGauhey
@ 2008-07-18 19:35     ` Landis McGauhey
  2008-07-18 19:47       ` Sergei Steshenko
  2008-07-18 21:43     ` Landis McGauhey
  2 siblings, 1 reply; 23+ messages in thread
From: Landis McGauhey @ 2008-07-18 19:35 UTC (permalink / raw)
  To: Rene Herman; +Cc: Takashi Iwai, alsa-user, devel, alsa


[-- Attachment #1.1: Type: text/plain, Size: 1160 bytes --]




> Date: Fri, 18 Jul 2008 18:31:14 +0200
> From: rene.herman@keyaccess.nl
> To: b3zdomny@hotmail.com
> CC: tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> Subject: Re: [Alsa-user] is this card supported by ALSA?
> 
> On 16-07-08 20:50, Rene Herman wrote:
> 
<snip>

# patch -p1 --dry-run < ac97_dont_mute.diff=
"(Stripping trailing CRs from patch.)
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c
|index 4f4343d..97a4365 100644
|--- a/sound/pci/ac97/ac97_codec.c
|+++ b/sound/pci/ac97/ac97_codec.c
--------------------------
File to patch:"

And I didn't know how to proceed and didn't want to mess things up by guessing, so I exited the process.

Thanks,

Landis

_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008

[-- Attachment #1.2: Type: text/html, Size: 1437 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-18 19:35     ` Landis McGauhey
@ 2008-07-18 19:47       ` Sergei Steshenko
  2008-07-18 20:11         ` Landis McGauhey
  0 siblings, 1 reply; 23+ messages in thread
From: Sergei Steshenko @ 2008-07-18 19:47 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, alsa-user, Rene Herman, devel, alsa



-----Original Message-----
From: Landis McGauhey <b3zdomny@hotmail.com>
To: Rene Herman <rene.herman@keyaccess.nl>
Date: Fri, 18 Jul 2008 12:35:20 -0700
Subject: Re: [Alsa-user] is this card supported by ALSA?

> 
> 
> 
> > Date: Fri, 18 Jul 2008 18:31:14 +0200
> > From: rene.herman@keyaccess.nl
> > To: b3zdomny@hotmail.com
> > CC: tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> > Subject: Re: [Alsa-user] is this card supported by ALSA?
> > 
> > On 16-07-08 20:50, Rene Herman wrote:
> > 
> <snip>
> 
> # patch -p1 --dry-run < ac97_dont_mute.diff=
> "(Stripping trailing CRs from patch.)
> can't find file to patch at input line 5
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c
> |index 4f4343d..97a4365 100644
> |--- a/sound/pci/ac97/ac97_codec.c
> |+++ b/sound/pci/ac97/ac97_codec.c
> --------------------------
> File to patch:"
> 
> And I didn't know how to proceed and didn't want to mess things up by guessing, so I exited the process.
> 
> Thanks,
> 
> Landis
> 
> _________________________________________________________________
> Keep your kids safer online with Windows Live Family Safety.
> http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-user
> 
> 

Were you in the correct subdirectory when running 'patch' ?

--Sergei.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-18 19:47       ` Sergei Steshenko
@ 2008-07-18 20:11         ` Landis McGauhey
  2008-07-19  4:48           ` Rene Herman
  0 siblings, 1 reply; 23+ messages in thread
From: Landis McGauhey @ 2008-07-18 20:11 UTC (permalink / raw)
  To: Sergei Steshenko; +Cc: Takashi Iwai, alsa-user, Rene Herman, devel, alsa


[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]




> From: steshenko_sergei@list.ru
> To: b3zdomny@hotmail.com
> CC: rene.herman@keyaccess.nl; tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> Subject: Re[2]: [Alsa-user] is this card supported by ALSA?
> Date: Fri, 18 Jul 2008 23:47:45 +0400
<snip>
> 
> Were you in the correct subdirectory when running 'patch' ?
> 
> --Sergei.

Yes, I was.  Thanks for confirming this.

best regards,

Landis

_________________________________________________________________
Keep your kids safer online with Windows Live Family Safety.
http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008

[-- Attachment #1.2: Type: text/html, Size: 961 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-18 16:31   ` [Alsa-user] " Rene Herman
  2008-07-18 17:46     ` Landis McGauhey
  2008-07-18 19:35     ` Landis McGauhey
@ 2008-07-18 21:43     ` Landis McGauhey
  2 siblings, 0 replies; 23+ messages in thread
From: Landis McGauhey @ 2008-07-18 21:43 UTC (permalink / raw)
  To: Rene Herman; +Cc: Takashi Iwai, alsa-user, devel, alsa


[-- Attachment #1.1: Type: text/plain, Size: 1029 bytes --]




> Date: Fri, 18 Jul 2008 18:31:14 +0200
> From: rene.herman@keyaccess.nl
> To: b3zdomny@hotmail.com
> CC: tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> Subject: Re: [Alsa-user] is this card supported by ALSA?
<snip>

Thanks, Rene.  You needn't bother yourself anymore on my account.  Got all audio, including Skype, working in OSS.  The Skype solution for OSS:

[code]ossdetect -d[/code]

[code]ossdevlinks -v -r[/code]

then download and install Skype 2.0.0.72-oss (emphasis on *oss"!) from
[quote]http://download.skype.com/linux/skype_static-2.0.0.72-oss.tar.bz2[/quote]according to the instructions in its ReadMe file.

Now I'm a happy voice-chatter!

thanks and best regards to all from North-Central California,

Landis

_________________________________________________________________
With Windows Live for mobile, your contacts travel with you.
http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mobile_072008

[-- Attachment #1.2: Type: text/html, Size: 1366 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-18 20:11         ` Landis McGauhey
@ 2008-07-19  4:48           ` Rene Herman
  2008-07-19 12:28             ` Landis McGauhey
  0 siblings, 1 reply; 23+ messages in thread
From: Rene Herman @ 2008-07-19  4:48 UTC (permalink / raw)
  To: Landis McGauhey; +Cc: Takashi Iwai, Sergei Steshenko, devel, alsa-user, alsa

On 18-07-08 22:11, Landis McGauhey wrote:

>  > From: steshenko_sergei@list.ru

>  > Were you in the correct subdirectory when running 'patch' ?

> Yes, I was.  Thanks for confirming this.

No you weren't. But yes, I'll leave this issue be. It can't be debugged 
this way. Please note that when/if you upgrade to a newer kernel release 
you'll have to apply the OSS ES1371 driver restoration patch as posted 
at the beginning of this all again, so hang on to it.

Rene.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: is this card supported by ALSA?
  2008-07-19  4:48           ` Rene Herman
@ 2008-07-19 12:28             ` Landis McGauhey
  0 siblings, 0 replies; 23+ messages in thread
From: Landis McGauhey @ 2008-07-19 12:28 UTC (permalink / raw)
  To: Rene Herman; +Cc: Takashi Iwai, Sergei Steshenko, devel, alsa-user, alsa


[-- Attachment #1.1: Type: text/plain, Size: 1147 bytes --]




> Date: Sat, 19 Jul 2008 06:48:12 +0200
> From: rene.herman@keyaccess.nl
> To: b3zdomny@hotmail.com
> CC: steshenko_sergei@list.ru; tiwai@suse.de; alsa-user@lists.sourceforge.net; alsa-devel@alsa-project.org; alsa@sc8-sf-spam2.sourceforge.net
> Subject: Re: [Alsa-user] is this card supported by ALSA?
> 
> On 18-07-08 22:11, Landis McGauhey wrote:
> 
> >  > From: steshenko_sergei@list.ru
> 
> >  > Were you in the correct subdirectory when running 'patch' ?
> 
> > Yes, I was.  Thanks for confirming this.
> 
> No you weren't. But yes, I'll leave this issue be. It can't be debugged 
> this way. Please note that when/if you upgrade to a newer kernel release 
> you'll have to apply the OSS ES1371 driver restoration patch as posted 
> at the beginning of this all again, so hang on to it.
> 
> Rene.

Will do.  Thanks for everything, Rene.

best regards from North-Central California USA

Landis

_________________________________________________________________
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008

[-- Attachment #1.2: Type: text/html, Size: 1469 bytes --]

[-- Attachment #2: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

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

_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2008-07-19 12:28 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 18:00 [Alsa-user] is this card supported by ALSA? Landis McGauhey
2008-07-16 18:50 ` Rene Herman
2008-07-16 20:15   ` Landis McGauhey
2008-07-16 20:30     ` Sergei Steshenko
2008-07-16 20:31       ` Landis McGauhey
2008-07-17  4:08       ` Rene Herman
2008-07-18 16:31   ` [Alsa-user] " Rene Herman
2008-07-18 17:46     ` Landis McGauhey
2008-07-18 19:35     ` Landis McGauhey
2008-07-18 19:47       ` Sergei Steshenko
2008-07-18 20:11         ` Landis McGauhey
2008-07-19  4:48           ` Rene Herman
2008-07-19 12:28             ` Landis McGauhey
2008-07-18 21:43     ` Landis McGauhey
  -- strict thread matches above, loose matches on Subject: below --
2008-07-16 13:38 Landis McGauhey
2008-07-16 14:40 ` [Alsa-user] " Rene Herman
2008-07-16 14:44   ` Rene Herman
2008-07-16 14:52     ` Rene Herman
2008-07-15 20:28 Landis McGauhey
2008-07-16  9:16 ` Rene Herman
2008-07-16 11:07   ` [Alsa-user] " Takashi Iwai
2008-07-15 14:59 Rene Herman
2008-07-15 15:01 ` Sergei Steshenko
2008-07-15 15:06   ` [Alsa-user] " Rene Herman
     [not found] <BLU137-W526424D3E9A79DA1437849959A0@phx.gbl>
     [not found] ` <48701633.7040601@keyaccess.nl>
     [not found]   ` <loom.20080708T141841-614@post.gmane.org>
     [not found]     ` <4873AB3B.1070403@keyaccess.nl>
     [not found]       ` <4873CED6.2040704@keyaccess.nl>
     [not found]         ` <4873D033.8010604@keyaccess.nl>
     [not found]           ` <BLU137-W434EEB6A014E95FD1E225C95910@phx.gbl>
     [not found]             ` <48769D84.1050102@keyaccess.nl>
     [not found]               ` <BLU137-W51DDE8E1756609BBE5CF7F95910@phx.gbl>
     [not found]                 ` <4876A0DE.2050803@keyaccess.nl>
     [not found]                   ` <BLU137-W23A4FF48E97AC32476FD6095900@phx.gbl>
     [not found]                     ` <4876AC75.2010305@keyaccess.nl>
     [not found]                       ` <BLU137-W541C318CC744C4BF6461DE95900@phx.gbl>
     [not found]                         ` <4876B329.80700@keyaccess.nl>
     [not found]                           ` <BLU137-W3234537335E7D553F03AF195900@phx.gbl>
     [not found]                             ` <48798CF7.6020303@keyaccess.nl>
     [not found]                               ` <loom.20080714T232812-533@post.gmane.org>
2008-07-15  0:11                                 ` Rene Herman
2008-07-15 13:11                                   ` Takashi Iwai
2008-07-15 14:19                                     ` Takashi Iwai
2008-07-15 14:42                                       ` [Alsa-user] " Rene Herman
2008-07-15 15:25                                         ` Landis McGauhey
2008-07-15 15:36                                           ` [Alsa-user] " Rene Herman
2008-07-15 17:02                                         ` Rene Herman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.