-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hifiberry DAC+ --- Linux 3.12.36 --- snd_soc_pcm512x module #846
Comments
When I build all modules statically but snd-soc-pcm512x/snd-soc-hifiberry-dacplus the error looks like this: modprobe snd_soc_pcm512x Jan 1 00:00:40 juplym kern.err kernel: [ 40.223460] pcm512x 1-004d: Failed to get supply 'AVDD': -517 AVDD supply: have i missed some power modules? |
We don't use regulators on Raspberry Pi - try removing OF_REGULATOR from your config. |
Correction - that should have been CONFIG_REGULATOR. |
Thanks, after removing pcm512x loads: [ 45.054314] pcm512x 1-004d: No SCLK, using BCLK: -2 But now the final DAC+ driver fails toload: cat /lib/modules/3.12.36-juplym/modules.builtin | grep i2s Is maybe a wrong name used in snd-rpi-hifiberry-dacplus? |
What do |
Only above error message multiple times: #dmesg|grep i2s
[ 1.842250] snd-rpi-hifiberry-dacplus snd-rpi-hifiberry-dacplus.0: ASoC: CPU DAI bcm2708-i2s.0
...
#dmesg|grep i2c
[ 1.710450] i2c /dev entries driver
[ 1.714102] bcm2708_i2c_init_pinmode(1,2)
[ 1.718109] bcm2708_i2c_init_pinmode(1,3)
[ 1.722708] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000) What does '.0' mean at the end of bcm2708-i2s.0? I2S bus 0? There is also no i2s in /dev, only i2c-1. |
And Unfortunately the i2s module is silent during a successful boot, and there is no equivalent to spidev or i2c-dev that creates /dev/ entries. I can't spend any more time on this, since you are creating a non-standard configuration, but I suggest you try using bcmrpi_defconfig, verify that it works, then work out what the significant differences are. |
All is build statically, so lsmod shows nothing. |
Note that it is normal to get some -517/probe deferral "errors" because load order is not guaranteed, but eventually all the components should be ready and the ALSA device will be created. |
OK, I've build with bcmrpi_defconfig and after startup only the module ipv6 is loaded. # modprobe -v i2c-bcm2708
# modprobe -v snd-soc-pcm512x
# modprobe -v snd-soc-bcm2708-i2s
# modprobe -v snd-soc-hifiberry-dacplus
# lsmod
Module Size Used by Not tainted
snd_soc_hifiberry_dacplus 1843 0
snd_soc_bcm2708_i2s 5087 2
regmap_mmio 1967 1 snd_soc_bcm2708_i2s
snd_soc_pcm512x 7329 1
snd_soc_core 91366 3 snd_soc_hifiberry_dacplus,snd_soc_bcm2708_i2s,snd_soc_pcm512x
snd_compress 6742 1 snd_soc_core
regmap_i2c 1101 2 snd_soc_pcm512x,snd_soc_core
snd_pcm_dmaengine 2968 1 snd_soc_core
regmap_spi 1311 2 snd_soc_pcm512x,snd_soc_core
snd_pcm 63385 3 snd_soc_core,snd_pcm_dmaengine
snd_page_alloc 3167 1 snd_pcm
snd_timer 16456 1 snd_pcm
snd 44121 7 snd_soc_core,snd_compress,snd_pcm,snd_timer
i2c_bcm2708 4131 0
ipv6 275085 14
#
#dmesg
...
[ 29.792681] bcm2708_i2c_init_pinmode(1,2)
[ 29.797107] bcm2708_i2c_init_pinmode(1,3)
[ 29.850292] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[ 30.151377] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 30.188009] pcm512x 1-004d: Completed initialisation - pcm512x_probe
[ 30.196992] pcm512x 1-004c: Failed to reset device: -5
[ 30.209908] pcm512x: probe of 1-004c failed with error -5
[ 30.368288] snd-rpi-hifiberry-dacplus snd-rpi-hifiberry-dacplus.0: pcm512x-hifi <-> bcm2708-i2s.0 mappin And it WORKS! But when I configure above probed modules as static modules, DAC does not work any more. |
Seems static modules are broken. I've checked if here is a .o file for each .ko module when module support is disabled. All drivers are there but loading fails. So I switched to loadable modules and use this modules: regmap-mmio
regmap-i2c
regmap-spi
i2c-bcm2708
spi-bcm2708
#
soundcore
snd
snd-timer
snd-compress
#
snd-page-alloc
snd-pcm
snd-pcm-dmaengine
#
snd-soc-core
snd-soc-pcm512x
snd-soc-bcm2708-i2s
snd-soc-hifiberry-dacplus Many thanks for your hints Phil! |
….org/drm/drm-intel into drm-fixes - Fix GitLab issue #446 causing GPU hangs: Do not restore invalid RS state - Fix GitLab issue #846: Restore coarse power gating that was disabled by initial RC66 context corruption security fixes. - Revert f6ec948 ("drm/i915: extend audio CDCLK>=2*BCLK constraint to more platforms") to avoid screen flicker - Fix to fill in unitialized uabi_instance in virtual engine uAPI - Add two missing W/As for ICL and EHL Signed-off-by: Dave Airlie <airlied@redhat.com> From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200109133458.GA15558@jlahtine-desk.ger.corp.intel.com
…/drm Pull drm fixes from Dave Airlie: "Pre-LCA pull request I'm not sure how things will look next week, myself and Daniel are at LCA and I'm speaking quite late, so if I get my talk finished I'll probably process fixes. This week has a bunch of i915 fixes, some amdgpu fixes, one sun4i, one core MST, and one core fb_helper fix. More details below: core: - mst Fix NO_STOP_BIT bit offset (Wayne) fb_helper: - fb_helper: Fix bits_per_pixel param set behavior to round up (Geert) sun4i: - Fix RGB_DIV clock min divider on old hardware (Chen-Yu) amdgpu: - Stability fix for raven - Reduce pixel encoding to if max clock is exceeded on HDMI to allow additional high res modes - enable DRIVER_SYNCOBJ_TIMELINE for amdgpu i915: - Fix GitLab issue #446 causing GPU hangs: Do not restore invalid RS state - Fix GitLab issue #846: Restore coarse power gating that was disabled by initial RC66 context corruption security fixes. - Revert f6ec948 ("drm/i915: extend audio CDCLK>=2*BCLK constraint to more platforms") to avoid screen flicker - Fix to fill in unitialized uabi_instance in virtual engine uAPI - Add two missing W/As for ICL and EHL" * tag 'drm-fixes-2020-01-10' of git://anongit.freedesktop.org/drm/drm: drm/amdgpu: add DRIVER_SYNCOBJ_TIMELINE to amdgpu drm/amd/display: Reduce HDMI pixel encoding if max clock is exceeded Revert "drm/amdgpu: Set no-retry as default." drm/fb-helper: Round up bits_per_pixel if possible drm/sun4i: tcon: Set RGB DCLK min. divider based on hardware model drm/i915/dp: Disable Port sync mode correctly on teardown drm/i915: Add Wa_1407352427:icl,ehl drm/i915: Add Wa_1408615072 and Wa_1407596294 to icl,ehl drm/i915/gt: Restore coarse power gating drm/i915/gt: Do not restore invalid RS state drm/i915: Limit audio CDCLK>=2*BCLK constraint back to GLK only drm/i915/gt: Mark up virtual engine uabi_instance drm/dp_mst: correct the shifting in DP_REMOTE_I2C_READ
rust: drop support for different optimization levels than C
I build Linux 3.12.36/Rasp B+ with a cut-down kernel defconfig and it could not load snd_soc_pcm512x:
[ 34.734191] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[ 34.803058] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[ 34.852349] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[ 34.909897] i2c /dev entries driver
[ 34.942189] bcm2708_i2c_init_pinmode(1,2)
[ 34.946273] bcm2708_i2c_init_pinmode(1,3)
[ 34.972325] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[ 35.056795] pcm512x 1-004d: Failed to get supply ‘AVDD': -517
[ 35.066081] pcm512x 1-004d: Failed to get supplies: -517
[ 35.071727] i2c 1-004d: Driver pcm512x requests probe deferral
[ 35.104583] snd-rpi-hifiberry-dacplus snd-rpi-hifiberry-dacplus.0: ASoC: CODEC pcm512x.1-004d not registered
[ 35.126124] snd-rpi-hifiberry-dacplus snd-rpi-hifiberry-dacplus.0: snd_soc_register_card() failed: -517
[ 35.136162] platform snd-rpi-hifiberry-dacplus.0: Driver snd-rpi-hifiberry-dacplus requests probe deferral
with this module order (/etc/modules, no depmod installed)
bcm2708-dmaengine
virt-dma
regmap-mmio
spi-bcm2708
i2c-dev
i2c-bcm2708
snd-soc-bcm2708-i2s
snd_soc_pcm512x
snd_soc_hifiberry_dacplus
Has someone an idea what’s going on?
I see no errors using Volumio (3.18), but I assume it could also work with 3.12
The text was updated successfully, but these errors were encountered: