Re: ALC883 recording troubles...

From: Vegard Nossum
Date: Thu Jun 12 2008 - 13:30:12 EST


On Thu, Jun 12, 2008 at 6:55 PM, Vegard Nossum <vegard.nossum@xxxxxxxxx> wrote:
> Now I consulted the HDA specification, and I find this surprising:
>
> Verb 3h (set Amplifier Gain/Mute) has the following payload bits:
>
> 15 Set Output Amp
> 14 Set Input Amp
>
> ...but the payloads that I logged (a01a and 901a) would correspond to
> bit 15 being set, which is the Output Amp!

I applied this as well, just to make sure, and I tested again:

@@ -906,6 +908,9 @@ int snd_hda_codec_amp_update(struct hda_codec
*codec, hda_nid_t nid, int ch,
{
struct hda_amp_info *info;

+ printk(KERN_ERR "snd_hda_codec_amp_update(): direction = %s\n",
+ direction == HDA_OUTPUT ? "output" : "input");
+
info = get_alloc_amp_hash(codec, HDA_HASH_KEY(nid, direction, idx));
if (!info)
return 0;

..and yes, changing the "Capture" level does indeed set the Output bit
when modifying this control. Maybe there's something wrong with the
set-up of mixer or pin controls that makes ALSA think this is an
output stream?

Is there something strange here:

Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Pin Default 0x02a19840: [Jack] Mic at Ext Front

Node 0x19 [Pin Complex] wcaps 0x40008b: Stereo Amp-In
Pin Default 0x99a30941: [Fixed] Mic at Int ATAPI

Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Pin Default 0x0281304e: [Jack] Line In at Ext Front

..or it certainly seems that all the inputs claim to have output
capability too. Maybe this is what is confusing ALSA?

I will try to change the Gain/Mute levels manually using hda-verb
using the Input bit instead of Output and see how it goes.


Vegard

--
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
-- E. W. Dijkstra, EWD1036
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/