Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/initval.h

    r598 r679  
     1/* SPDX-License-Identifier: GPL-2.0-or-later */
    12#ifndef __SOUND_INITVAL_H
    23#define __SOUND_INITVAL_H
     
    56 *  Init values for soundcard modules
    67 *  Copyright (c) by Jaroslav Kysela <perex@perex.cz>
    7  *
    8  *   This program is free software; you can redistribute it and/or modify
    9  *   it under the terms of the GNU General Public License as published by
    10  *   the Free Software Foundation; either version 2 of the License, or
    11  *   (at your option) any later version.
    12  *
    13  *   This program is distributed in the hope that it will be useful,
    14  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  *   GNU General Public License for more details.
    17  *
    18  *   You should have received a copy of the GNU General Public License
    19  *   along with this program; if not, write to the Free Software
    20  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    21  *
    228 */
    239
     
    3622#define MODULE_DEVICES(val)
    3723#define MODULE_PARM_SYNTAX(id, val)
    38 #define module_param_array(name, type, nump, perm)
    39 #define module_param(name, type, perm)
    4024#else
    4125#define MODULE_CLASSES(val) MODULE_GENERIC_STRING(info_classes, val)
     
    120104#define SNDRV_PORT_DESC         SNDRV_ENABLED ",allows:{{0,0xffff}},base:16"
    121105
     106#ifdef SNDRV_LEGACY_FIND_FREE_IOPORT
     107static long snd_legacy_find_free_ioport(const long *port_table, long size)
     108{
     109        while (*port_table != -1) {
     110                if (request_region(*port_table, size, "ALSA test")) {
     111                        release_region(*port_table, size);
     112                        return *port_table;
     113                }
     114                port_table++;
     115        }
     116        return -1;
     117}
     118#endif
     119
    122120#ifdef SNDRV_LEGACY_FIND_FREE_IRQ
    123121#include <linux/interrupt.h>
     
    128126}
    129127
    130 static int snd_legacy_find_free_irq(int *irq_table)
     128static int snd_legacy_find_free_irq(const int *irq_table)
    131129{
    132130        while (*irq_table != -1) {
    133131                if (!request_irq(*irq_table, snd_legacy_empty_irq_handler,
    134                                  IRQF_DISABLED | IRQF_PROBE_SHARED, "ALSA Test IRQ",
     132                                 IRQF_PROBE_SHARED, "ALSA Test IRQ",
    135133                                 (void *) irq_table)) {
    136134                        free_irq(*irq_table, (void *) irq_table);
     
    144142
    145143#ifdef SNDRV_LEGACY_FIND_FREE_DMA
    146 static int snd_legacy_find_free_dma(int *dma_table)
     144static int snd_legacy_find_free_dma(const int *dma_table)
    147145{
    148146        while (*dma_table != -1) {
Note: See TracChangeset for help on using the changeset viewer.