ALSA: 无法导入 hw:0 使用情况配置 -2

huangapple go评论89阅读模式
英文:

ALSA: failed to import hw:0 use case configuration -2

问题

我已将声卡配置存储在一个名为asound.state的文件中,alsactl 能够正确读取它,但在启动期间以及我手动运行该命令时,日志中会出现以下消息:

alsa-lib ../../../git/src/ucm/main.c:1412:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2

我不明白出了什么问题,也没有在网上找到太多信息。你有什么想法,可以让我修复这个错误,或者知道它的根源吗?

如果我运行 aplay -l 命令,会得到以下结果:

~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: mycard [mycard], device 0: 44004000.audio-controller-tlv320aic31xx-hifi tlv320aic31xx-hifi [44004000.audio-controller-tlv320aic31xx-hifi tlv320aic31xx-hifi]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

谢谢。

英文:

I have stored the configuration for my sound card in an asound.state file and alsactl is reading it fine, but during boot and whenever I try running the command manually, this message appears in the log:

alsa-lib ../../../git/src/ucm/main.c:1412:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2

I don't understand what is going wrong and I haven't found much online. Any ideas for how I could fix this error or what might be the origin of it?

This is what I get if I run aplay -l:

~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: mycard [mycard], device 0: 44004000.audio-controller-tlv320aic31xx-hifi tlv320aic31xx-hifi [44004000.audio-controller-tlv320aic31xx-hifi tlv320aic31xx-hifi]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Thank you.

答案1

得分: 1

经过更多的调查,我发现了这个命令,已经移除了错误消息:

alsactl --no-ucm restore

添加了 --no-ucm 部分后,问题得到了解决,所以问题可能是我的声卡不支持 UCM。

英文:

After some more investigation, I've found this command that has removed the error message:

alsactl --no-ucm restore

Adding that --no-ucm part has fixed it, so the problem was probably that my sound card doesn't support UCM.

huangapple
  • 本文由 发表于 2023年5月25日 23:26:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76333959.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定