Skip to content

Kconfig allows broken state of CONFIG_SND_SOC_APPLE_AOP_AUDIO=y and CONFIG_SND_DMAENGINE_PCM=m #355

Closed

Description

@zzywysm

I created a config (attached at the end) with make oldconfig and make menuconfig, and I was permitted to set CONFIG_SND_SOC_APPLE_AOP_AUDIO=y and CONFIG_SND_DMAENGINE_PCM=m simultaneously. This led to the following linker errors when I attempted to build the kernel:

/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: Unexpected GOT/PLT entries detected!
/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: Unexpected run-time procedure linkages detected!
/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: sound/soc/apple/aop_audio.o: in function `aop_audio::aop_hw_params':
aop_audio.99e7aee4a1828b0f-cgu.0:(.text+0xa90): undefined reference to `snd_dmaengine_pcm_get_chan'
/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: aop_audio.99e7aee4a1828b0f-cgu.0:(.text+0xaac): undefined reference to `snd_hwparams_to_dma_slave_config'
/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: sound/soc/apple/aop_audio.o: in function `aop_audio::aop_pcm_open':
aop_audio.99e7aee4a1828b0f-cgu.0:(.text+0xbec): undefined reference to `snd_dmaengine_pcm_refine_runtime_hwparams'
/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: aop_audio.99e7aee4a1828b0f-cgu.0:(.text+0xc80): undefined reference to `snd_dmaengine_pcm_open'
/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: sound/soc/apple/aop_audio.o: in function `aop_audio::aop_pcm_close':
aop_audio.99e7aee4a1828b0f-cgu.0:(.text+0xd04): undefined reference to `snd_dmaengine_pcm_close_release_chan'
/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: sound/soc/apple/aop_audio.o:(.rodata+0x740): undefined reference to `snd_dmaengine_pcm_trigger'
/nix/store/140hd9zyzzvf8d8cscmgp85md3l9sqr9-binutils-2.43.1/bin/ld: sound/soc/apple/aop_audio.o:(.rodata+0x750): undefined reference to `snd_dmaengine_pcm_pointer'
make[2]: *** [../scripts/Makefile.vmlinux:34: vmlinux] Error 1
make[1]: *** [/build/source/Makefile:1173: vmlinux] Error 2
make[1]: *** Waiting for unfinished jobs....

Looks like there's a missing Kconfig restriction or two...

asahi-6.12-kernel-big.txt

Activity

  1. jannau commented on Dec 30, 2024

    @jannau
    Member

    missing select SND_DMAENGINE_PCM. fixed locally and will be included in the next tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions