From: Clemens Ladisch <clemens@ladisch.de>
To: Viliam Kubis <viliam.kubis@gmail.com>,
Lydia Wang <lydiawang@viatech.com.cn>
Cc: alsa-devel@alsa-project.org
Subject: Re: Smart 5.1 function not working on VIA VT1708S with *three* jacks on mainboard
Date: Thu, 08 Jul 2010 08:33:34 +0200 [thread overview]
Message-ID: <4C35713E.1090709@ladisch.de> (raw)
In-Reply-To: <op.vff0au0jy9cctd@localhost>
Viliam Kubis wrote:
> Hello, for quite some time the "Smart 5.1" function in alsa is not working
> properly when motherboard has only 3 audio jacks.
>
> speaker-test -c 4 -t wav -Dsurround40
>
> Channels count (4) not available for playbacks: Invalid argument
Please try the patch below.
(This function uses 0x12 and 0x13 as the NIDs for the center/LFE and
side DACs. Shouldn't these be 0x24 and 0x25, as per the datasheet?)
--- a/sound/pci/hda/patch_via.c
+++ b/sound/pci/hda/patch_via.c
@@ -2265,6 +2265,13 @@ static int vt1708_auto_fill_dac_nids(str
}
}
+ /* for Smart 5.1, line/mic inputs double as output pins */
+ if (cfg->line_outs == 1) {
+ spec->multiout.num_dacs = 3;
+ spec->multiout.dac_nids[AUTO_SEQ_SURROUND] = 0x11;
+ spec->multiout.dac_nids[AUTO_SEQ_CENLFE] = 0x12;
+ }
+
return 0;
}
next prev parent reply other threads:[~2010-07-08 6:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-30 22:02 Smart 5.1 function not working on VIA VT1708S with *three* jacks on mainboard Viliam Kubis
2010-07-06 22:19 ` Fwd: " Viliam Kubis
2010-07-08 6:33 ` Clemens Ladisch [this message]
2010-07-09 1:32 ` Raymond Yau
[not found] ` <op.vfkm5fn9y9cctd@localhost>
2010-07-09 11:05 ` Viliam Kubis
[not found] ` <op.vfi12awty9cctd@localhost>
2010-07-09 11:04 ` Viliam Kubis
[not found] ` <op.vfi2hgary9cctd@localhost>
2010-07-09 11:05 ` Viliam Kubis
2010-07-12 6:57 ` Clemens Ladisch
2010-07-12 10:58 ` Viliam Kubis
2010-07-22 20:36 ` Simon Schubert
-- strict thread matches above, loose matches on Subject: below --
2010-07-10 9:41 Raymond Yau
2010-07-10 12:39 ` Viliam Kubis
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=4C35713E.1090709@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=lydiawang@viatech.com.cn \
--cc=viliam.kubis@gmail.com \
/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 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.