All of lore.kernel.org
 help / color / mirror / Atom feed
* Incorrect name of PCM
@ 2018-07-22 15:38 Christopher Head
  2018-07-23  7:34 ` Takashi Iwai
  0 siblings, 1 reply; 11+ messages in thread
From: Christopher Head @ 2018-07-22 15:38 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 3787 bytes --]

Hi folks,
I have an Asus P8H77-I motherboard. On board is an Intel HDA connected
to a Via VT1708S codec. There are a number of analogue ports. In
addition to them, on the back panel are an HDMI port (from an
integrated GPU) and a TOSLINK port. The motherboard manual isn’t totally
clear on whether the HDMI port can also carry sound or only video, but
Windows claims to be able to send sound there, so probably yes. I don’t
use the integrated GPU, though.

Here’s the problem:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: VT1708S Alt Analog [VT1708S Alt
Analog] Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

OK, a little bit unexpected that there is only one digital device
listed rather than two. The codec datasheet says it should have two
digital output widgets. Maybe it’s due to the integrated GPU being
disabled though.

$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, VT1708S Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, VT1708S Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, VT1708S Digital
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output

Why is this wrong? Because when I play to the “hdmi” PCM, at least with
the S/PDIF switch turned on in mixer controls, the sound comes out the
TOSLINK port! It seems that the PCM naming is wrong. This is all
without any configuration file. Everything works fine, just the name is
wrong.

I don’t know whether turning off the S/PDIF switch results in the sound
coming out the HDMI port instead; maybe it does (I don’t have anything
that speaks HDMI and can also play sound to test with). Either way,
seems like it should be called either “spdif” (if it’s only the TOSLINK
port) or some combination of the two (if it’s both and switchable by
the mixer switch).

If replying, please note that I’m not subscribed.

Thanks!
-- 
Christopher Head

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-22 15:38 Incorrect name of PCM Christopher Head
@ 2018-07-23  7:34 ` Takashi Iwai
  2018-07-23 16:11   ` Christopher Head
  2018-07-23 16:14   ` Christopher Head
  0 siblings, 2 replies; 11+ messages in thread
From: Takashi Iwai @ 2018-07-23  7:34 UTC (permalink / raw)
  To: Christopher Head; +Cc: alsa-devel

On Sun, 22 Jul 2018 17:38:50 +0200,
Christopher Head wrote:
> 
> Hi folks,
> I have an Asus P8H77-I motherboard. On board is an Intel HDA connected
> to a Via VT1708S codec. There are a number of analogue ports. In
> addition to them, on the back panel are an HDMI port (from an
> integrated GPU) and a TOSLINK port. The motherboard manual isn’t totally
> clear on whether the HDMI port can also carry sound or only video, but
> Windows claims to be able to send sound there, so probably yes. I don’t
> use the integrated GPU, though.
> 
> Here’s the problem:
> $ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: PCH [HDA Intel PCH], device 0: VT1708S Analog [VT1708S Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 2: VT1708S Alt Analog [VT1708S Alt
> Analog] Subdevices: 0/1
>   Subdevice #0: subdevice #0
> card 0: PCH [HDA Intel PCH], device 3: VT1708S Digital [VT1708S Digital]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0

Please look at the card numbers here.  The HDMI output is provided
from a different HD-audio controller (of GPU), so it's assigned to a
different card.  If you pass only "hdmi" to applications, it
implicitly assumes the default card 0.

For playing via HDMI on your machine, you'd need to pass as "aplay -L"
shows, one of the following:

> hdmi:CARD=NVidia,DEV=0
>     HDA NVidia, HDMI 0
>     HDMI Audio Output
> hdmi:CARD=NVidia,DEV=1
>     HDA NVidia, HDMI 1
>     HDMI Audio Output
> hdmi:CARD=NVidia,DEV=2
>     HDA NVidia, HDMI 2
>     HDMI Audio Output
> hdmi:CARD=NVidia,DEV=3
>     HDA NVidia, HDMI 3
>     HDMI Audio Output

The device number depends on the HDMI port you plugged in.
The above can be in a shorter form like "hdmi:1,0", too.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-23  7:34 ` Takashi Iwai
@ 2018-07-23 16:11   ` Christopher Head
  2018-07-23 16:15     ` Takashi Iwai
  2018-07-23 16:14   ` Christopher Head
  1 sibling, 1 reply; 11+ messages in thread
From: Christopher Head @ 2018-07-23 16:11 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 898 bytes --]

On July 23, 2018 12:34:34 AM PDT, Takashi Iwai <tiwai@suse.de> wrote:
>
>For playing via HDMI on your machine, you'd need to pass as "aplay -L"
>shows, one of the following:
>
>> hdmi:CARD=NVidia,DEV=0
>>     HDA NVidia, HDMI 0
>>     HDMI Audio Output
>> hdmi:CARD=NVidia,DEV=1
>>     HDA NVidia, HDMI 1
>>     HDMI Audio Output
>> hdmi:CARD=NVidia,DEV=2
>>     HDA NVidia, HDMI 2
>>     HDMI Audio Output
>> hdmi:CARD=NVidia,DEV=3
>>     HDA NVidia, HDMI 3
>>     HDMI Audio Output
>
>The device number depends on the HDMI port you plugged in.
>The above can be in a shorter form like "hdmi:1,0", too.

Hi,
Thanks for responding. Did you miss this part of the aplay -L output?

hdmi:CARD=PCH,DEV=0
HDA Intel PCH, VT1708S Digital
HDMI Audio Output

This is the part I think is wrong, not the parts mentioning the NVidia HDMI outputs.

Thanks,

-- 
Christopher Head

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 244 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-23  7:34 ` Takashi Iwai
  2018-07-23 16:11   ` Christopher Head
@ 2018-07-23 16:14   ` Christopher Head
  1 sibling, 0 replies; 11+ messages in thread
From: Christopher Head @ 2018-07-23 16:14 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 921 bytes --]

On July 23, 2018 12:34:34 AM PDT, Takashi Iwai <tiwai@suse.de> wrote:
>
>For playing via HDMI on your machine, you'd need to pass as "aplay -L"
>shows, one of the following:
>
>> hdmi:CARD=NVidia,DEV=0
>>     HDA NVidia, HDMI 0
>>     HDMI Audio Output
>> hdmi:CARD=NVidia,DEV=1
>>     HDA NVidia, HDMI 1
>>     HDMI Audio Output
>> hdmi:CARD=NVidia,DEV=2
>>     HDA NVidia, HDMI 2
>>     HDMI Audio Output
>> hdmi:CARD=NVidia,DEV=3
>>     HDA NVidia, HDMI 3
>>     HDMI Audio Output
>
>The device number depends on the HDMI port you plugged in.
>The above can be in a shorter form like "hdmi:1,0", too.

Hi,
Thanks for responding. Did you miss this part of the aplay -L output?

hdmi:CARD=PCH,DEV=0
HDA Intel PCH, VT1708S Digital
HDMI Audio Output

This is the part I think is wrong, not the parts mentioning the NVidia HDMI outputs.

Thanks,

-- 
Christopher Head
-- 
Christopher Head

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 244 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-23 16:11   ` Christopher Head
@ 2018-07-23 16:15     ` Takashi Iwai
  2018-07-23 16:21       ` Christopher Head
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Iwai @ 2018-07-23 16:15 UTC (permalink / raw)
  To: Christopher Head; +Cc: alsa-devel

On Mon, 23 Jul 2018 18:11:38 +0200,
Christopher Head wrote:
> 
> On July 23, 2018 12:34:34 AM PDT, Takashi Iwai <tiwai@suse.de> wrote:
> >
> >For playing via HDMI on your machine, you'd need to pass as "aplay -L"
> >shows, one of the following:
> >
> >> hdmi:CARD=NVidia,DEV=0
> >>     HDA NVidia, HDMI 0
> >>     HDMI Audio Output
> >> hdmi:CARD=NVidia,DEV=1
> >>     HDA NVidia, HDMI 1
> >>     HDMI Audio Output
> >> hdmi:CARD=NVidia,DEV=2
> >>     HDA NVidia, HDMI 2
> >>     HDMI Audio Output
> >> hdmi:CARD=NVidia,DEV=3
> >>     HDA NVidia, HDMI 3
> >>     HDMI Audio Output
> >
> >The device number depends on the HDMI port you plugged in.
> >The above can be in a shorter form like "hdmi:1,0", too.
> 
> Hi,
> Thanks for responding. Did you miss this part of the aplay -L output?

No.

> hdmi:CARD=PCH,DEV=0
> HDA Intel PCH, VT1708S Digital
> HDMI Audio Output
> 
> This is the part I think is wrong, not the parts mentioning the NVidia HDMI outputs.

Just ignore this entry.  alsa-lib tries to parse the all possible
outputs that are provided from the kernel interface.  Due to
historical reasons, this digital output might be either SPDIF or HDMI,
and alsa-lib has no knowledge to distinguish easily, hence both spdif
and hdmi device names are provided equally for such a case.

Again, on your machine, the HDMI output is the card#1, not card#0.
The hdmi alsa-lib definition for card#0 is nothing but an alias of the
general digital I/O.


HTH,

Takashi

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-23 16:15     ` Takashi Iwai
@ 2018-07-23 16:21       ` Christopher Head
  2018-07-23 17:40         ` Takashi Iwai
  0 siblings, 1 reply; 11+ messages in thread
From: Christopher Head @ 2018-07-23 16:21 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 619 bytes --]

On July 23, 2018 9:15:59 AM PDT, Takashi Iwai <tiwai@suse.de> wrote:
>Just ignore this entry.  alsa-lib tries to parse the all possible
>outputs that are provided from the kernel interface.  Due to
>historical reasons, this digital output might be either SPDIF or HDMI,
>and alsa-lib has no knowledge to distinguish easily, hence both spdif
>and hdmi device names are provided equally for such a case.

Not here, they aren’t. There is no PCM named “spdif” at all: it isn’t in the list, and if I type it, I can’t play to it for a reason that looks a lot like it doesn’t exist.

-- 
Christopher Head

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 244 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-23 16:21       ` Christopher Head
@ 2018-07-23 17:40         ` Takashi Iwai
  2018-07-24  3:17           ` Christopher Head
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Iwai @ 2018-07-23 17:40 UTC (permalink / raw)
  To: Christopher Head; +Cc: alsa-devel

On Mon, 23 Jul 2018 18:21:59 +0200,
Christopher Head wrote:
> 
> On July 23, 2018 9:15:59 AM PDT, Takashi Iwai <tiwai@suse.de> wrote:
> >Just ignore this entry.  alsa-lib tries to parse the all possible
> >outputs that are provided from the kernel interface.  Due to
> >historical reasons, this digital output might be either SPDIF or HDMI,
> >and alsa-lib has no knowledge to distinguish easily, hence both spdif
> >and hdmi device names are provided equally for such a case.
> 
> Not here, they aren’t. There is no PCM named “spdif” at all: it isn’t in the list, and if I type it, I can’t play to it for a reason that looks a lot like it doesn’t exist.

OK, then another possibility is a BIOS bug.  BIOS declares the pin as
HDMI incorrectly although it's a SPDIF.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-23 17:40         ` Takashi Iwai
@ 2018-07-24  3:17           ` Christopher Head
  2018-07-24  5:22             ` Takashi Iwai
  0 siblings, 1 reply; 11+ messages in thread
From: Christopher Head @ 2018-07-24  3:17 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 1295 bytes --]

On Mon, 23 Jul 2018 19:40:36 +0200
Takashi Iwai <tiwai@suse.de> wrote:

> OK, then another possibility is a BIOS bug.  BIOS declares the pin as
> HDMI incorrectly although it's a SPDIF.

That would appear to be the case. According to the VT1708S datasheet,
the typical application is for digital output widget node 0x12,
attached to pin complex node 0x20, to be used for S/PDIF, and digital
output widget node 0x15, attached to pin complex node 0x21, to be used
for HDMI. The datasheet’s default values for the Configuration Default
words for the two pin complex nodes agree with that configuration. This
also appears to be how my motherboard is configured.

However, I have attached /proc/asound/card0/codec#0; this file states
that node 0x20 is HDMI and 0x21 is S/PDIF, and having decoded the raw
words based on the Intel HDA specification revision 1.0a, I agree that
the kernel is decoding them correctly. I assume the kernel driver
doesn’t change these words, which means the information I’m seeing
there, since it’s not the codec default, must have been put there by
the BIOS, apparently erroneously.

Is this something that the ALSA project wants to (or even can) add a
quirk for? I am already running the most recent BIOS available.
-- 
Christopher Head

[-- Attachment #1.1.2: codec#0 --]
[-- Type: application/octet-stream, Size: 11233 bytes --]

Codec: VIA VT1708S
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x11060397
Subsystem Id: 0x10438415
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
GPIO: io=1, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x10 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Front Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="VT1708S Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  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 0x11 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Surround Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  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 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="HDMI", device=3
  Converter: stream=0, channel=0
  Digital: Enabled GenLevel
  Digital category: 0x2
  IEC Coding Type: 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 0x13 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="VT1708S Analog", type="Audio", device=0
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x12 0x12]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x17
Node 0x14 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x8b 0x8b]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x1e
Node 0x15 [Audio Output] wcaps 0x611: Stereo Digital
  Converter: stream=0, channel=0
  Digital: Enabled GenLevel
  Digital category: 0x2
  IEC Coding Type: 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 0x16 [Audio Mixer] wcaps 0x20050b: Stereo Amp-In
  Control: name="Rear Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Rear Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Front Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Front Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Line Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="Line Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x17 0x17] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 7
     0x10 0x1f 0x1a 0x1b 0x1e 0x1d 0x25
Node 0x17 [Audio Selector] wcaps 0x300501: Stereo
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 6
     0x1f 0x1a 0x1b 0x1e* 0x1d 0x16
Node 0x18 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
  Control: name="Surround Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x11
Node 0x19 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000014: OUT Detect
  Pin Default 0x410110f0: [N/A] Line Out at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x18
Node 0x1a [Pin Complex] wcaps 0x400581: Stereo
  Control: name="Rear Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
  Pin Default 0x01a19036: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x6
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=03, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x26
Node 0x1b [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00002334: IN OUT Detect
    Vref caps: HIZ 50 100
  Pin Default 0x0181303e: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x3, Sequence = 0xe
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=05, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x18
Node 0x1c [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Front Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x01014010: [Jack] Line Out at Ext Rear
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x16
Node 0x1d [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000233c: IN OUT HP Detect
    Vref caps: HIZ 50 100
  Pin Default 0x0221401f: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP VREF_HIZ
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x16 0x25*
Node 0x1e [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Front Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0000233c: IN OUT HP Detect
    Vref caps: HIZ 50 100
  Pin Default 0x02a19037: [Jack] Mic at Ext Front
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x7
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=04, enabled=1
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x16* 0x25
Node 0x1f [Pin Complex] wcaps 0x400401: Stereo
  Pincap 0x00000020: IN
  Pin Default 0x503701f0: [N/A] CD at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
Node 0x20 [Pin Complex] wcaps 0x400701: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x185600f0: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x12
Node 0x21 [Pin Complex] wcaps 0x400701: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x074511f0: [Jack] SPDIF Out at Ext Rear Panel
    Conn = Optical, 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
     0x15
Node 0x22 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000014: OUT Detect
  Pin Default 0x410160f0: [N/A] Line Out at Ext Rear
    Conn = 1/8, Color = Orange
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x26
Node 0x23 [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000014: OUT Detect
  Pin Default 0x410120f0: [N/A] Line Out at Ext Rear
    Conn = 1/8, Color = Grey
    DefAssociation = 0xf, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x27
Node 0x24 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Center Playback Volume", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="LFE Playback Volume", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  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 0x25 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="VT1708S Alt Analog", type="Audio", device=2
  Amp-Out caps: ofs=0x2a, nsteps=0x2a, stepsize=0x05, mute=0
  Amp-Out vals:  [0x1c 0x1c]
  Converter: stream=0, channel=0
  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 0x26 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
  Control: name="Center Playback Switch", index=0, device=0
    ControlAmp: chs=1, dir=Out, idx=0, ofs=0
  Control: name="LFE Playback Switch", index=0, device=0
    ControlAmp: chs=2, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x24
Node 0x27 [Audio Selector] wcaps 0x30050d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x25

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-24  3:17           ` Christopher Head
@ 2018-07-24  5:22             ` Takashi Iwai
  2018-07-24 15:39               ` Christopher Head
  0 siblings, 1 reply; 11+ messages in thread
From: Takashi Iwai @ 2018-07-24  5:22 UTC (permalink / raw)
  To: Christopher Head; +Cc: alsa-devel

On Tue, 24 Jul 2018 05:17:22 +0200,
Christopher Head wrote:
> 
> On Mon, 23 Jul 2018 19:40:36 +0200
> Takashi Iwai <tiwai@suse.de> wrote:
> 
> > OK, then another possibility is a BIOS bug.  BIOS declares the pin as
> > HDMI incorrectly although it's a SPDIF.
> 
> That would appear to be the case. According to the VT1708S datasheet,
> the typical application is for digital output widget node 0x12,
> attached to pin complex node 0x20, to be used for S/PDIF, and digital
> output widget node 0x15, attached to pin complex node 0x21, to be used
> for HDMI. The datasheet’s default values for the Configuration Default
> words for the two pin complex nodes agree with that configuration. This
> also appears to be how my motherboard is configured.
> 
> However, I have attached /proc/asound/card0/codec#0; this file states
> that node 0x20 is HDMI and 0x21 is S/PDIF, and having decoded the raw
> words based on the Intel HDA specification revision 1.0a, I agree that
> the kernel is decoding them correctly. I assume the kernel driver
> doesn’t change these words, which means the information I’m seeing
> there, since it’s not the codec default, must have been put there by
> the BIOS, apparently erroneously.
> 
> Is this something that the ALSA project wants to (or even can) add a
> quirk for? I am already running the most recent BIOS available.

You just need to disable the unused HDMI pin by setting the pin config
value, even without recompiling drivers.  It can be overridden by
"patch" file, as mentioned in Documentation/sound/hd-audio/notes.rst.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-24  5:22             ` Takashi Iwai
@ 2018-07-24 15:39               ` Christopher Head
  2018-07-24 15:57                 ` Takashi Iwai
  0 siblings, 1 reply; 11+ messages in thread
From: Christopher Head @ 2018-07-24 15:39 UTC (permalink / raw)
  To: Takashi Iwai, alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 588 bytes --]

On Tue, 24 Jul 2018 07:22:52 +0200
Takashi Iwai <tiwai@suse.de> wrote:

> You just need to disable the unused HDMI pin by setting the pin config
> value, even without recompiling drivers.  It can be overridden by
> "patch" file, as mentioned in Documentation/sound/hd-audio/notes.rst.

I didn’t disable it, rather switched the config words between the two
pins (since all the research I’ve done suggests that both outputs do
exist, they’re just labelled backwards). Now the PCM is named “iec958”
and everything is perfect. Thanks for the help!
-- 
Christopher Head

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Incorrect name of PCM
  2018-07-24 15:39               ` Christopher Head
@ 2018-07-24 15:57                 ` Takashi Iwai
  0 siblings, 0 replies; 11+ messages in thread
From: Takashi Iwai @ 2018-07-24 15:57 UTC (permalink / raw)
  To: Christopher Head; +Cc: alsa-devel

On Tue, 24 Jul 2018 17:39:35 +0200,
Christopher Head wrote:
> 
> On Tue, 24 Jul 2018 07:22:52 +0200
> Takashi Iwai <tiwai@suse.de> wrote:
> 
> > You just need to disable the unused HDMI pin by setting the pin config
> > value, even without recompiling drivers.  It can be overridden by
> > "patch" file, as mentioned in Documentation/sound/hd-audio/notes.rst.
> 
> I didn’t disable it, rather switched the config words between the two
> pins (since all the research I’ve done suggests that both outputs do
> exist, they’re just labelled backwards). Now the PCM is named “iec958”
> and everything is perfect. Thanks for the help!

Good to hear :)


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-07-24 15:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-22 15:38 Incorrect name of PCM Christopher Head
2018-07-23  7:34 ` Takashi Iwai
2018-07-23 16:11   ` Christopher Head
2018-07-23 16:15     ` Takashi Iwai
2018-07-23 16:21       ` Christopher Head
2018-07-23 17:40         ` Takashi Iwai
2018-07-24  3:17           ` Christopher Head
2018-07-24  5:22             ` Takashi Iwai
2018-07-24 15:39               ` Christopher Head
2018-07-24 15:57                 ` Takashi Iwai
2018-07-23 16:14   ` Christopher Head

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.