For quite some time running umix would result in 'umix: ioctl request

1079790949 failed: Device not configured' error repeated over and over,
making it impossible to use. This patch fixes this.

PR:		ports/107806
Submitted by:	trasz <trasz@pin.if.uz.zgora.pl>
This commit is contained in:
Martin Wilke 2007-01-11 07:42:14 +00:00
parent 604e514e2f
commit 0503cf194e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182066

View file

@ -13,7 +13,7 @@
* oss_open() before initializing. */
int oss_init(void)
{
+#ifdef SOUND_MIXER_INFO
+#if 0
/* this is an OSS structure, defined in soundcard.h */
struct mixer_info oss_info;
+#endif
@ -24,7 +24,7 @@
mixer_ptr->numchan = SOUND_MIXER_NRDEVICES;
mixer_ptr->numchan = CLAMP(mixer_ptr->numchan,0,SOUND_MIXER_NRDEVICES);
+#ifdef SOUND_MIXER_INFO
+#if 0
/* get the mixer name */
eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);
strncpy(mixer_ptr->name, oss_info.name, sizeof(mixer_ptr->name));
@ -36,7 +36,7 @@
oss_set_curr_chan(i);
oss_update(OSS_UPD_READ);
}
+#ifdef SOUND_MIXER_INFO
+#if 0
/* init the modify counter */
eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);
mixer_ptr->modifycount = oss_info.modify_counter;
@ -48,7 +48,7 @@
* the device and compares it to the old */
static int oss_check_update(void)
{
+#ifdef SOUND_MIXER_INFO
+#if 0
struct mixer_info oss_info;
eioctl(mixer_ptr->fd, SOUND_MIXER_INFO, &oss_info);