From dominic@host213-123-128-27.btopenworld.com  Sat May 26 14:23:06 2001
Return-Path: <dominic@host213-123-128-27.btopenworld.com>
Received: from host213-123-128-27.btopenworld.com (host213-123-128-27.btopenworld.com [213.123.128.27])
	by hub.freebsd.org (Postfix) with ESMTP id D983837B423
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 May 2001 14:23:01 -0700 (PDT)
	(envelope-from dominic@host213-123-128-27.btopenworld.com)
Received: (from root@localhost)
	by host213-123-128-27.btopenworld.com (8.11.3/8.11.3) id f4QLN0w43223;
	Sat, 26 May 2001 22:23:00 +0100 (BST)
	(envelope-from dominic)
Message-Id: <200105262123.f4QLN0w43223@host213-123-128-27.btopenworld.com>
Date: Sat, 26 May 2001 22:23:00 +0100 (BST)
From: dominic_marks@btinternet.com
Reply-To: dominic@btinternet.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: PCM Audio modules lock out mixer application
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         27668
>Category:       kern
>Synopsis:       PCM Audio modules lock out mixer application
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 26 14:30:00 PDT 2001
>Closed-Date:    Sun May 27 06:09:29 PDT 2001
>Last-Modified:  Sun May 27 06:09:44 PDT 2001
>Originator:     Dominic Marks
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Individual
>Environment:
FreeBSD
System: FreeBSD host213-123-128-27.btopenworld.com 4.3-STABLE FreeBSD 4.3-STABLE #28: Tue May 15 21:31:40 BST 2001 dominic@host213-123-131-112.btopenworld.com:/usr/src/sys/compile/APOLLO i386


>Description:
	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.]
	
>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.

>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.
>Release-Note:
>Audit-Trail:

From: Dominic Marks <dominic_marks@btinternet.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/27668: PCM Audio modules lock out mixer application
Date: Sat, 26 May 2001 23:03:21 +0100

 My apolgies for sending my e-mail address incorrectly. The correct address
 is dominic_marks@btinternet.com, not dominic@btinternet.com.
 
 Sorry :)

From: George Reid <greid@FreeBSD.org>
To: dominic@btinternet.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/27668: PCM Audio modules lock out mixer application
Date: Sat, 26 May 2001 23:20:59 +0100 (BST)

 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  |
 +-------------------+---------------------+
 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Sun May 27 06:09:29 PDT 2001 
State-Changed-Why:  
Pilot error. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27668 
>Unformatted:
