All of lore.kernel.org
 help / color / mirror / Atom feed
* patch, and other via82xx (VT8235) capture problems
@ 2003-10-23  4:48 Zinx Verituse
  2003-10-23 16:47 ` Takashi Iwai
  0 siblings, 1 reply; 9+ messages in thread
From: Zinx Verituse @ 2003-10-23  4:48 UTC (permalink / raw)
  To: alsa-devel

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

I've attached a patch to fix a bug in the via82xx driver,
but I suspect the register is wrong for the VT8235 because
when I set the Input Source to 'Mic', no interrupts seem
to be getting triggered:

arecord: pcm_read:1110: read error: Input/output error

But as 'Line', it works (albeit with significantly reduced voltage and volume)

Are the specs for the VT8235 available anywhere?

Useful info:
Kernel: Linux 2.6.0-test7 (patched bug exists in CVS tree, too)
On-board sound card: 00:11.5 Class 0401: 1106:3059 (rev 50)
Motherboard: A7V333-X

-- 
Zinx Verituse

[-- Attachment #2: alsa-2.6.0-test7-via82xx-capture-source-fix.diff --]
[-- Type: text/plain, Size: 1127 bytes --]

--- linux-2.6.0-test7/sound/pci/via82xx.c.orig	2003-10-22 23:09:56.000000000 -0500
+++ linux-2.6.0-test7/sound/pci/via82xx.c	2003-10-22 23:05:48.000000000 -0500
@@ -1382,7 +1382,7 @@
 static int snd_via8233_capture_source_get(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol)
 {
 	via82xx_t *chip = snd_kcontrol_chip(kcontrol);
-	unsigned long port = chip->port + kcontrol->id.index ? (VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG_CAPTURE_CHANNEL;
+	unsigned long port = chip->port + (kcontrol->id.index ? (VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG_CAPTURE_CHANNEL);
 	ucontrol->value.enumerated.item[0] = inb(port) & VIA_REG_CAPTURE_CHANNEL_MIC ? 1 : 0;
 	return 0;
 }
@@ -1390,7 +1390,7 @@
 static int snd_via8233_capture_source_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t *ucontrol)
 {
 	via82xx_t *chip = snd_kcontrol_chip(kcontrol);
-	unsigned long port = chip->port + kcontrol->id.index ? (VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG_CAPTURE_CHANNEL;
+	unsigned long port = chip->port + (kcontrol->id.index ? (VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG_CAPTURE_CHANNEL);
 	unsigned long flags;
 	u8 val, oval;
 

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

end of thread, other threads:[~2003-10-28 18:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23  4:48 patch, and other via82xx (VT8235) capture problems Zinx Verituse
2003-10-23 16:47 ` Takashi Iwai
2003-10-24  1:05   ` Zinx Verituse
2003-10-24 13:14     ` Takashi Iwai
2003-10-24 20:59       ` Zinx Verituse
2003-10-25 14:31         ` Zinx Verituse
2003-10-27 10:41           ` Takashi Iwai
2003-10-27 21:35             ` Zinx Verituse
2003-10-28 18:32               ` Takashi Iwai

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.