From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Patrick Shirkey" Subject: Re: Testing/Debugging alc668 with ASUS N750JK Date: Fri, 1 Aug 2014 04:25:44 +1000 (EST) Message-ID: <59490.86.107.254.57.1406831144.squirrel@boosthardware.com> References: <53D1DC0B.1000905@gmail.com> <63638.86.107.254.57.1406266836.squirrel@boosthardware.com> <59187.86.107.254.57.1406362728.squirrel@boosthardware.com> <57315.86.107.254.57.1406609183.squirrel@boosthardware.com> <55293.86.107.254.57.1406791952.squirrel@boosthardware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from boosthardware.localdomain (boosthardware.com [88.198.122.139]) by alsa0.perex.cz (Postfix) with ESMTP id 86881265474 for ; Thu, 31 Jul 2014 20:25:49 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Thu, July 31, 2014 11:38 pm, Raymond Yau wrote: > http://git.alsa-project.org/?p=alsa.git;a=commitdiff;h=48ed9474fc6724dc1486d30e9a274ab27ec001da;hp=56c640a98975b03a6a78a44b2c01e49dfd7b5263 > > Have you try the fix ? >> I did not see that update. run.py works now without any modifications on this machine. I have generated a graph. http://boosthardware.com/hda_graph-1.png >> > >> > You can use hda-verb GET_PIN_SENSE to test all the pin complex nodes > which >> > pincap support DETECT >> > >> >> I have tried a few attempts but it's pretty confusing. >> >> These ones don't do anything: >> >> # hda-verb /dev/snd/hwC1D0 GET_PIN_SENSE >> # hda-verb /dev/snd/hwC1D0 0x0 GET_PIN_SENSE >> >> >> I don't know what to make of this output: > > Bit 31 is PD > > VALUE should return 0 when Jack is UNplugged and 0x80000000 when Jack is > plugged for those pin which support DETECT > > > But your alc668 is on card 1 , the second hda controller > Sorry. Missed that one. # hda-verb /dev/snd/hwC1D0 0x16 GET_PIN_SENSE PIN_CAP nid = 0x16, verb = 0xf09, param = 0xc value = 0x0 # hda-verb /dev/snd/hwC1D0 0x19 GET_PIN_SENSE PIN_CAP nid = 0x19, verb = 0xf09, param = 0xc value = 0x0 # hda-verb /dev/snd/hwC1D0 0x11a GET_PIN_SENSE PIN_CAP invalid nid 0x11a # hda-verb /dev/snd/hwC1D0 0x1a GET_PIN_SENSE PIN_CAP nid = 0x1a, verb = 0xf09, param = 0xc value = 0x0 # hda-verb /dev/snd/hwC1D0 0x1b GET_PIN_SENSE PIN_CAP nid = 0x1b, verb = 0xf09, param = 0xc value = 0x0 >> I see the following new controls >> >> Speaker CFLE (mute only) >> Speaker Front (mute + vol) >> Speaker Side (mute only) >> Speaker Surround (mute + vol) > > hda-jack-retask won't check whether your codec have enough audio output if > you changed all the nodes to speaker > > But the driver expect multiout support up to 8 channels when parsing the > pin > > As alc668 only support 6 channels, hda_generic.c just assign audio output > and create volume control but Jack detection controls and mute switch are > created according to the number of parsed pins which support Jack detect > and mute switch > > Do the headphone still work with pulseaudio since there is no headphone > playback volume and headphone is share SPEAKER FRONT PLAYBAACK VOLUME > control with front speaker ? > With speaker-test I can hear audio on the right channel speaker-test -c2 -t wav -D hw:1,0 audio comes out of front left/right speaker-test -c4 -t wav -D hw:1,0 front left/right has no audio rear left/right audio comes out of front left/right speakers # speaker-test -c6 -t wav -D hw:1,0 speaker-test 1.0.28 Playback device is hw:1,0 Stream parameters are 48000Hz, S16_LE, 6 channels WAV file(s) Channels count (6) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument > > if the connected retasked pin is not the correct pin > ,you can use hda_analyzer to change the pin ctls of the remaining > unconnected pin to OUT, unmute and coonect the pin to second/third dac > through audio mixers > This is a bit confusing to master. How should I approach it given the layout of the graph linked above? -- Patrick Shirkey Boost Hardware Ltd