Infineon / merus-audio-amp-hat-zw

MIT License
23 stars 6 forks source link

Alsamixer not working, dmesg showing error "ma120x0p 1-0020: ASoC: error at soc_component_read_no_lock on ma120x0p.1-0020: -121" #8

Closed reynolds17 closed 3 years ago

reynolds17 commented 3 years ago

Hi,

I freshly installed Raspbian 10 Buster Lite and did a full "apt full-upgrade".

cat /etc/*-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

aplay -lL" outputs:

null Discard all samples (playback) or generate zero samples (capture) default:CARD=sndrpimerusamp snd_rpi_merus_amp, Merus Audio Amp ma120x0p-amp-0 Default Audio Device sysdefault:CARD=sndrpimerusamp snd_rpi_merus_amp, Merus Audio Amp ma120x0p-amp-0 Default Audio Device dmix:CARD=sndrpimerusamp,DEV=0 snd_rpi_merus_amp, Merus Audio Amp ma120x0p-amp-0 Direct sample mixing device dsnoop:CARD=sndrpimerusamp,DEV=0 snd_rpi_merus_amp, Merus Audio Amp ma120x0p-amp-0 Direct sample snooping device hw:CARD=sndrpimerusamp,DEV=0 snd_rpi_merus_amp, Merus Audio Amp ma120x0p-amp-0 Direct hardware device without any conversions plughw:CARD=sndrpimerusamp,DEV=0 snd_rpi_merus_amp, Merus Audio Amp ma120x0p-amp-0 Hardware device with all software conversions List of PLAYBACK Hardware Devices card 0: sndrpimerusamp [snd_rpi_merus_amp], device 0: Merus Audio Amp ma120x0p-amp-0 [Merus Audio Amp ma120x0p-amp-0] Subdevices: 1/1 Subdevice #0: subdevice #0 `

BUT after starting Alsamixer, I am getting following error on dmesg:

[ 1179.134492] ma120x0p 1-0020: ASoC: error at soc_component_read_no_lock on ma120x0p.1-0020: -121 [ 1179.135458] ma120x0p 1-0020: ASoC: error at snd_soc_component_update_bits on ma120x0p.1-0020: -121

Alsamixer shows the controls of the snd_rpi_merus_amp but when I want to set the volume, limit etc, the values will be locked to huge values /maximum values and I cannot change them at all. See alsa/asaound.state:

state.sndrpimerusamp { control.1 { iface MIXER name 'A.Mstr Vol Volume' value 67 comment { access 'read write' type INTEGER count 1 range '0 - 50' dbmin -5000 dbmax 0 dbvalue.0 1700 } } control.2 { iface MIXER name 'B.L Vol Volume' value 67 comment { access 'read write' type INTEGER count 1 range '0 - 50' dbmin -5000 dbmax 0 dbvalue.0 1700 } } control.3 { iface MIXER name 'C.R Vol Volume' value 67 comment { access 'read write' type INTEGER count 1 range '0 - 50' dbmin -5000 dbmax 0 dbvalue.0 1700 } } control.4 { iface MIXER name 'D.Lim thresh Volume' value.0 67 value.1 67 comment { access 'read write' type INTEGER count 2 range '0 - 60' dbmin -5000 dbmax 1000 dbvalue.0 1700 dbvalue.1 1700 } } control.5 { iface MIXER name 'F.Limiter Enable' value Enabled comment { access 'read write' type ENUMERATED count 1 item.0 Bypassed item.1 Enabled } } control.6 { iface MIXER name 'G.Limiter Attck' value Fast comment { access 'read write' type ENUMERATED count 1 item.0 Slow item.1 Normal item.2 Fast } } control.7 { iface MIXER name 'H.Limiter Rls' value Slow comment { access 'read write' type ENUMERATED count 1 item.0 Slow item.1 Normal item.2 Fast } } control.8 { iface MIXER name 'I.Err flycap' value 3 comment { access read type ENUMERATED count 1 item.0 Ok item.1 Error item.2 Slow } } control.9 { iface MIXER name 'J.Err overcurr' value 3 comment { access read type ENUMERATED count 1 item.0 Ok item.1 Error item.2 Ok } } control.10 { iface MIXER name 'K.Err pllerr' value Error comment { access read type ENUMERATED count 1 item.0 Ok item.1 Error item.2 Ok } } control.11 { iface MIXER name 'L.Err pvddunder' value Ok comment { access read type ENUMERATED count 1 item.0 Ok item.1 Error item.2 Ok } } control.12 { iface MIXER name 'M.Err overtempw' value Ok comment { access read type ENUMERATED count 1 item.0 Ok item.1 Error item.2 Ok } } control.13 { iface MIXER name 'N.Err overtempe' value Ok comment { access read type ENUMERATED count 1 item.0 Ok item.1 Error item.2 Ok } } control.14 { iface MIXER name 'O.Err pinlowimp' value Ok comment { access read type ENUMERATED count 1 item.0 Ok item.1 Error item.2 Ok } } control.15 { iface MIXER name 'P.Err dcprot' value 3 comment { access read type ENUMERATED count 1 item.0 Ok item.1 Error item.2 Ok } } control.16 { iface MIXER name 'Q.PM Prof' value 7 comment { access 'read write' type ENUMERATED count 1 item.0 PMF0 item.1 PMF1 item.2 PMF2 item.3 PMF3 item.4 PMF4 } } control.17 { iface MIXER name 'R.Power Mode' value 'Dynamic power mode' comment { access 'read write' type ENUMERATED count 1 item.0 'Dynamic power mode' item.1 'Power mode 1' item.2 'Power mode 2' item.3 'Power mode 3' } } }

Sound is also not playing.

Do you have any solution? Thank you very much.

reynolds17 commented 3 years ago

it works now, my USB cable was too long, probably to less voltage