All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Viliam Kubis" <viliam.kubis@gmail.com>
To: Raymond Yau <superquad.vortex2@gmail.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: Smart 5.1 function not working on VIA VT1708S with *three* jacks on mainboard
Date: Fri, 09 Jul 2010 13:05:28 +0200	[thread overview]
Message-ID: <op.vfko3ed8y9cctd@localhost> (raw)
In-Reply-To: <op.vfkm5fn9y9cctd@localhost>

It might be. It is important not to mix VT1708 and VT1708S. For VT1708S,
the following DACs are used in code:

  /* config dac list */
  switch (i) {
  case AUTO_SEQ_FRONT:
  	spec->multiout.dac_nids[i] = 0x10;
  	break;
  case AUTO_SEQ_CENLFE:
  	spec->multiout.dac_nids[i] = 0x24;
  	break;
  case AUTO_SEQ_SURROUND:
  	spec->multiout.dac_nids[i] = 0x11;
  	break;
  case AUTO_SEQ_SIDE:
  	spec->multiout.dac_nids[i] = 0x25;
  	break;
  }

  So 0x12 is not used for any of the surround outputs.

  On Fri, 09 Jul 2010 03:32:13 +0200, Raymond Yau
  <superquad.vortex2@gmail.com> wrote:

>> 2010/7/8 Clemens Ladisch <clemens@ladisch.de>
>>
>>> 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?)
>>>
>>
>> Node 0x12 seem to be for digital out since it connected to node 0x20
>>
>> I guess we still lack the info about the retasking of pink and blue  
>> jack to
>> the surround output
>>
>>
>> Node 0x12 [Audio Output] wcaps 0x611: Stereo Digital
>>   Control: name="IEC958 Playback Con Mask", index=0, device=0
>>   Control: name="IEC958 Playback Pro Mask", index=0, device=0
>>   Control: name="IEC958 Playback Default", index=0, device=0
>>   Control: name="IEC958 Playback Switch", index=0, device=0
>>   Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
>>   Device: name="VT1708S Digital", type="SPDIF", device=1
>>   Converter: stream=5, channel=0
>>   Digital: Enabled
>>   Digital category: 0x0
>>   PCM:
>>     rates [0x5e0]: 44100 48000 88200 96000 192000
>>     bits [0xe]: 16 20 24
>>     formats [0x1]: PCM
>>   Power states:  D0 D1 D2 D3
>>   Power: setting=D0, actual=D0
>>
>>
>> Node 0x20 [Pin Complex] wcaps 0x400701: Stereo Digital
>>   Pincap 0x00000010: OUT
>>   Pin Default 0x074311f0: [Jack] SPDIF Out at Ext Rear Panel
>>     Conn = ATAPI, Color = Black
>>     DefAssociation = 0xf, Sequence = 0x0
>>     Misc = NO_PRESENCE
>>   Pin-ctls: 0x40: OUT
>>   Power states:  D0 D1 D2 D3
>>   Power: setting=D0, actual=D0
>>   Connection: 1
>>      0x12
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@alsa-project.org
>> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

  parent reply	other threads:[~2010-07-09 11:05 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
2010-07-09  1:32     ` Raymond Yau
     [not found]       ` <op.vfkm5fn9y9cctd@localhost>
2010-07-09 11:05         ` Viliam Kubis [this message]
     [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=op.vfko3ed8y9cctd@localhost \
    --to=viliam.kubis@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=superquad.vortex2@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.