2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Driver for Sound Core PDAudioCF soundcard
|
|
|
|
*
|
2007-10-15 15:50:19 +08:00
|
|
|
* Copyright (c) 2003 by Jaroslav Kysela <perex@perex.cz>
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
* 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 <linux/delay.h>
|
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.
percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.
http://userweb.kernel.org/~tj/misc/slabh-sweep.py
The script does the followings.
* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.
* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.
* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.
The conversion was done in the following steps.
1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.
2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.
3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.
4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.
5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.
6. percpu.h was updated not to include slab.h.
7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).
* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig
8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.
Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.
Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
2010-03-24 16:04:11 +08:00
|
|
|
#include <linux/slab.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
#include <sound/core.h>
|
|
|
|
#include <sound/info.h>
|
|
|
|
#include "pdaudiocf.h"
|
|
|
|
#include <sound/initval.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static unsigned char pdacf_ak4117_read(void *private_data, unsigned char reg)
|
|
|
|
{
|
2005-11-17 22:07:38 +08:00
|
|
|
struct snd_pdacf *chip = private_data;
|
2005-04-17 06:20:36 +08:00
|
|
|
unsigned long timeout;
|
|
|
|
unsigned long flags;
|
|
|
|
unsigned char res;
|
|
|
|
|
|
|
|
spin_lock_irqsave(&chip->ak4117_lock, flags);
|
|
|
|
timeout = 1000;
|
|
|
|
while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) {
|
|
|
|
udelay(5);
|
|
|
|
if (--timeout == 0) {
|
|
|
|
spin_unlock_irqrestore(&chip->ak4117_lock, flags);
|
|
|
|
snd_printk(KERN_ERR "AK4117 ready timeout (read)\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_AK_IFR, (u16)reg << 8);
|
|
|
|
timeout = 1000;
|
|
|
|
while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) {
|
|
|
|
udelay(5);
|
|
|
|
if (--timeout == 0) {
|
|
|
|
spin_unlock_irqrestore(&chip->ak4117_lock, flags);
|
|
|
|
snd_printk(KERN_ERR "AK4117 read timeout (read2)\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
res = (unsigned char)pdacf_reg_read(chip, PDAUDIOCF_REG_AK_IFR);
|
|
|
|
spin_unlock_irqrestore(&chip->ak4117_lock, flags);
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void pdacf_ak4117_write(void *private_data, unsigned char reg, unsigned char val)
|
|
|
|
{
|
2005-11-17 22:07:38 +08:00
|
|
|
struct snd_pdacf *chip = private_data;
|
2005-04-17 06:20:36 +08:00
|
|
|
unsigned long timeout;
|
|
|
|
unsigned long flags;
|
|
|
|
|
|
|
|
spin_lock_irqsave(&chip->ak4117_lock, flags);
|
|
|
|
timeout = 1000;
|
|
|
|
while (inw(chip->port + PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) {
|
|
|
|
udelay(5);
|
|
|
|
if (--timeout == 0) {
|
|
|
|
spin_unlock_irqrestore(&chip->ak4117_lock, flags);
|
|
|
|
snd_printk(KERN_ERR "AK4117 ready timeout (write)\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
outw((u16)reg << 8 | val | (1<<13), chip->port + PDAUDIOCF_REG_AK_IFR);
|
|
|
|
spin_unlock_irqrestore(&chip->ak4117_lock, flags);
|
|
|
|
}
|
|
|
|
|
|
|
|
#if 0
|
2005-11-17 22:07:38 +08:00
|
|
|
void pdacf_dump(struct snd_pdacf *chip)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2009-02-05 23:11:58 +08:00
|
|
|
printk(KERN_DEBUG "PDAUDIOCF DUMP (0x%lx):\n", chip->port);
|
|
|
|
printk(KERN_DEBUG "WPD : 0x%x\n",
|
|
|
|
inw(chip->port + PDAUDIOCF_REG_WDP));
|
|
|
|
printk(KERN_DEBUG "RDP : 0x%x\n",
|
|
|
|
inw(chip->port + PDAUDIOCF_REG_RDP));
|
|
|
|
printk(KERN_DEBUG "TCR : 0x%x\n",
|
|
|
|
inw(chip->port + PDAUDIOCF_REG_TCR));
|
|
|
|
printk(KERN_DEBUG "SCR : 0x%x\n",
|
|
|
|
inw(chip->port + PDAUDIOCF_REG_SCR));
|
|
|
|
printk(KERN_DEBUG "ISR : 0x%x\n",
|
|
|
|
inw(chip->port + PDAUDIOCF_REG_ISR));
|
|
|
|
printk(KERN_DEBUG "IER : 0x%x\n",
|
|
|
|
inw(chip->port + PDAUDIOCF_REG_IER));
|
|
|
|
printk(KERN_DEBUG "AK_IFR : 0x%x\n",
|
|
|
|
inw(chip->port + PDAUDIOCF_REG_AK_IFR));
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
static int pdacf_reset(struct snd_pdacf *chip, int powerdown)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
u16 val;
|
|
|
|
|
|
|
|
val = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR);
|
|
|
|
val |= PDAUDIOCF_PDN;
|
|
|
|
val &= ~PDAUDIOCF_RECORD; /* for sure */
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val);
|
|
|
|
udelay(5);
|
|
|
|
val |= PDAUDIOCF_RST;
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val);
|
|
|
|
udelay(200);
|
|
|
|
val &= ~PDAUDIOCF_RST;
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val);
|
|
|
|
udelay(5);
|
|
|
|
if (!powerdown) {
|
|
|
|
val &= ~PDAUDIOCF_PDN;
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val);
|
|
|
|
udelay(200);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
void pdacf_reinit(struct snd_pdacf *chip, int resume)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
pdacf_reset(chip, 0);
|
|
|
|
if (resume)
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, chip->suspend_reg_scr);
|
|
|
|
snd_ak4117_reinit(chip->ak4117);
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_TCR, chip->regmap[PDAUDIOCF_REG_TCR>>1]);
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_IER, chip->regmap[PDAUDIOCF_REG_IER>>1]);
|
|
|
|
}
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
static void pdacf_proc_read(struct snd_info_entry * entry,
|
|
|
|
struct snd_info_buffer *buffer)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2005-11-17 22:07:38 +08:00
|
|
|
struct snd_pdacf *chip = entry->private_data;
|
2005-04-17 06:20:36 +08:00
|
|
|
u16 tmp;
|
|
|
|
|
|
|
|
snd_iprintf(buffer, "PDAudioCF\n\n");
|
|
|
|
tmp = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR);
|
|
|
|
snd_iprintf(buffer, "FPGA revision : 0x%x\n", PDAUDIOCF_FPGAREV(tmp));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
static void pdacf_proc_init(struct snd_pdacf *chip)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2005-11-17 22:07:38 +08:00
|
|
|
struct snd_info_entry *entry;
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
if (! snd_card_proc_new(chip->card, "pdaudiocf", &entry))
|
2006-04-28 21:13:41 +08:00
|
|
|
snd_info_set_text_ops(entry, chip, pdacf_proc_read);
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
struct snd_pdacf *snd_pdacf_create(struct snd_card *card)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2005-11-17 22:07:38 +08:00
|
|
|
struct snd_pdacf *chip;
|
2005-04-17 06:20:36 +08:00
|
|
|
|
[ALSA] Replace with kzalloc() - others
Documentation,SA11xx UDA1341 driver,Generic drivers,MPU401 UART,OPL3
OPL4,Digigram VX core,I2C cs8427,I2C lib core,I2C tea6330t,L3 drivers
AK4114 receiver,AK4117 receiver,PDAudioCF driver,PPC PMAC driver
SPARC AMD7930 driver,SPARC cs4231 driver,Synth,Common EMU synth
USB generic driver,USB USX2Y
Replace kcalloc(1,..) with kzalloc().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2005-09-09 20:22:34 +08:00
|
|
|
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
|
2005-04-17 06:20:36 +08:00
|
|
|
if (chip == NULL)
|
|
|
|
return NULL;
|
|
|
|
chip->card = card;
|
|
|
|
spin_lock_init(&chip->reg_lock);
|
|
|
|
spin_lock_init(&chip->ak4117_lock);
|
|
|
|
tasklet_init(&chip->tq, pdacf_tasklet, (unsigned long)chip);
|
|
|
|
card->private_data = chip;
|
|
|
|
|
|
|
|
pdacf_proc_init(chip);
|
|
|
|
return chip;
|
|
|
|
}
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
static void snd_pdacf_ak4117_change(struct ak4117 *ak4117, unsigned char c0, unsigned char c1)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2005-11-17 22:07:38 +08:00
|
|
|
struct snd_pdacf *chip = ak4117->change_callback_private;
|
2005-04-17 06:20:36 +08:00
|
|
|
unsigned long flags;
|
|
|
|
u16 val;
|
|
|
|
|
|
|
|
if (!(c0 & AK4117_UNLCK))
|
|
|
|
return;
|
|
|
|
spin_lock_irqsave(&chip->reg_lock, flags);
|
|
|
|
val = chip->regmap[PDAUDIOCF_REG_SCR>>1];
|
|
|
|
if (ak4117->rcs0 & AK4117_UNLCK)
|
|
|
|
val |= PDAUDIOCF_BLUE_LED_OFF;
|
|
|
|
else
|
|
|
|
val &= ~PDAUDIOCF_BLUE_LED_OFF;
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val);
|
|
|
|
spin_unlock_irqrestore(&chip->reg_lock, flags);
|
|
|
|
}
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
int snd_pdacf_ak4117_create(struct snd_pdacf *chip)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
int err;
|
|
|
|
u16 val;
|
|
|
|
/* design note: if we unmask PLL unlock, parity, valid, audio or auto bit interrupts */
|
|
|
|
/* from AK4117 then INT1 pin from AK4117 will be high all time, because PCMCIA interrupts are */
|
|
|
|
/* egde based and FPGA does logical OR for all interrupt sources, we cannot use these */
|
|
|
|
/* high-rate sources */
|
|
|
|
static unsigned char pgm[5] = {
|
|
|
|
AK4117_XTL_24_576M | AK4117_EXCT, /* AK4117_REG_PWRDN */
|
|
|
|
AK4117_CM_PLL_XTAL | AK4117_PKCS_128fs | AK4117_XCKS_128fs, /* AK4117_REQ_CLOCK */
|
|
|
|
AK4117_EFH_1024LRCLK | AK4117_DIF_24R | AK4117_IPS, /* AK4117_REG_IO */
|
|
|
|
0xff, /* AK4117_REG_INT0_MASK */
|
|
|
|
AK4117_MAUTO | AK4117_MAUD | AK4117_MULK | AK4117_MPAR | AK4117_MV, /* AK4117_REG_INT1_MASK */
|
|
|
|
};
|
|
|
|
|
|
|
|
err = pdacf_reset(chip, 0);
|
|
|
|
if (err < 0)
|
|
|
|
return err;
|
|
|
|
err = snd_ak4117_create(chip->card, pdacf_ak4117_read, pdacf_ak4117_write, pgm, chip, &chip->ak4117);
|
|
|
|
if (err < 0)
|
|
|
|
return err;
|
|
|
|
|
|
|
|
val = pdacf_reg_read(chip, PDAUDIOCF_REG_TCR);
|
|
|
|
#if 1 /* normal operation */
|
|
|
|
val &= ~(PDAUDIOCF_ELIMAKMBIT|PDAUDIOCF_TESTDATASEL);
|
|
|
|
#else /* debug */
|
|
|
|
val |= PDAUDIOCF_ELIMAKMBIT;
|
|
|
|
val &= ~PDAUDIOCF_TESTDATASEL;
|
|
|
|
#endif
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_TCR, val);
|
|
|
|
|
|
|
|
/* setup the FPGA to match AK4117 setup */
|
|
|
|
val = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR);
|
|
|
|
val &= ~(PDAUDIOCF_CLKDIV0 | PDAUDIOCF_CLKDIV1); /* use 24.576Mhz clock */
|
|
|
|
val &= ~(PDAUDIOCF_RED_LED_OFF|PDAUDIOCF_BLUE_LED_OFF);
|
|
|
|
val |= PDAUDIOCF_DATAFMT0 | PDAUDIOCF_DATAFMT1; /* 24-bit data */
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val);
|
|
|
|
|
|
|
|
/* setup LEDs and IRQ */
|
|
|
|
val = pdacf_reg_read(chip, PDAUDIOCF_REG_IER);
|
|
|
|
val &= ~(PDAUDIOCF_IRQLVLEN0 | PDAUDIOCF_IRQLVLEN1);
|
|
|
|
val &= ~(PDAUDIOCF_BLUEDUTY0 | PDAUDIOCF_REDDUTY0 | PDAUDIOCF_REDDUTY1);
|
|
|
|
val |= PDAUDIOCF_BLUEDUTY1 | PDAUDIOCF_HALFRATE;
|
|
|
|
val |= PDAUDIOCF_IRQOVREN | PDAUDIOCF_IRQAKMEN;
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_IER, val);
|
|
|
|
|
|
|
|
chip->ak4117->change_callback_private = chip;
|
|
|
|
chip->ak4117->change_callback = snd_pdacf_ak4117_change;
|
|
|
|
|
|
|
|
/* update LED status */
|
|
|
|
snd_pdacf_ak4117_change(chip->ak4117, AK4117_UNLCK, 0);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
void snd_pdacf_powerdown(struct snd_pdacf *chip)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
u16 val;
|
|
|
|
|
|
|
|
val = pdacf_reg_read(chip, PDAUDIOCF_REG_SCR);
|
|
|
|
chip->suspend_reg_scr = val;
|
|
|
|
val |= PDAUDIOCF_RED_LED_OFF | PDAUDIOCF_BLUE_LED_OFF;
|
|
|
|
pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, val);
|
|
|
|
/* disable interrupts, but use direct write to preserve old register value in chip->regmap */
|
|
|
|
val = inw(chip->port + PDAUDIOCF_REG_IER);
|
|
|
|
val &= ~(PDAUDIOCF_IRQOVREN|PDAUDIOCF_IRQAKMEN|PDAUDIOCF_IRQLVLEN0|PDAUDIOCF_IRQLVLEN1);
|
|
|
|
outw(val, chip->port + PDAUDIOCF_REG_IER);
|
|
|
|
pdacf_reset(chip, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef CONFIG_PM
|
|
|
|
|
2005-11-18 00:15:58 +08:00
|
|
|
int snd_pdacf_suspend(struct snd_pdacf *chip, pm_message_t state)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
u16 val;
|
|
|
|
|
2005-11-18 00:15:58 +08:00
|
|
|
snd_power_change_state(chip->card, SNDRV_CTL_POWER_D3hot);
|
2005-04-17 06:20:36 +08:00
|
|
|
snd_pcm_suspend_all(chip->pcm);
|
|
|
|
/* disable interrupts, but use direct write to preserve old register value in chip->regmap */
|
|
|
|
val = inw(chip->port + PDAUDIOCF_REG_IER);
|
|
|
|
val &= ~(PDAUDIOCF_IRQOVREN|PDAUDIOCF_IRQAKMEN|PDAUDIOCF_IRQLVLEN0|PDAUDIOCF_IRQLVLEN1);
|
|
|
|
outw(val, chip->port + PDAUDIOCF_REG_IER);
|
|
|
|
chip->chip_status |= PDAUDIOCF_STAT_IS_SUSPENDED; /* ignore interrupts from now */
|
|
|
|
snd_pdacf_powerdown(chip);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2005-11-17 22:07:38 +08:00
|
|
|
static inline int check_signal(struct snd_pdacf *chip)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
return (chip->ak4117->rcs0 & AK4117_UNLCK) == 0;
|
|
|
|
}
|
|
|
|
|
2005-11-18 00:15:58 +08:00
|
|
|
int snd_pdacf_resume(struct snd_pdacf *chip)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
|
|
|
int timeout = 40;
|
|
|
|
|
|
|
|
pdacf_reinit(chip, 1);
|
|
|
|
/* wait for AK4117's PLL */
|
|
|
|
while (timeout-- > 0 &&
|
|
|
|
(snd_ak4117_external_rate(chip->ak4117) <= 0 || !check_signal(chip)))
|
|
|
|
mdelay(1);
|
|
|
|
chip->chip_status &= ~PDAUDIOCF_STAT_IS_SUSPENDED;
|
2005-11-18 00:15:58 +08:00
|
|
|
snd_power_change_state(chip->card, SNDRV_CTL_POWER_D0);
|
2005-04-17 06:20:36 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|