003 File Manager
Current Path:
/usr/src/sys/dev/sound/pci
usr
/
src
/
sys
/
dev
/
sound
/
pci
/
📁
..
📄
allegro_code.h
(13.76 KB)
📄
allegro_reg.h
(30.68 KB)
📄
als4000.c
(22.2 KB)
📄
als4000.h
(3.25 KB)
📄
atiixp.c
(34.25 KB)
📄
atiixp.h
(7.19 KB)
📄
aureal.c
(16.97 KB)
📄
aureal.h
(2.99 KB)
📄
cmi.c
(28.03 KB)
📄
cmireg.h
(7.52 KB)
📄
cs4281.c
(25.15 KB)
📄
cs4281.h
(6.89 KB)
📄
cs461x_dsp.h
(173.89 KB)
📄
csa.c
(26.85 KB)
📄
csamidi.c
(7.12 KB)
📄
csapcm.c
(26.3 KB)
📄
csareg.h
(93.24 KB)
📄
csavar.h
(2.48 KB)
📄
ds1-fw.h
(63.96 KB)
📄
ds1.c
(27.72 KB)
📄
ds1.h
(5.08 KB)
📄
emu10k1.c
(58.37 KB)
📄
emu10kx-midi.c
(6.84 KB)
📄
emu10kx-pcm.c
(39.26 KB)
📄
emu10kx.c
(99.01 KB)
📄
emu10kx.h
(6.03 KB)
📄
emuxkireg.h
(23.3 KB)
📄
envy24.c
(65.65 KB)
📄
envy24.h
(23.28 KB)
📄
envy24ht.c
(65.45 KB)
📄
envy24ht.h
(8.41 KB)
📄
es137x.c
(52.28 KB)
📄
es137x.h
(8.33 KB)
📄
fm801.c
(19.85 KB)
📁
hda
📄
hdspe-pcm.c
(15.45 KB)
📄
hdspe.c
(9.22 KB)
📄
hdspe.h
(5.98 KB)
📄
ich.c
(31.78 KB)
📄
ich.h
(3.49 KB)
📄
maestro.c
(51.21 KB)
📄
maestro3.c
(48.51 KB)
📄
maestro_reg.h
(10.82 KB)
📄
neomagic-coeff.h
(302.31 KB)
📄
neomagic.c
(19.38 KB)
📄
neomagic.h
(3.98 KB)
📄
solo.c
(25.21 KB)
📄
spicds.c
(10.46 KB)
📄
spicds.h
(4.41 KB)
📄
t4dwave.c
(24.38 KB)
📄
t4dwave.h
(3.26 KB)
📄
via8233.c
(36.27 KB)
📄
via8233.h
(5.42 KB)
📄
via82c686.c
(17.23 KB)
📄
via82c686.h
(3.61 KB)
📄
vibes.c
(26.45 KB)
📄
vibes.h
(5.99 KB)
Editing: spicds.h
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2006 Konstantin Dimitrov <kosio.dimitrov@gmail.com> * Copyright (c) 2001 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHERIN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD$ */ /* supported CODECs */ #define SPICDS_TYPE_AK4524 0 #define SPICDS_TYPE_AK4528 1 #define SPICDS_TYPE_WM8770 2 #define SPICDS_TYPE_AK4358 3 #define SPICDS_TYPE_AK4381 4 #define SPICDS_TYPE_AK4396 5 /* AK4524/AK4528 control registers */ #define AK4524_POWER 0x00 #define AK4528_POWER 0x00 #define AK452X_POWER_PWDA 0x01 #define AK452X_POWER_PWAD 0x02 #define AK452X_POWER_PWVR 0x04 #define AK4524_RESET 0x01 #define AK4528_RESET 0x01 #define AK452X_RESET_RSDA 0x01 #define AK452X_RESET_RSAD 0x02 #define AK4524_FORMAT 0x02 #define AK4528_FORMAT 0x02 #define AK452X_FORMAT_1X 0x00 #define AK452X_FORMAT_2X 0x01 #define AK452X_FORMAT_4X1 0x02 #define AK452X_FORMAT_4X2 0x03 #define AK452X_FORMAT_256FSN 0x00 #define AK452X_FORMAT_512FSN 0x04 #define AK452X_FORMAT_1024FSN 0x08 #define AK452X_FORMAT_384FSN 0x10 #define AK452X_FORMAT_768FSN 0x14 #define AK452X_FORMAT_OM24IL16 0x00 #define AK452X_FORMAT_OM24IL20 0x20 #define AK452X_FORMAT_OM24IM24 0x40 #define AK452X_FORMAT_I2S 0x60 #define AK452X_FORMAT_OM24IL24 0x80 #define AK4524_DVC 0x03 #define AK452X_DVC_DEM441 0x00 #define AK452X_DVC_DEMOFF 0x01 #define AK452X_DVC_DEM48 0x02 #define AK452X_DVC_DEM32 0x03 #define AK452X_DVC_ZTM256 0x00 #define AK452X_DVC_ZTM512 0x04 #define AK452X_DVC_ZTM1024 0x08 #define AK452X_DVC_ZTM2048 0x0c #define AK452X_DVC_ZCE 0x10 #define AK452X_DVC_HPFL 0x04 #define AK452X_DVC_HPFR 0x08 #define AK452X_DVC_SMUTE 0x80 #define AK4524_LIPGA 0x04 #define AK4524_RIPGA 0x05 #define AK4524_LOATT 0x06 #define AK4524_ROATT 0x07 #define AK4528_LOATT 0x04 #define AK4528_ROATT 0x05 /* WM8770 control registers */ #define WM8770_AOATT_L1 0x00 #define WM8770_AOATT_R1 0x01 #define WM8770_AOATT_L2 0x02 #define WM8770_AOATT_R2 0x03 #define WM8770_AOATT_L3 0x04 #define WM8770_AOATT_R3 0x05 #define WM8770_AOATT_L4 0x06 #define WM8770_AOATT_R4 0x07 #define WM8770_AOATT_MAST 0x08 #define WM8770_AOATT_UPDATE 0x100 /* AK4358 control registers */ #define AK4358_LO1ATT 0x04 #define AK4358_RO1ATT 0x05 #define AK4358_OATT_ENABLE 0x80 /* AK4381 control registers */ #define AK4381_LOATT 0x03 #define AK4381_ROATT 0x04 /* AK4396 control registers */ #define AK4396_LOATT 0x03 #define AK4396_ROATT 0x04 struct spicds_info; typedef void (*spicds_ctrl)(void *, unsigned int, unsigned int, unsigned int); struct spicds_info *spicds_create(device_t dev, void *devinfo, int num, spicds_ctrl); void spicds_destroy(struct spicds_info *codec); void spicds_settype(struct spicds_info *codec, unsigned int type); void spicds_setcif(struct spicds_info *codec, unsigned int cif); void spicds_setformat(struct spicds_info *codec, unsigned int format); void spicds_setdvc(struct spicds_info *codec, unsigned int dvc); void spicds_init(struct spicds_info *codec); void spicds_reinit(struct spicds_info *codec); void spicds_set(struct spicds_info *codec, int dir, unsigned int left, unsigned int right);
Upload File
Create Folder