Package setup-alsa-elbrus-401: Specfile

Name: setup-alsa-elbrus-401
Version: 0.1
Release: alt1

Summary: provide reasonable ALSA settings for Elbrus 401 PC
License: GNU FDL 1.2
Group: System/Configuration/Hardware

Url: https://www.alsa-project.org/main/index.php/Asoundrc
BuildArch: noarch

%description
%summary
(dmix setup with 48kHz output default for CS4281)

%prep

%install
mkdir -p %buildroot%_sysconfdir
cat >> %buildroot%_sysconfdir/asound.conf << EOF
# ALSA setup for Elbrus 401 PC
# hw0,0 is Radeon HDMI
# hw1,0 seems 48kHz only

defaults.pcm.!card CS4281
defaults.ctl.!card CS4281

pcm.!default {
	type plug
	slave.pcm "dmixer"
}

pcm.dmixer  {
 	type dmix
 	ipc_key 1024
 	slave {
		pcm "hw:1,0"
		period_time 0
		period_size 1024
		buffer_size 4096
		rate 48000
	}
	bindings {
		0 0
		1 1
	}
}

ctl.dmixer {
	type hw
	card 1
}
EOF

%files
%_sysconfdir/asound.conf

%changelog
* Tue Aug 15 2017 Michael Shigorin <mike@altlinux.org> 0.1-alt1
- initial release