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

[a52] Strange behavior with 5.1 surround on ALC1220 #21

Closed
davidebeatrici opened this issue May 5, 2021 · 3 comments
Closed

[a52] Strange behavior with 5.1 surround on ALC1220 #21

davidebeatrici opened this issue May 5, 2021 · 3 comments

Comments

@davidebeatrici
Copy link

davidebeatrici commented May 5, 2021

I originally encountered the issue ~1 year ago, when I started using a motherboard with an ALC1220 on it.

The out-of-box experience was flawless: I simply connected the optical SPDIF cable to my amplifier/receiver and stereo sound immediately worked.

Once I switched to 5.1 surround, audio output became extremely fast; even videos were affected by it, to the point that they were being reproduced in seconds instead of minutes.

After a few days of research and experiments I managed to workaround the issue by replacing the content of 60-a52-encoder.conf with:

pcm.a52 {
	@args [CARD]
	@args.CARD {
		type string
        }
	type rate
	slave {
		pcm {   
			type a52
			card $CARD
		}
		rate 48000
	}
}
pcm.pulse {
	type pulse
}
ctl.pulse {
	type pulse
}
pcm.!default {
	type pulse
}
ctl.!default {
	type pulse
}

Based on https://help.ubuntu.com/community/DigitalAC-3Pulseaudio#Configuring_asound.conf.

After that, I wanted to investigate the cause and report my findings to either ALSA or PulseAudio (depending on the results).

Unfortunately that never happened and I kinda forgot about it, as libasound2-plugins was updated a single time in the past year and thus I only had to replace the file's content once more.

Fast-forward to today: I switch from PulseAudio to PipeWire and while troubleshooting https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1143 I decided to try to restore the original file.

Interestingly, the behavior is different compared to PulseAudio: audio, instead of being fast, is crackling. It's basically as if a frame every two is being skipped.

Unfortunately PipeWire reports no errors whatsoever.

@davidebeatrici davidebeatrici changed the title [a52] Strange behavior with 5.1 surround on ALC1120 [a52] Strange behavior with 5.1 surround on ALC1220 May 5, 2021
@perexg
Copy link
Member

perexg commented May 25, 2021

#8 was merged.

@perexg perexg closed this as completed May 25, 2021
@davidebeatrici
Copy link
Author

Please note that the first commit causes audio not to work with PipeWire.

@davidebeatrici
Copy link
Author

Related issue: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1554

Could you tag a new version, please? As of the latest commit in master the issue appears to be completely fixed.

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

2 participants