From: Chris Rankin <rankinc@zip.com.au>
To: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Revised patch: Linux 2.4.0 ad1848 mixer ownership
Date: Mon, 8 Jan 2001 14:41:56 +0000 (GMT) [thread overview]
Message-ID: <200101081441.f08EfvP02088@wittsend.ukgateway.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 185 bytes --]
Hi,
This is a revised version of my ad1848 patch; instead of modifying the
static structures, update the "owner" fields in the audio_devs[] and
mixer_devs[] structures instead.
Chris
[-- Attachment #2: ASCII text --]
[-- Type: text/plain, Size: 1001 bytes --]
--- linux-vanilla/drivers/sound/ad1848.c Fri Aug 11 16:26:43 2000
+++ linux-2.4.0-ac3/drivers/sound/ad1848.c Mon Jan 8 14:32:39 2001
@@ -1900,9 +1900,6 @@
if(portc==NULL)
return -1;
- if (owner)
- ad1848_audio_driver.owner = owner;
-
if ((my_dev = sound_install_audiodrv(AUDIO_DRIVER_VERSION,
dev_name,
&ad1848_audio_driver,
@@ -1920,6 +1917,8 @@
audio_devs[my_dev]->portc = portc;
audio_devs[my_dev]->mixer_dev = -1;
+ if (owner)
+ audio_devs[my_dev]->d->owner = owner;
memset((char *) portc, 0, sizeof(*portc));
nr_ad1848_devs++;
@@ -1986,6 +1985,7 @@
if (sound_alloc_dma(dma_capture, devc->name))
printk(KERN_WARNING "ad1848.c: Can't allocate DMA%d\n", dma_capture);
}
+
if ((e = sound_install_mixer(MIXER_DRIVER_VERSION,
dev_name,
&ad1848_mixer_operations,
@@ -1993,6 +1993,8 @@
devc)) >= 0)
{
audio_devs[my_dev]->mixer_dev = e;
+ if (owner)
+ mixer_devs[e]->owner = owner;
}
return my_dev;
}
reply other threads:[~2001-01-08 14:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200101081441.f08EfvP02088@wittsend.ukgateway.net \
--to=rankinc@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).