From: Zinx Verituse <zinx@epicsol.org>
To: alsa-devel@lists.sourceforge.net
Subject: patch, and other via82xx (VT8235) capture problems
Date: Wed, 22 Oct 2003 23:48:43 -0500 [thread overview]
Message-ID: <20031023044843.GA19701@bliss> (raw)
[-- 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;
next reply other threads:[~2003-10-23 4:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 4:48 Zinx Verituse [this message]
2003-10-23 16:47 ` patch, and other via82xx (VT8235) capture problems 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
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=20031023044843.GA19701@bliss \
--to=zinx@epicsol.org \
--cc=alsa-devel@lists.sourceforge.net \
/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