linux/sound/pci/atiixp_modem.c
<<
>>
Prefs
   1/*
   2 *   ALSA driver for ATI IXP 150/200/250 AC97 modem controllers
   3 *
   4 *      Copyright (c) 2004 Takashi Iwai <tiwai@suse.de>
   5 *
   6 *   This program is free software; you can redistribute it and/or modify
   7 *   it under the terms of the GNU General Public License as published by
   8 *   the Free Software Foundation; either version 2 of the License, or
   9 *   (at your option) any later version.
  10 *
  11 *   This program is distributed in the hope that it will be useful,
  12 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  13 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14 *   GNU General Public License for more details.
  15 *
  16 *   You should have received a copy of the GNU General Public License
  17 *   along with this program; if not, write to the Free Software
  18 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  19 *
  20 */
  21
  22#include <asm/io.h>
  23#include <linux/delay.h>
  24#include <linux/interrupt.h>
  25#include <linux/init.h>
  26#include <linux/pci.h>
  27#include <linux/slab.h>
  28#include <linux/module.h>
  29#include <linux/mutex.h>
  30#include <sound/core.h>
  31#include <sound/pcm.h>
  32#include <sound/pcm_params.h>
  33#include <sound/info.h>
  34#include <sound/ac97_codec.h>
  35#include <sound/initval.h>
  36
  37MODULE_AUTHOR("Takashi Iwai <tiwai@suse.de>");
  38MODULE_DESCRIPTION("ATI IXP MC97 controller");
  39MODULE_LICENSE("GPL");
  40MODULE_SUPPORTED_DEVICE("{{ATI,IXP150/200/250}}");
  41
  42static int index = -2; /* Exclude the first card */
  43static char *id = SNDRV_DEFAULT_STR1;   /* ID for this card */
  44static int ac97_clock = 48000;
  45
  46module_param(index, int, 0444);
  47MODULE_PARM_DESC(index, "Index value for ATI IXP controller.");
  48module_param(id, charp, 0444);
  49MODULE_PARM_DESC(id, "ID string for ATI IXP controller.");
  50module_param(ac97_clock, int, 0444);
  51MODULE_PARM_DESC(ac97_clock, "AC'97 codec clock (default 48000Hz).");
  52
  53/* just for backward compatibility */
  54static bool enable;
  55module_param(enable, bool, 0444);
  56
  57
  58/*
  59 */
  60
  61#define ATI_REG_ISR                     0x00    /* interrupt source */
  62#define  ATI_REG_ISR_MODEM_IN_XRUN      (1U<<0)
  63on>
  
        (1U<<  v5CSa href="und/pci/ati1xp_modem.c#L63" id="L63" class="line" name="L56">  54static 
  
  
  
  
  
  
lxm.9idux.no kindly hosted by 92>st817=http://www.redpill-9idpro.no">Redpill Lidpro Aass=" 81.svider of LiduxoL57 ulting and operref57 ser5.6. since 1995.