Skip to content
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

Browsing Audio options without setting an option corrupts .asoundrc #223

Open
moodeaudio opened this issue Oct 16, 2023 · 0 comments
Open

Comments

@moodeaudio
Copy link

Hi,

Ater opening raspy-config, looking at the Audio options then exiting out, the file /home/pi/.asoundrc file is missing the card number.

Latest Bookworm 64bit Lite

  1. sudo raspi-config
  2. Navigate to Audio
  3. Right-arrow then click Cancel
  4. Right-arrow then click Finish
pi@dev64-bk:~ $ cat ./.asoundrc
pcm.!default {
  type asym
  playback.pcm {
    type plug
    slave.pcm "output"
  }
  capture.pcm {
    type plug
    slave.pcm "input"
  }
}

pcm.output {
  type hw
  card 
}

ctl.!default {
  type hw
  card 
}

This results in aplay -l generating errors.

pi@dev64-bk:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
ALSA lib conf.c:2007:(_snd_config_load_with_include) _toplevel_:18:1:Unexpected char
ALSA lib conf.c:4096:(config_file_open) /home/pi/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:4018:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:4625:(snd_config_update_r) hooks failed, removing configuration
aplay: device_list:283: control open (0): Invalid argument
ALSA lib conf.c:2007:(_snd_config_load_with_include) _toplevel_:18:1:Unexpected char
ALSA lib conf.c:4096:(config_file_open) /home/pi/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:4018:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:4625:(snd_config_update_r) hooks failed, removing configuration
aplay: device_list:283: control open (1): Invalid argument
ALSA lib conf.c:2007:(_snd_config_load_with_include) _toplevel_:18:1:Unexpected char
ALSA lib conf.c:4096:(config_file_open) /home/pi/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:4018:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:4625:(snd_config_update_r) hooks failed, removing configuration
aplay: device_list:283: control open (2): Invalid argument

-Tim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant