Bug 27668

Summary: PCM Audio modules lock out mixer application
Product: Base System Reporter: dominic_marks <dominic_marks>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description dominic_marks 2001-05-26 22:30:00 UTC
	When using the PCM audio modules it appears that the mixer
	application is . I've observed this problem
	with my card: (`$ dmesg | grep pcm`)

	Preloaded elf module "snd_pcm.ko" at 0xc02ac3c0.
	pcm0: <AudioPCI ES1373-A> port 0x1400-0x143f irq 11 at device 12.0 on pci0

	When attempting to modify sound card properties such as the
	volume using the mixer application it fails to apply the changes
	exiting with this output: (`$ mixer -f /dev/dsp vol 100:100`):

	mixer: /dev/dsp: Device busy

	[This is my first PR, I hope I've followed the protocols correctly.]

Fix: 

The problem can be worked around in several ways. Either
	enter 'device	pcm' in the kernel in the standard way.
	Alternatively you can change the audio properites with
	the modules and mixer if the change in volume occurs
	immediately before any other usage of the audio devices
	is made. Such a task could be performed in a boot script
	however this is a highly undesireable method.
How-To-Repeat: 	Loading the kernel modules on boot (or demand) instead or
	adding the devices into the kernel configuration file will
	create a situation where the audio works correctly, however
	changing of sound card properties is not possible after the
	first usage of the device for audio purposes.
Comment 1 dominic_marks 2001-05-26 23:03:21 UTC
My apolgies for sending my e-mail address incorrectly. The correct address
is dominic_marks@btinternet.com, not dominic@btinternet.com.

Sorry :)
Comment 2 greid freebsd_committer freebsd_triage 2001-05-26 23:20:59 UTC
On Sat, 26 May 2001 dominic_marks@btinternet.com wrote:

> 	When attempting to modify sound card properties such as the
> 	volume using the mixer application it fails to apply the changes
> 	exiting with this output: (`$ mixer -f /dev/dsp vol 100:100`):

This is because /dev/dsp is not a mixer device. You want /dev/mixer (which
will be a symlink to /dev/mixer0 in your case).

--
+-------------------+---------------------+
|    George Reid    |  FreeBSD Committer  |
|  +44 7740 197460  |  greid@FreeBSD.org  |
+-------------------+---------------------+
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-05-27 14:09:29 UTC
State Changed
From-To: open->closed

Pilot error.