<p><br>
2012-7-27 下午4:40 於 "Florian Reitmeir" <<a href="mailto:florian@reitmeir.org">florian@reitmeir.org</a>> 寫道<br>
><br>
> i own an HP Z400 Workstation, and audio is not working as expected.<br>
><br>
> The Problem:<br>
><br>
> - if i mute the internal speaker, the sound for line out is also muted<br>
></p>
<p><a href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01716874&lang=en&cc=us&taskId=101&prodSeriesId=3718663&prodTypeId=12454">http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01716874&lang=en&cc=us&taskId=101&prodSeriesId=3718663&prodTypeId=12454</a></p>
<p>The internal speaker will be disabled if multi-streaming audio is enabled.</p>
<p>Refer to alc262 specification</p>
<p>Two stereo DACs support 16/20/24-bit PCM format for stereo audio playback on the rear panel, plus 2 channels of independent stereo sound output (multiple streaming) through the Front-Out-Left and Front-Out-Right channels </p>
<p>Supports MONO line output with independent volume control</p>
<p>> - pulse audio, detects the internal speaker as master, so if if use the volume control in gnome 3, line-out gets muted, and the internal speaker is used</p>
<p>the auto parser of hda codec does not differentitate those internal chassis mono speaker of the desktop (cfg->mono_out_pin) from those speaker of laptop (cfg->speaker_outs)</p>
<p>this also cause some lenovo workstation with ad1988 codec fail as the driver try to assign the fifth dac to the mono speaker instead of the headphone.</p>
<p>><br>
> - to hear something on line-out i use alsamixer, and control the volume of the "speaker" output to 0<br>
><br>
> - but even if i set the output of speaker to 0, i can hear the music very very silent..<br>
><br>
> - and last .. the control of "line" does nothing, mute/volume does not affect the output</p>
<p>a possible way is use node 0x02 for line out and mono speaker , node 0x03 for the headphone.</p>
<p>front playback volume use node 0x0c 's amp-out<br>
headphone playback volume use node 0x0d 's amp-out<br>
mono speaker volume use node 0x0e 's amp-out</p>
<p>the mono speaker playback switch cannot be the slave of virtual master. </p>
<p>the mono speaker should be muted when either line out or headphone is plugged.</p>
<p>><br>
> Here some hardware info, if you need more, please tell me.<br>
></p>
<p>> > cat /proc/asound/card0/codec\#0<br>
> Codec: Realtek ALC262<br>
> Address: 0<br>
> AFG Function Id: 0x1 (unsol 1)<br>
> Vendor Id: 0x10ec0262<br>
> Subsystem Id: 0x103c1309<br>
> Revision Id: 0x100202<br>
> No Modem Function Group found<br>
> Default PCM:<br>
> rates [0x560]: 44100 48000 96000 192000<br>
> bits [0xe]: 16 20 24<br>
> formats [0x1]: PCM<br>
> Default Amp-In caps: N/A<br>
> Default Amp-Out caps: N/A<br>
> GPIO: io=4, o=0, i=0, unsolicited=1, wake=0<br>
> IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0<br>
> IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0<br>
> IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0<br>
> IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0<br>
> Node 0x02 [Audio Output] wcaps 0x11: Stereo<br>
> Converter: stream=8, channel=0<br>
> PCM:<br>
> rates [0x560]: 44100 48000 96000 192000<br>
> bits [0xe]: 16 20 24<br>
> formats [0x1]: PCM<br>
> Node 0x03 [Audio Output] wcaps 0x11: Stereo<br>
> Device: name="ALC262 Analog", type="Audio", device=0<br>
> Converter: stream=8, channel=0<br>
> PCM:<br>
> rates [0x560]: 44100 48000 96000 192000<br>
> bits [0xe]: 16 20 24<br>
> formats [0x1]: PCM</p>
<p>> Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out<br>
> Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1<br>
> Amp-In vals: [0x00 0x00] [0x80 0x80]<br>
> Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0<br>
> Amp-Out vals: [0x01 0x01]<br>
> Connection: 2<br>
> 0x02 0x0b<br>
> Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out<br>
> Control: name="PCM Playback Volume", index=0, device=0<br>
> ControlAmp: chs=3, dir=Out, idx=0, ofs=0<br>
> Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1<br>
> Amp-In vals: [0x00 0x00] [0x00 0x00]<br>
> Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0<br>
> Amp-Out vals: [0x1d 0x1d]<br>
> Connection: 2<br>
> 0x03 0x0b<br>
> Node 0x0e [Audio Mixer] wcaps 0x20010e: Mono Amp-In Amp-Out<br>
> Control: name="Speaker Playback Volume", index=0, device=0<br>
> ControlAmp: chs=1, dir=Out, idx=0, ofs=0<br>
> Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1<br>
> Amp-In vals: [0x00] [0x00]<br>
> Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0<br>
> Amp-Out vals: [0x00]<br>
> Connection: 2<br>
> 0x02 0x0b</p>
<p>> Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out<br>
> Control: name="PCM Playback Switch", index=0, device=0<br>
> ControlAmp: chs=3, dir=Out, idx=0, ofs=0<br>
> Control: name="Line Out Jack", index=0, device=0<br>
> Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0<br>
> Amp-In vals: [0x00 0x00]<br>
> Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1<br>
> Amp-Out vals: [0x80 0x80]<br>
> Pincap 0x0000003e: IN OUT HP Detect Trigger<br>
> Pin Default 0x01014c10: [Jack] Line Out at Ext Rear<br>
> Conn = 1/8, Color = Green<br>
> DefAssociation = 0x1, Sequence = 0x0<br>
> Pin-ctls: 0x40: OUT<br>
> Unsolicited: tag=02, enabled=1<br>
> Connection: 2<br>
> 0x0c 0x0d*<br>
> Node 0x16 [Pin Complex] wcaps 0x40010c: Mono Amp-Out<br>
> Control: name="Speaker Playback Switch", index=0, device=0<br>
> ControlAmp: chs=1, dir=Out, idx=0, ofs=0<br>
> Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1<br>
> Amp-Out vals: [0x80]<br>
> Pincap 0x00000010: OUT<br>
> Pin Default 0x99030120: [Fixed] Line Out at Int ATAPI<br>
> Conn = ATAPI, Color = Unknown<br>
> DefAssociation = 0x2, Sequence = 0x0<br>
> Misc = NO_PRESENCE<br>
> Pin-ctls: 0x40: OUT<br>
> Connection: 1<br>
> 0x0e</p>
<p>> Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out<br>
> Control: name="Headphone Playback Switch", index=0, device=0<br>
> ControlAmp: chs=3, dir=Out, idx=0, ofs=0<br>
> Control: name="Front Headphone Jack", index=0, device=0<br>
> Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0<br>
> Amp-In vals: [0x00 0x00]<br>
> Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1<br>
> Amp-Out vals: [0x80 0x80]<br>
> Pincap 0x0000173e: IN OUT HP Detect Trigger<br>
> Vref caps: HIZ 50 GRD 80<br>
> Pin Default 0x02211c40: [Jack] HP Out at Ext Front<br>
> Conn = 1/8, Color = Black<br>
> DefAssociation = 0x4, Sequence = 0x0<br>
> Pin-ctls: 0xc0: OUT HP VREF_HIZ<br>
> Unsolicited: tag=01, enabled=1<br>
> Connection: 2<br>
> 0x0c 0x0d*</p>