All of lore.kernel.org
 help / color / mirror / Atom feed
From: Raymond Yau <superquad.vortex2@gmail.com>
To: ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: Via VT2020: issues with kernel 2.6.38.{2, 3} (alsa 1.0.23) - working with 2.6.33.2 (alsa 1.0.21)
Date: Sun, 8 May 2011 14:40:36 +0800	[thread overview]
Message-ID: <BANLkTi=i+3CJLtY-1OtkFnvrzWz4+=d=VA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=9d5A+oa6Bh+fis4+WY=xNbbnkYw@mail.gmail.com>

2011/5/8 alex dot baldacchino dot alsasub at gmail dot com <
alex.baldacchino.alsasub@gmail.com>

>
>
> Notice also line "hda-codec: no NID for mapping control Independent
> HP:0:0".
> That's because function
>
> 'snd_hda_get_connections'      (patch_via.c)
>
> called by
>
> 'via_hp_build'
>
> returns 3 ( test for 'nums <= 1' fails and the function doesn't return),
> but function
>
> 'side_mute_channel',
>
> called to init knew->subdevice when 'registering' via_hp_mixer[1], returns
> 0
> (default value) and so condition 'if(nid > 0)', in function
>
> 'snd_hda_add_nid'      (hda_codec.c),
>
> is not met and the error is triggered (by the way, param nid is of type
> hda_nid_t which in turn is an unsigned integer (u16), so, should that be
> 'if(nid != 0)' instead? just to avoid the risk of giving the impression
> that
> negative values are possible but mistaken (hda_nid_t is defined elsewhere).
> Also: param @nid, in function
> comment/documentation is defined as optional, but it doesn't seem to be).
> Incidentally, in /proc/asound/card0/codec#0 node 0x35 looks much like node
> 0x34 (with both older and newer kernel; posting excerpt for kernel
> 2.6.38.3):
>
> Node 0x34 [Audio Selector] wcaps 0x300501: Stereo
> Control: name="Independent HP", index=0, device=0
> Power states: D0 D1 D2 D3
> Power: setting=D0, actual=D0
> Connection: 3
> 0x08 0x0b 0x0c*
> Node 0x35 [Audio Selector] wcaps 0x300501: Stereo
> Power states: D0 D1 D2 D3
> Power: setting=D0, actual=D0
> Connection: 3
> 0x08 0x0b* 0x0c
>
> (notice connections and wcaps similarity, if relevant at all)
>
> Since I'm quite crazy, I've tried to modify 'side_mute_channel' to have it
> returning '0x35' for codec type 'VT1718S', but to no avail; I also tried to
> bypass 'snd_hda_add_nid', both avoiding 'via_hp_build' to clone
> via_hp_mixer[<something>] and/or modifying 'via_build_controls' and
> 'snd_hda_add_new_ctls' (hda_control.c) so
> that "Independent HP" ctls were handled by the latter (achieving this was
> just
> a matter of a pair of strcmp's to choose skipping the rest of an
> iteration or not),
> as I deem it was done in alsa 1.0.21 (embedded in kernel 2.6.33.2),
> but it didn't
> work (the only result I got this ways was to avoid that error message about
> nids
> in system logs).
>
>
Try the snapshot tarballs or git at

http://www.kernel.org/pub/linux/kernel/people/tiwai/docs/HD-Audio.html

Post the output of alsa-info.sh

What is the model of your computer (desktop/notebook) ?

How many audio jacks ?

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/729659

It seem that vt2020 is 10 channels HDA with 5 [Audio Output] 0x8, 0x9, 0xa,
0xb and 0xc

  reply	other threads:[~2011-05-08  6:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-07 17:30 Via VT2020: issues with kernel 2.6.38.{2, 3} (alsa 1.0.23) - working with 2.6.33.2 (alsa 1.0.21) alex dot baldacchino dot alsasub at gmail dot com
2011-05-08  6:40 ` Raymond Yau [this message]
2011-05-08 23:16   ` alex dot baldacchino dot alsasub at gmail dot com
2011-05-10  2:03     ` Raymond Yau
2011-05-16 16:03       ` alex dot baldacchino dot alsasub at gmail dot com
2011-05-18  3:36         ` Raymond Yau
2011-05-27 14:49           ` alex dot baldacchino dot alsasub at gmail dot com
2011-05-31 13:34             ` Raymond Yau
2011-06-01 16:16               ` alex dot baldacchino dot alsasub at gmail dot com
2011-06-07  8:32                 ` Raymond Yau
2011-06-08 14:33                   ` alex dot baldacchino dot alsasub at gmail dot com
2011-06-09 16:08                     ` alex dot baldacchino dot alsasub at gmail dot com
2011-06-11 20:24                       ` alex dot baldacchino dot alsasub at gmail dot com
2011-06-19  1:46                         ` Raymond Yau
2011-06-20  1:19                           ` alex dot baldacchino dot alsasub at gmail dot com
2011-06-20  7:13                             ` Raymond Yau
2011-06-20 13:48                               ` alex dot baldacchino dot alsasub at gmail dot com
2011-06-14  4:05                     ` Raymond Yau
2011-06-18  8:29                     ` Raymond Yau
2011-06-19 12:44                       ` alex dot baldacchino dot alsasub at gmail dot com
2011-06-16 18:50 alex dot baldacchino dot alsasub at gmail dot com

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='BANLkTi=i+3CJLtY-1OtkFnvrzWz4+=d=VA@mail.gmail.com' \
    --to=superquad.vortex2@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /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.