This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TAS2781: TAS2781 在lenovo R9000P laptop,没有声音输出

Part Number: TAS2781

Dear support,

根据FAE提供的信息,x86平台的linux驱动在kernel 6.6已经更新了 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/?h=v6.6-rc4&qt=author&q=shenghao 。

我已经根据kernel6.6的修改,将patch加入到了kernel  6.4.12-zen1-1-zen 平台,通过加入日志,显示修改已经生效。

tas2781的驱动已经加载,但是报以下错误,请帮忙看看问题在哪?

[ 28.389093] amd_gpio AMDI0030:00: Invalid config param 0014
[ 28.389102] amd_gpio AMDI0030:00: Invalid config param 0001
[ 28.395386] ===tasdevice_i2c_probe===
[ 28.395389] ===tasdevice_i2c_probe=== acpi_id = TIAS2781
[ 28.395463] amd_gpio AMDI0030:00: Invalid config param 0014
[ 28.395472] amd_gpio AMDI0030:00: Invalid config param 0001
[ 28.395482] tas2781-codec i2c-TIAS2781:00: tasdevice_parse_dt: GPIO 106 request error

dmesg.log

硬件:AMD Ryzen, codec ALC287

系统:steamOS Holo 

kernel版本: 6.4.12-zen1-1-zen

  • 请根据以下文档要求,提供一下必要信息

    这个我问题可能是设备的codec的问题,也可能是厂家的ACPI信息的问题,我需要这些信息,进行判断

    Guideline on Laptop infomation collection.pdf

  • Dear shenghao,

     Aleardy uploader ACPI table, 

    DSDT.tar

     5481.dmesg.log

  • Dear Shenghao,

    设备安装windows系统,声音是正常的。在steamOS Holo系统下声音无输出。

    codec已经工作了,codec可以通过HP正常输出声音给耳机。

  • During playback to speaker, kind run following script.Tell me whether it can work?

    . 2pa-byps.sh 1

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/6/2pa_2D00_byps.sh

  • Dear Shenghao,

    Successful.

    Thanks!!!

  • Dear Shenghao,

    The shell script configuration AMP,Can not resolve the device boot sound.

    How to modify the driver, boot has sound?

  •  Dear Shenghao,

    There is no TIAS2781RCA2.bin?

    [ 27.935599] ====patch_alc269=====,vendor_id = 283902599 ,
    [ 27.936166] ==== tas2781_generic_fixup ======
    [ 27.936222] tas2781-hda i2c-TIAS2781:00: Direct firmware load for TIAS2781RCA2.bin failed with error -2
    [ 27.936225] tas2781-hda i2c-TIAS2781:00: Failed to read TIAS2781RCA2.bin

    1462.dmesg.log

  • Have you run the script?

  • Dear Shenghao,

    Already run script, Tesk ok.

    The shell script configuration AMP,Can not resolve the device boot sound.

    How to modify the driver, boot has sound?

  • Copy all the bin file in the firmware.7z to the /lib/firmware/, and reboot the laptop. This time you won't run the script any more.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/6/firmware.7z

  • Dear Shenghao,

    Test OK

  • Dear Shenghao,

    只有一个声卡在工作,另一个声卡可以识别到,但是未加载。

  • 什么叫一个声卡在工作?

  • R9000P的有左右声道,两个tas2781,只有一个可以出声。

  • 脚本两个能出声吗?

  • 你要不寄一个笔电过来,我们目前没有环境测试

  • 请寄个机台到上海

  • 你这个几台和上次有什么不同?为什么UU的位置不同?

  • 同一台电脑,我手里只有这一台。不好意思 没有多的电脑。

  • 测试不了啊,让我怎么debug

  • 这有可能是哪里的问题?可以远程帮忙看看吗?

  • 这是加了日志的log,能否帮忙看看,问题可能出在哪里?

    [ 27.857918] ===tas2781_get_i2c_res=== i2c salve address = 3f ,
    [ 27.857920] ===tas2781_get_i2c_res=== i2c salve address = 38 ,
    [ 27.861777] ACPI Warning: \_SB.NPCF._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20230331/nsarguments-61)
    [ 27.862959] ===tas2781_reset=== i2c salve address = 00 ,
    [ 27.863552] ===tas2781_reset=== i2c salve address = 00 ,
    [ 27.867995] systemd-journald[454]: Received client request to flush runtime journal.
    [ 27.870079] systemd-journald[454]: /var/log/journal/c6ce592796fe4694b07196d5a2a63ba5/system.journal: Monotonic clock jumped backwards relative to last journal entry, rotating.
    [ 27.870085] systemd-journald[454]: Rotating system journal.
    [ 27.871136] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input17
    [ 27.871189] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input18
    [ 27.871235] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input19
    [ 27.871275] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input20
    [ 27.871339] mt7921e 0000:04:00.0: ASIC revision: 79220010
    [ 27.886336] Generic FE-GE Realtek PHY r8169-0-700:00: attached PHY driver (mii_bus:phy_addr=r8169-0-700:00, irq=MAC)
    [ 27.904451] usbcore: registered new interface driver uvcvideo
    [ 27.917113] kvm_amd: TSC scaling supported
    [ 27.917116] kvm_amd: Nested Virtualization enabled
    [ 27.917117] kvm_amd: Nested Paging enabled
    [ 27.917122] kvm_amd: Virtual VMLOAD VMSAVE supported
    [ 27.917123] kvm_amd: Virtual GIF supported
    [ 27.917123] kvm_amd: Virtual NMI enabled
    [ 27.917124] kvm_amd: LBR virtualization supported
    [ 27.925579] ====patch_alc269=====,vendor_id = 283902599 ,
    [ 27.925973] ==== tas2781_generic_fixup ======
    [ 27.926106] snd_hda_codec_realtek hdaudioC1D0: bound i2c-TIAS2781:00 (ops tas2781_hda_comp_ops [snd_hda_scodec_tas2781_i2c])
    [ 27.926388] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC287: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
    [ 27.926391] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
    [ 27.926392] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
    [ 27.926393] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
    [ 27.926394] snd_hda_codec_realtek hdaudioC1D0: inputs:
    [ 27.926395] snd_hda_codec_realtek hdaudioC1D0: Mic=0x19
    [ 27.926396] snd_hda_codec_realtek hdaudioC1D0: Internal Mic=0x12
    [ 27.928244] ==== tas2781_generic_fixup ======
    [ 27.934155] MCE: In-kernel MCE decoding enabled.
    [ 27.936666] Bluetooth: hci0: Device setup in 141819 usecs
    [ 27.936670] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
    [ 27.946403] intel_rapl_common: Found RAPL domain package
    [ 27.946405] intel_rapl_common: Found RAPL domain core
    [ 27.951763] mt7921e 0000:04:00.0: HW/SW Version: 0x8a108a10, Build Time: 20230328143229a

    [ 27.964540] ==== tas2781_generic_fixup ======
    [ 27.964609] ==== tas2781_generic_fixup ======
    [ 27.979329] mt7921e 0000:04:00.0: WM Firmware Version: ____000000, Build Time: 20230328143313
    [ 27.982066] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:08:00.6/sound/card1/input21
    [ 27.982102] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:08:00.6/sound/card1/input22
    [ 27.998163] Bluetooth: hci0: AOSP extensions version v1.00
    [ 27.998168] Bluetooth: hci0: AOSP quality report is supported
    [ 28.040872] r8169 0000:07:00.0 enp7s0: No native access to PCI extended config space, falling back to CSI
    [ 28.063794] r8169 0000:07:00.0 enp7s0: Link is Down
    [ 28.164759] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [ 28.164761] Bluetooth: BNEP filters: protocol multicast
    [ 28.164763] Bluetooth: BNEP socket layer initialized
    [ 28.165666] Bluetooth: MGMT ver 1.22
    [ 28.168720] NET: Registered PF_ALG protocol family
    [ 28.260938] NET: Registered PF_QIPCRTR protocol family
    [ 28.879351] ucsi_acpi: probe of USBC000:00 failed with error -5
    [ 29.002055] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
    [ 29.066209] mt7921e 0000:04:00.0 wlp4s0: renamed from wlan0
    [ 29.134242] systemd-journald[454]: /var/log/journal/c6ce592796fe4694b07196d5a2a63ba5/user-1000.journal: Monotonic clock jumped backwards relative to last journal entry, rotating.
    [ 31.431457] IPv6: ADDRCONF(NETDEV_CHANGE): enp7s0: link becomes ready
    [ 31.431690] r8169 0000:07:00.0 enp7s0: Link is Up - 1Gbps/Full - flow control off
    [ 170.354226] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
    [ 170.419500] nvidia-uvm: Loaded the UVM driver, major device number 507.

  • Let me bring up the compiling platform, then handle this issue next week.