[pulseaudio-discuss] [PATCH 0/2] Suppress the analog-output path when it's redundant
Raymond Yau
superquad.vortex2 at gmail.com
Sun Aug 17 09:19:44 PDT 2014
>
> The analog-output path should be used only when more specific outputs
> don't exist, so usually it should be suppressed, and currently that
> doesn't happen. One practical problem caused by that is that the
> analog-output port may get chosen during boot if headphones are
> plugged in, because analog-output has higher priority than headphones
> and the speaker port is unavailable[1]. That particular problem could
> maybe be fixed by decreasing the analog-output priority, or by
> tweaking module-switch-on-port-available, but this time I decided to
> fix the problem of analog-output appearing when it's redundant.
>
> [1] https://bugs.freedesktop.org/show_bug.cgi?id=74609
>
> Tanu Kaskinen (2):
> alsa-mixer: Fix path subset detection
> alsa-mixer: Ignore some elements in the analog-output path
>
> src/modules/alsa/alsa-mixer.c | 26 +++++++++----------
> src/modules/alsa/mixer/paths/analog-output.conf | 34
-------------------------
> 2 files changed, 13 insertions(+), 47 deletions(-)
>
> --
It seem that pulseaudio assume headphone playback volume always exist but
it seem that some hda codec only have one volume control
https://launchpadlibrarian.net/178486556/AlsaInfo.txt
Codec: Cirrus Logic CS4213
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10134213
Subsystem Id: 0x10280558
Revision Id: 0x100100
Node 0x02 [Audio Output] wcaps 0xb041d: Stereo Amp-Out
Control: name="PCM Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="PCM Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Device: name="CS4213 Analog", type="Audio", device=0
Amp-Out caps: ofs=0x73, nsteps=0x7f, stepsize=0x01, mute=1
Amp-Out vals: [0x48 0x48]
Converter: stream=8, channel=0
PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 11 samples
Node 0x04 [Pin Complex] wcaps 0x410581: Stereo
Control: name="Headphone Jack", index=0, device=0
Pincap 0x0000001c: OUT HP Detect
Pin Default 0x0321101f: [Jack] HP Out at Ext Left
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0xf
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=01, enabled=1
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 1 samples
Connection: 1
0x02
Node 0x05 [Pin Complex] wcaps 0x420581: Stereo
Control: name="Speaker Phantom Jack", index=0, device=0
Pincap 0x00000050: OUT Balanced
Pin Default 0x90170010: [Fixed] Speaker at Int N/A
Conn = Analog, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 2 samples
Connection: 1
0x02
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140818/f2ec3af4/attachment.html>
More information about the pulseaudio-discuss
mailing list