MAX98357A on Raspberry Pi CM4. No volume control
Aleksandr Kuzemko <[email protected]> Mon, 14 Oct 2024 16:05:11 +0300
| Newsgroups | gmane.linux.alsa.user |
|---|---|
| Message-ID | <CAMb86oPxX8HbAKkoANpqGQ9qjJRP4Xh_cvE_2K47h_Sbd6tQcg@mail.gmail.com> |
--===============4339521022917672068==
Content-Type: multipart/alternative; boundary="0000000000004db01806246f7dc8"
--0000000000004db01806246f7dc8
Content-Type: text/plain; charset="UTF-8"
Problem - alsamixer can't control volume.
OS - Yocto based distributive. Problem appear after updating distro. On
early version sound works (thus HW is OK)
!!################################
!!ALSA Information Script v 0.5.3
!!################################
!!Script ran on: Mon Oct 14 12:57:42 UTC 2024
!!Linux Distribution
!!------------------
!!DMI Information
!!---------------
Manufacturer:
Product Name:
Product Version:
Firmware Version:
System SKU:
Board Vendor:
Board Name:
!!ACPI Device Status Information
!!---------------
!!ACPI SoundWire Device Status Information
!!---------------
!!Kernel Information
!!------------------
Kernel release: #1 SMP PREEMPT_RT Mon Oct 14 10:03:35 UTC 2024
Operating System: GNU/Linux
Architecture: aarch64
Processor: unknown
SMP Enabled: Yes
!!ALSA Version
!!------------
Driver version: k6.6.56-rt44-v7l-g8f7f4dd0a2ee-dirty
Library version:
Utilities version: 1.2.11
!!Loaded ALSA modules
!!-------------------
!!Sound Servers on this system
!!----------------------------
No sound servers found.
!!Soundcards recognised by ALSA
!!-----------------------------
0 [MAX98357A ]: simple-card - MAX98357A
MAX98357A
!!PCI Soundcards installed in the system
!!--------------------------------------
!!Modprobe options (Sound related)
!!--------------------------------
snd_bcm2835: enable_headphones=0
snd_bcm2835: enable_hdmi=0
!!Loaded sound module options
!!---------------------------
!!Sysfs card info
!!---------------
!!Card: /sys/class/sound/card0
Driver: /sys/bus/platform/drivers/asoc-simple-card
Tree:
!!ALSA Device nodes
!!-----------------
crw-rw---- 1 root audio 116, 0 Oct 14 12:42 /dev/snd/controlC0
crw-rw---- 1 root audio 116, 16 Oct 14 12:42 /dev/snd/pcmC0D0p
crw-rw---- 1 root audio 116, 33 Oct 14 12:42 /dev/snd/timer
/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 Oct 14 12:42 .
drwxr-xr-x 3 root root 120 Oct 14 12:42 ..
lrwxrwxrwx 1 root root 12 Oct 14 12:42 platform-soc:sound
-> ../controlC0
!!ALSA configuration files
!!------------------------
!!System wide config file (/etc/asound.conf)
pcm.speakerbonnet {
type hw card 0
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm "speakerbonnet"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
channels 2
}
}
ctl.dmixer {
type hw card 0
}
pcm.softvol {
type softvol
slave.pcm "dmixer"
control.name "PCM"
control.card 0
}
ctl.softvol {
type hw card 0
}
pcm.!default {
type plug
slave.pcm "softvol"
}
!!Aplay/Arecord output
!!--------------------
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: MAX98357A [MAX98357A], device 0: fe203000.i2s-HiFi HiFi-0
[fe203000.i2s-HiFi HiFi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
ARECORD
**** List of CAPTURE Hardware Devices ****
!!Amixer output
!!-------------
!!-------Mixer controls for card MAX98357A
Card sysdefault:0 'MAX98357A'/'MAX98357A'
Mixer name : ''
Components : ''
Controls : 0
Simple ctrls : 0
!!Alsactl output
!!--------------
--startcollapse--
state.MAX98357A {
control {
}
}
--endcollapse--
!!All Loaded Modules
!!------------------
af_alg
algif_hash
algif_skcipher
bluetooth
bnep
brcmfmac
brcmfmac_wcc
brcmutil
btbcm
btintel
btqca
btrtl
btsdio
cfg80211
cmac
ecc
ecdh_generic
hci_uart
ipv6
nfnetlink
overlay
phy_generic
rfkill
sch_fq_codel
uio_pdrv_genirq
!!ALSA/HDA dmesg
!!--------------
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1
snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=0
smsc95xx.macaddr=E4:5F:01:4E:13:37 vc_mem.mem_base=0x3ec00000
vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyAMA3,115200
root=/dev/mmcblk0p2 rootfstype=ext4 rootwait fbcon=map:10
fbcon=font:SUN12x22 video=DSI-1:1200x1920M@60,rotate=90
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152
bytes, linear)
--
[ 0.362339] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)
[ 0.363065] vc4_hdmi fef00700.hdmi: 'dmas' DT property is missing or
empty, no HDMI audio
[ 0.363080] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops)
[ 0.363722] vc4_hdmi fef05700.hdmi: 'dmas' DT property is missing or
empty, no HDMI audio
[ 0.363732] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops)
--
[ 2.131441] clk: Disabling unused clocks
[ 2.131826] ALSA device list:
[ 2.131830] #0: MAX98357A
--0000000000004db01806246f7dc8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Problem - alsamixer can't control volume. <br></d=
iv><div>OS - Yocto based distributive. Problem appear after updating distro=
. On early version sound works (thus HW is OK) <br></div><div><br></div><di=
v>!!################################</div>!!ALSA Information Script v 0.5.3=
<br>!!################################<br><br>!!Script ran on: Mon Oct 14 1=
2:57:42 UTC 2024<br><br><br>!!Linux Distribution<br>!!------------------<br=
><br><br><br><br>!!DMI Information<br>!!---------------<br><br>Manufacturer=
: =C2=A0 =C2=A0 =C2=A0<br>Product Name: =C2=A0 =C2=A0 =C2=A0<br>Product Ver=
sion: =C2=A0 <br>Firmware Version: =C2=A0<br>System SKU: =C2=A0 =C2=A0 =C2=
=A0 =C2=A0<br>Board Vendor: =C2=A0 =C2=A0 =C2=A0<br>Board Name: =C2=A0 =C2=
=A0 =C2=A0 =C2=A0<br><br><br>!!ACPI Device Status Information<br>!!--------=
-------<br><br><br><br>!!ACPI SoundWire Device Status Information<br>!!----=
-----------<br><br><br><br>!!Kernel Information<br>!!------------------<br>=
<br>Kernel release: =C2=A0 =C2=A0#1 SMP PREEMPT_RT Mon Oct 14 10:03:35 UTC =
2024<br>Operating System: =C2=A0GNU/Linux<br>Architecture: =C2=A0 =C2=A0 =
=C2=A0aarch64<br>Processor: =C2=A0 =C2=A0 =C2=A0 =C2=A0 unknown<br>SMP Enab=
led: =C2=A0 =C2=A0 =C2=A0 Yes<br><br><br>!!ALSA Version<br>!!------------<b=
r><br>Driver version: =C2=A0 =C2=A0 k6.6.56-rt44-v7l-g8f7f4dd0a2ee-dirty<br=
>Library version: =C2=A0 =C2=A0<br>Utilities version: =C2=A01.2.11<br><br><=
br>!!Loaded ALSA modules<br>!!-------------------<br><br><br><br>!!Sound Se=
rvers on this system<br>!!----------------------------<br><br>No sound serv=
ers found.<br><br><br>!!Soundcards recognised by ALSA<br>!!----------------=
-------------<br><br>=C2=A00 [MAX98357A =C2=A0 =C2=A0 =C2=A0]: simple-card =
- MAX98357A<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 MAX98357A<br><br><br>!!PCI Soundcards installed in the sy=
stem<br>!!--------------------------------------<br><br><br><br>!!Modprobe =
options (Sound related)<br>!!--------------------------------<br><br>snd_bc=
m2835: enable_headphones=3D0<br>snd_bcm2835: enable_hdmi=3D0<br><br><br>!!L=
oaded sound module options<br>!!---------------------------<br><br><br>!!Sy=
sfs card info<br>!!---------------<br><br>!!Card: /sys/class/sound/card0<br=
>Driver: /sys/bus/platform/drivers/asoc-simple-card<br>Tree:<br><br><br>!!A=
LSA Device nodes<br>!!-----------------<br><br>crw-rw---- =C2=A0 =C2=A01 ro=
ot =C2=A0 =C2=A0 audio =C2=A0 =C2=A0 116, =C2=A0 0 Oct 14 12:42 /dev/snd/co=
ntrolC0<br>crw-rw---- =C2=A0 =C2=A01 root =C2=A0 =C2=A0 audio =C2=A0 =C2=A0=
116, =C2=A016 Oct 14 12:42 /dev/snd/pcmC0D0p<br>crw-rw---- =C2=A0 =C2=A01 =
root =C2=A0 =C2=A0 audio =C2=A0 =C2=A0 116, =C2=A033 Oct 14 12:42 /dev/snd/=
timer<br><br>/dev/snd/by-path:<br>total 0<br>drwxr-xr-x =C2=A0 =C2=A02 root=
=C2=A0 =C2=A0 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A060 Oct 14 12:4=
2 .<br>drwxr-xr-x =C2=A0 =C2=A03 root =C2=A0 =C2=A0 root =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 120 Oct 14 12:42 ..<br>lrwxrwxrwx =C2=A0 =C2=A01 root =C2=
=A0 =C2=A0 root =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A012 Oct 14 12:42 pl=
atform-soc:sound -> ../controlC0<br><br><br>!!ALSA configuration files<b=
r>!!------------------------<br><br>!!System wide config file (/etc/asound.=
conf)<br><br>pcm.speakerbonnet {<br>=C2=A0 =C2=A0type hw card 0<br>}<br><br=
>pcm.dmixer {<br>=C2=A0 =C2=A0type dmix<br>=C2=A0 =C2=A0ipc_key 1024<br>=C2=
=A0 =C2=A0ipc_perm 0666<br>=C2=A0 =C2=A0slave {<br>=C2=A0 =C2=A0 =C2=A0pcm =
"speakerbonnet"<br>=C2=A0 =C2=A0 =C2=A0period_time 0<br>=C2=A0 =
=C2=A0 =C2=A0period_size 1024<br>=C2=A0 =C2=A0 =C2=A0buffer_size 8192<br>=
=C2=A0 =C2=A0 =C2=A0rate 44100<br>=C2=A0 =C2=A0 =C2=A0channels 2<br>=C2=A0 =
=C2=A0}<br>}<br><br>ctl.dmixer {<br>=C2=A0 =C2=A0 type hw card 0<br>}<br><b=
r>pcm.softvol {<br>=C2=A0 =C2=A0 type softvol<br>=C2=A0 =C2=A0 slave.pcm &q=
uot;dmixer"<br>=C2=A0 =C2=A0 <a href=3D"http://control.name">control.n=
ame</a> "PCM"<br>=C2=A0 =C2=A0 control.card 0<br>}<br><br>ctl.sof=
tvol {<br>=C2=A0 =C2=A0 type hw card 0<br>}<br><br>pcm.!default {<br>=C2=A0=
=C2=A0 type =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 plug<br>=C2=A0 =C2=
=A0 slave.pcm =C2=A0 =C2=A0 =C2=A0 "softvol"<br>}<br><br><br>!!Ap=
lay/Arecord output<br>!!--------------------<br><br>APLAY<br><br>**** List =
of PLAYBACK Hardware Devices ****<br>card 0: MAX98357A [MAX98357A], device =
0: fe203000.i2s-HiFi HiFi-0 [fe203000.i2s-HiFi HiFi-0]<br>=C2=A0 Subdevices=
: 1/1<br>=C2=A0 Subdevice #0: subdevice #0<br><br>ARECORD<br><br>**** List =
of CAPTURE Hardware Devices ****<br><br>!!Amixer output<br>!!-------------<=
br><br>!!-------Mixer controls for card MAX98357A<br><br>Card sysdefault:0 =
'MAX98357A'/'MAX98357A'<br>=C2=A0 Mixer name : ''<b=
r>=C2=A0 Components : ''<br>=C2=A0 Controls =C2=A0 =C2=A0 =C2=A0: 0=
<br>=C2=A0 Simple ctrls =C2=A0: 0<br><br><br>!!Alsactl output<br>!!--------=
------<br><br>--startcollapse--<br>state.MAX98357A {<br> control {<br> }<br=
>}<br>--endcollapse--<br><br><br>!!All Loaded Modules<br>!!----------------=
--<br><br>af_alg<br>algif_hash<br>algif_skcipher<br>bluetooth<br>bnep<br>br=
cmfmac<br>brcmfmac_wcc<br>brcmutil<br>btbcm<br>btintel<br>btqca<br>btrtl<br=
>btsdio<br>cfg80211<br>cmac<br>ecc<br>ecdh_generic<br>hci_uart<br>ipv6<br>n=
fnetlink<br>overlay<br>phy_generic<br>rfkill<br>sch_fq_codel<br>uio_pdrv_ge=
nirq<br><br><br>!!ALSA/HDA dmesg<br>!!--------------<br><br>[ =C2=A0 =C2=A0=
0.000000] alternatives: applying boot alternatives<br>[ =C2=A0 =C2=A00.0000=
00] Kernel command line: coherent_pool=3D1M 8250.nr_uarts=3D1 snd_bcm2835.e=
nable_headphones=3D0 snd_bcm2835.enable_hdmi=3D0 =C2=A0smsc95xx.macaddr=3DE=
4:5F:01:4E:13:37 vc_mem.mem_base=3D0x3ec00000 vc_mem.mem_size=3D0x40000000 =
=C2=A0dwc_otg.lpm_enable=3D0 console=3DttyAMA3,115200 root=3D/dev/mmcblk0p2=
rootfstype=3Dext4 rootwait =C2=A0fbcon=3Dmap:10 fbcon=3Dfont:SUN12x22 vide=
o=3DDSI-1:1200x1920M@60,rotate=3D90<br>[ =C2=A0 =C2=A00.000000] Dentry cach=
e hash table entries: 262144 (order: 9, 2097152 bytes, linear)<br>--<br>[ =
=C2=A0 =C2=A00.362339] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops)<br=
>[ =C2=A0 =C2=A00.363065] vc4_hdmi fef00700.hdmi: 'dmas' DT propert=
y is missing or empty, no HDMI audio<br>[ =C2=A0 =C2=A00.363080] vc4-drm gp=
u: bound fef00700.hdmi (ops vc4_hdmi_ops)<br>[ =C2=A0 =C2=A00.363722] vc4_h=
dmi fef05700.hdmi: 'dmas' DT property is missing or empty, no HDMI =
audio<br>[ =C2=A0 =C2=A00.363732] vc4-drm gpu: bound fef05700.hdmi (ops vc4=
_hdmi_ops)<br>--<br>[ =C2=A0 =C2=A02.131441] clk: Disabling unused clocks<b=
r>[ =C2=A0 =C2=A02.131826] ALSA device list:<br>[ =C2=A0 =C2=A02.131830] =
=C2=A0 #0: MAX98357A<br></div>
--0000000000004db01806246f7dc8--
--===============4339521022917672068==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============4339521022917672068==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user
--===============4339521022917672068==--