5T33Z0 / AppleALC-Guides

Guides for working with the AppleALC source code to get audio working on Wintel machines running macOS.
BSD 3-Clause "New" or "Revised" License
45 stars 14 forks source link

Amp Capabilities settings : #10

Open Baio1977 opened 5 months ago

Baio1977 commented 5 months ago

I'm trying to create a layout with full functions for my X1 Tablet 3rd Gen, after several tests this is what I understood:

Dump info Node 2 :

[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="ALC295 Analog", type="Audio", device=0 Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0 Amp-Out vals: [0x57 0x57] Converter: stream=0, channel=0 PCM: rates [0x40]: 48000 bits [0xe]: 16 20 24 formats [0x1]: PCM Power states: D0 D1 D2 D3 EPSS Power: setting=D0, actual=D0

How I set the Platforms69.xml since the node is OUT only Screenshot 2024-03-17 alle 12 19 47

Dump info Node 8:

[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="ALC295 Analog", type="Audio", device=0 Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1 Amp-In vals: [0x3f 0x3f] 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 EPSS Power: setting=D0, actual=D0 Connection: 1 0x23

Same approach for input nodes Screenshot 2024-03-17 alle 12 22 52

Dump info Node 27:

[Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out Control: name="Bass Speaker Playback Switch", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00] Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80] Pincap 0x00013734: IN OUT EAPD Detect Vref caps: HIZ 50 GRD 80 100 EAPD 0x2: EAPD Pin Default 0x90170150: [Fixed] Speaker at Int N/A Conn = Analog, Color = Unknown DefAssociation = 0x5, Sequence = 0x0 Misc = NO_PRESENCE Pin-ctls: 0x40: OUT VREF_HIZ Unsolicited: tag=00, enabled=0 Power states: D0 D1 D2 D3 EPSS Power: setting=D0, actual=D0 Connection: 2 0x02 0x03*

This node 27 being IN\OUT instead I set it like this Screenshot 2024-03-17 alle 12 37 08

Can we define this configuration as correct???

The result of my tests is fully functional, I improved the quality of the sounds in Output\Input and reduced noises\background disturbances.

But the work is still very long.........