求组,alc269声卡问题,好心人进来看看
一直搞了几天,声卡还是不工作,图标还是灰色的,不知道是在哪个环节出了问题。从动手开始,就按照紫米大神的教程,一步一来的,AppleHDA修改过了,dsdt也修改过了。因为个人接触mac ox少,对于一些步骤和方法不知道有没有错误,请进来的好心人帮忙看一下,给小弟一些意见,让我也早日可以驱动alc269声卡。Codec: Realtek ALC269VB
Address: 0
Vendor Id: 0x10ec0269
Subsystem Id: 0x104313c7
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
rates : 44100 48000 96000 192000
bits : 16 20 24
formats : PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
IO: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 wcaps 0x1d: Stereo Amp-Out
Control: name="Headphone Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Device: name="ALC269VB Analog", type="Audio", device=0
Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
Amp-Out vals:
Converter: stream=8, channel=0
PCM:
rates : 44100 48000 96000 192000
bits : 16 20 24
formats : PCM
Node 0x03 wcaps 0x1d: Stereo Amp-Out
Control: name="Speaker Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
Amp-Out vals:
Converter: stream=8, channel=0
PCM:
rates : 44100 48000 96000 192000
bits : 16 20 24
formats : PCM
Node 0x04 wcaps 0xf00000: Mono
Node 0x05 wcaps 0xf00000: Mono
Node 0x06 wcaps 0x211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates : 44100 48000 88200 96000 192000
bits : 16 20 24
formats : PCM
Node 0x07 wcaps 0xf00000: Mono
Node 0x08 wcaps 0x10011b: Stereo Amp-In
Control: name="Capture Switch", index=0, device=0
Control: name="Capture Volume", index=0, device=0
Device: name="ALC269VB Analog", type="Audio", device=0
Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals:
Converter: stream=4, channel=0
SDI-Select: 0
PCM:
rates : 44100 48000 96000 192000
bits : 16 20 24
formats : PCM
Connection: 1
0x23
Node 0x09 wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals:
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates : 44100 48000 96000 192000
bits : 16 20 24
formats : PCM
Connection: 1
0x22
Node 0x0a wcaps 0xf00000: Mono
Node 0x0b wcaps 0x20010b: Stereo Amp-In
Control: name="Mic Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Mic Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Internal Mic Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=1, ofs=0
Control: name="Internal Mic Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=1, ofs=0
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals:
Connection: 5
0x18 0x19 0x1a 0x1b 0x1d
Node 0x0c wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals:
Connection: 2
0x02 0x0b
Node 0x0d wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals:
Connection: 2
0x03 0x0b
Node 0x0e wcaps 0xf00000: Mono
Node 0x0f wcaps 0x20010a: Mono Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals:
Connection: 2
0x02 0x0b
Node 0x10 wcaps 0xf00000: Mono
Node 0x11 wcaps 0xf00000: Mono
Node 0x12 wcaps 0x40000b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals:
Pincap 0x00000020: IN
Pin Default 0x411111f0: Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Node 0x13 wcaps 0xf00000: Mono
Node 0x14 wcaps 0x40018d: Stereo Amp-Out
Control: name="Speaker 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:
Pincap 0x00010014: OUT EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x90170110: Speaker at Int N/A
Conn = Analog, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c 0x0d*
Node 0x15 wcaps 0xf00000: Mono
Node 0x16 wcaps 0xf00000: Mono
Node 0x17 wcaps 0x40010c: Mono Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x00000010: OUT
Pin Default 0x411111f0: Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Connection: 1
0x0f
Node 0x18 wcaps 0x40018f: Stereo Amp-In Amp-Out
Control: name="Mic Boost Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Mic Jack", index=0, device=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals:
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x00001734: IN OUT Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x03a11820: Mic at Ext Left
Conn = 1/8, Color = Black
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=02, enabled=1
Connection: 1
0x0d
Node 0x19 wcaps 0x40008b: Stereo Amp-In
Control: name="Internal Mic Boost Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals:
Pincap 0x00001724: IN Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x90a7092f: Mic at Int N/A
Conn = Analog, Color = Unknown
DefAssociation = 0x2, Sequence = 0xf
Misc = NO_PRESENCE
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=00, enabled=0
Node 0x1a wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals:
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x0000003c: IN OUT HP Detect
Pin Default 0x411111f0: Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0d
Node 0x1b wcaps 0x40018f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals:
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x00000034: IN OUT Detect
Pin Default 0x411111f0: Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0d
Node 0x1c wcaps 0xf00000: Mono
Node 0x1d wcaps 0x400000: Mono
Pincap 0x00000020: IN
Pin Default 0x40089d2d: Line Out at Ext N/A
Conn = DIN, Color = Pink
DefAssociation = 0x2, Sequence = 0xd
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Node 0x1e wcaps 0x400381: Stereo Digital
Pincap 0x00000014: OUT Detect
Pin Default 0x411111f0: Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Connection: 1
0x06
Node 0x1f wcaps 0xf00000: Mono
Node 0x20 wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=25
Node 0x21 wcaps 0x40018d: Stereo Amp-Out
Control: name="Headphone Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Headphone Jack", index=0, device=0
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals:
Pincap 0x0000001c: OUT HP Detect
Pin Default 0x0321101f: HP Out at Ext Left
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0xf
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=01, enabled=1
Connection: 2
0x0c* 0x0d
Node 0x22 wcaps 0x30010b: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals:
Connection: 7
0x18* 0x19 0x1a 0x1b 0x1d 0x0b 0x12
Node 0x23 wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals:
Connection: 6
0x18 0x19 0x1a 0x1b 0x1d 0x0b
这是ubuntu下提取的codec,依照上面所得的数据,根据紫米和wdcj的教程,整理出来:
Address; 0
Verdor Id : 0x10ec0269
0x12 0x 40 11 11 f0 Speaker at Ext Rear Black
0x14 0x 90 17 01 10 Speaker at Int N/A Unknown
0x17 0x 40 11 11 f0 Speaker at Ext Rear Black
0x18 0x 03 a1 18 20 Mic at Ext Left Black VREF_80
0x19 0x 90 a7 09 20 Mic at Int N/A Unknown VREF_80
0x1a 0x 40 11 11 f0 Speaker at Ext Rear Black
0x1b 0x 40 11 11 f0 Speaker at Ext Rear Black
0x1d 0x 40 08 9d 20 Line Out at Ext N/A Pink
0x1e 0x 40 11 11 f0 Speaker at Ext Rear Black
0x21 0x 03 21 10 10 HP Out at Ext Left Black
最终于得到configdata如下:
01471c10 01471d01 01471e17 01471f90 01871c20 01871d18 01871ea1 01871f03 01971c20 01971d09 01971ea7 01971f90 02171c10 02171d10 02171e21 02171f03 01470c02
AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/info.plist:
Root > IOKitPersonalities > HDA Hardware ConfigResource > HDAConfigDefault > 0 > ConfigData >(已经输入上面所获得的configdata)
再根据codec得出节点的关系如下(16进制):
speaker : 14--0d--03 = 20--13--3 (10进制)
mic at ext: 18--0d--03 = 24--13--3
mci at int: 19--22--09 = 25--34--9
hp out : 21--0c--02 = 33--12--2
dsdt里面已经修改成:
Device (HDEF)
{
Name (_ADR, 0x001B0000)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x12)
{
"AAPL,slot-name",
Buffer (0x08)
{
"PCIe x1"
},
"device_type",
Buffer (0x11)
{
"Audio Controller"
},
"vendor-id",
Buffer (0x04)
{
0xEC, 0x10, 0x00, 0x00
},
"device-id",
Buffer (0x04)
{
0x69, 0x02, 0x00, 0x00
},
"built-in",
Buffer (One)
{
0x00
},
"name",
Buffer (0x11)
{
"Realtek Alc269VB"
},
"layout-id",
Buffer (0x04)
{
0x0D, 0x01, 0x00, 0x00
},
"model",
Buffer (0x38)
{
"Realtek ALC269 @ Intel High Definition Audio Controller"
},
"PinConfigurations",
Buffer (Zero) {}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
Field (HDAR, WordAcc, NoLock, Preserve)
{
DCKA, 1,
Offset (0x01),
DCKM, 1,
, 6,
DCKS, 1,
Offset (0x08),
, 15,
PMES, 1
}
Name (_PRW, Package (0x02)
{
0x0D,
0x03
})
}
本人文笔水平有限,有什么问题会及时补充,麻烦好心人看一下,给一些宝贵的意见。
/Users/zhao/Documents/1.gif
页:
[1]