From 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:46:07 +0000 Subject: [PATCH] add audio --- kernel/sound/pcmcia/pdaudiocf/pdaudiocf.c | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/kernel/sound/pcmcia/pdaudiocf/pdaudiocf.c b/kernel/sound/pcmcia/pdaudiocf/pdaudiocf.c index 07f4b33..27d9da6 100644 --- a/kernel/sound/pcmcia/pdaudiocf/pdaudiocf.c +++ b/kernel/sound/pcmcia/pdaudiocf/pdaudiocf.c @@ -1,21 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Driver for Sound Core PDAudioCF soundcard * * Copyright (c) 2003 by Jaroslav Kysela <perex@perex.cz> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <sound/core.h> @@ -95,7 +82,7 @@ int i, err; struct snd_pdacf *pdacf; struct snd_card *card; - static struct snd_device_ops ops = { + static const struct snd_device_ops ops = { .dev_free = snd_pdacf_dev_free, }; @@ -152,6 +139,7 @@ /** * snd_pdacf_assign_resources - initialize the hardware and card instance. + * @pdacf: context * @port: i/o port for the card * @irq: irq number for the card * @@ -237,6 +225,7 @@ link->irq) < 0) goto failed; + pdacf->card->sync_irq = link->irq; return 0; failed: -- Gitblit v1.6.2