| /illumos-gate/usr/src/uts/common/io/audio/drv/audiohd/ |
| H A D | audiohd.c | 91 static int audiohd_beep_vol = 1; 208 devid = pci_config_get16(statep->hda_pci_handle, PCI_CONF_VENID); in audiohd_set_chipset_info() 210 devid |= pci_config_get16(statep->hda_pci_handle, PCI_CONF_DEVID); in audiohd_set_chipset_info() 211 statep->devid = devid; in audiohd_set_chipset_info() 299 audio_dev_set_description(statep->adev, name); in audiohd_set_chipset_info() 300 audio_dev_set_version(statep->adev, vers); in audiohd_set_chipset_info() 327 mutex_init(&statep->hda_mutex, NULL, MUTEX_DRIVER, 0); in audiohd_attach() 328 mutex_enter(&statep->hda_mutex); in audiohd_attach() 338 audio_dev_warn(statep->adev, in audiohd_attach() 346 audio_dev_warn(statep->adev, in audiohd_attach() [all …]
|
| H A D | audiohd.h | 51 * codec special initial flags 80 #define AUDIOHDC_NULL_NODE -1 81 #define AUDIOHD_NULL_CONN ((uint_t)(-1)) 91 #define AUDIOHD_SP_ON 1 159 #define AUDIOHD_SPDIF_ON 1 169 #define AUDIOHD_ROUNDUP(x, algn) (((x) + ((algn) - 1)) & ~((algn) - 1)) 282 #define AUDIOHDR_CORBSZ_16 1 297 #define AUDIOHDR_RIRBSZ_16 1 306 /* HD spec: ID of audio function group is "1" */ 307 #define AUDIOHDC_AUDIO_FUNC_GROUP 1 [all …]
|
| /illumos-gate/usr/src/cmd/bhyve/common/ |
| H A D | pci_hda.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 10 * 1. Redistributions of source code must retain the above copyright 64 #define HDAC_SDSTS_FIFORDY (1 << 5) 67 #define HDA_STATESTS_IRQ_MASK ((1 << HDA_CODEC_MAX) - 1) 152 struct hda_codec_class *codec, const char *play, const char *rec); 238 HDAC_ISTREAM(1, HDA_ISS_NO, HDA_OSS_NO) 243 HDAC_OSTREAM(1, HDA_ISS_NO, HDA_OSS_NO) 278 #if DEBUG_HDA == 1 290 sc->regs[offset] = value; in hda_set_reg_by_offset() [all …]
|
| H A D | hda_codec.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 10 * 1. Redistributions of source code must retain the above copyright 39 * HDA Codec defines 62 (1 << HDA_PARAM_SUPP_STREAM_FORMATS_PCM_SHIFT) 89 (1 << HDA_PARAM_AUDIO_WIDGET_CAP_CONN_LIST_SHIFT) 91 (1 << HDA_PARAM_AUDIO_WIDGET_CAP_FORMAT_OVR_SHIFT) 93 (1 << HDA_PARAM_AUDIO_WIDGET_CAP_AMP_OVR_SHIFT) 95 (1 << HDA_PARAM_AUDIO_WIDGET_CAP_OUT_AMP_SHIFT) 97 (1 << HDA_PARAM_AUDIO_WIDGET_CAP_IN_AMP_SHIFT) [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/drv/audiocmihd/ |
| H A D | audiocmihd.c | 32 * Copyright (C) 4Front Technologies 1996-2011. 153 vol = (vol * ((1 << bits) - 1)) / 100; in mix_scale() 164 mutex_enter(&devc->low_mutex); in cmediahd_read_ac97() 167 val |= 0 << 24; /* codec 0 or codec 1 */ in cmediahd_read_ac97() 168 val |= 1 << 23; /* ac97 read the reg address */ in cmediahd_read_ac97() 172 mutex_exit(&devc->low_mutex); in cmediahd_read_ac97() 182 mutex_enter(&devc->low_mutex); in cmediahd_write_ac97() 186 val |= 0 << 24; /* on board codec or frontpanel */ in cmediahd_write_ac97() 190 mutex_exit(&devc->low_mutex); in cmediahd_write_ac97() 201 mutex_enter(&devc->low_mutex); [all …]
|
| /illumos-gate/usr/src/uts/sun/io/audio/drv/audiocs/ |
| H A D | audio_4231.c | 30 * This Audio Driver controls the Crystal CS4231 Codec used on many SPARC 157 #define OUTPUT_HEADPHONES 1 168 #define INPUT_LINEIN 1 186 0x3f, 0x3e, 0x3d, 0x3c, 0x3b, /* [000] -> [004] */ 187 0x3a, 0x39, 0x38, 0x37, 0x36, /* [005] -> [009] */ 188 0x35, 0x34, 0x33, 0x32, 0x31, /* [010] -> [014] */ 189 0x30, 0x2f, 0x2e, 0x2d, 0x2c, /* [015] -> [019] */ 190 0x2b, 0x2a, 0x29, 0x29, 0x28, /* [020] -> [024] */ 191 0x28, 0x27, 0x27, 0x26, 0x26, /* [025] -> [029] */ 192 0x25, 0x25, 0x24, 0x24, 0x23, /* [030] -> [034] */ [all …]
|
| H A D | audio_4231.h | 44 #define CS_DEV_VERSION_B "b" /* Electron - internal loopback */ 46 #define CS_DEV_VERSION_D "d" /* PowerPC - Retired */ 47 #define CS_DEV_VERSION_E "e" /* x86 - Retired */ 80 * 4231. One handle provides access the CODEC and the DMA engine's 98 #define APC_DMACSR state->cs_regs->apc.dmacsr 99 #define APC_DMACVA state->cs_regs->apc.dmacva 100 #define APC_DMACC state->cs_regs->apc.dmacc 101 #define APC_DMACNVA state->cs_regs->apc.dmacnva 102 #define APC_DMACNC state->cs_regs->apc.dmacnc 103 #define APC_DMAPVA state->cs_regs->apc.dmapva [all …]
|
| H A D | audio_4231_eb2dma.c | 116 dev_info_t *dip = state->cs_dip; in eb2_map_regs() 118 /* now, map the codec */ in eb2_map_regs() 119 if (ddi_regs_map_setup(dip, 0, (caddr_t *)&state->cs_regs, 0, in eb2_map_regs() 122 audio_dev_warn(state->cs_adev, "failed mapping codec regs"); in eb2_map_regs() 127 if (ddi_regs_map_setup(dip, 1, (caddr_t *)&state->cs_eb2_regs.play, 0, in eb2_map_regs() 130 audio_dev_warn(state->cs_adev, "failed mapping play regs"); in eb2_map_regs() 133 state->cs_engines[CS4231_PLAY]->ce_regsh = EB2_PLAY_HNDL; in eb2_map_regs() 134 state->cs_engines[CS4231_PLAY]->ce_eb2regs = state->cs_eb2_regs.play; in eb2_map_regs() 137 if (ddi_regs_map_setup(dip, 2, (caddr_t *)&state->cs_eb2_regs.record, 0, in eb2_map_regs() 140 audio_dev_warn(state->cs_adev, "failed mapping rec regs"); in eb2_map_regs() [all …]
|
| H A D | audio_4231_apcdma.c | 111 dev_info_t *dip = state->cs_dip; in apc_map_regs() 114 if (ddi_regs_map_setup(dip, 0, (caddr_t *)&state->cs_regs, 0, in apc_map_regs() 116 audio_dev_warn(state->cs_adev, "ddi_regs_map_setup() failed"); in apc_map_regs() 130 * This routine unmaps the Codec's and DMA engine's registers. 190 * CAUTION: ?!? This routine doesn't start the Codec because the first 203 CS_state_t *state = eng->ce_state; in apc_start_engine() 210 ASSERT(mutex_owned(&state->cs_lock)); in apc_start_engine() 212 if (eng->ce_num == CS4231_PLAY) { in apc_start_engine() 223 drv_usecwait(1); /* no reason to beat on the bus */ in apc_start_engine() 227 audio_dev_warn(state->cs_adev, in apc_start_engine() [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/drv/audiopci/ |
| H A D | audiopci.h | 31 * Copyright (C) 4Front Technologies 1996-2008. 41 /* CONCERT PCI-SIG defines */ 54 #define DAC_CLOCK_DIVIDE 22579200UL /* DAC2 (CODEC) clock divide */ 60 #define CONC_wDACRATE_OFF 0x02 /* CODEC clock divider for PLL */ 62 #define CONC_bCODECSTAT_OFF 0x05 /* CODEC interface status */ 63 #define CONC_bUARTDATA_OFF 0x08 /* UART data R/W - read clears RX int */ 66 #define CONC_wCODECCTL_OFF 0x10 /* CODEC control - word-write-only */ 79 #define CONC_MEMBASE_OFF 0x30 /* Memory window base - 16 bytes */ 83 #define CONC_DEVCTL_CODEC_EN 0x02 /* CoDec Enable */ 107 /* Codec Status defines */ [all …]
|
| H A D | audiopci.c | 34 * Copyright (C) 4Front Technologies 1996-2008. 59 #define INPUT_LINEIN 1 63 #define INSRCS 0x1f /* bits 0-4 */ 82 #define PORT_SYN 1 140 audiopci_port_t port[PORT_MAX + 1]; 160 * The hardware appears to be able to address up to 16-bits worth of longwords, 181 ddi_get8(dev->acch, (uint8_t *)(dev->regs + (offset))) 183 ddi_get16(dev->acch, (uint16_t *)(void *)(dev->regs + (offset))) 185 ddi_get32(dev->acch, (uint32_t *)(void *)(dev->regs + (offset))) 187 ddi_put8(dev->acch, (uint8_t *)(dev->regs + (offset)), v) [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/drv/audiots/ |
| H A D | audiots.c | 34 * not available because their pins have been re-assigned to expose 36 * ports. The audio core controls an AC-97 V2.1 Codec. 45 * The audio core has a bug in silicon that doesn't let it read the AC-97 46 * Codec's register. T2 has provided an algorithm that attempts to read the 47 * the Codec several times. This is probably heuristic and thus isn't 50 * the loop. Unfortunately there is also a problem with writing the AC-97 51 * Codec's registers as well. Thus we read it back to verify the write. 55 * to determine codec id and capabilities.) 72 * must always be 16-bits. This will keep any future change in the 82 * NOTE: The AC-97 Codec's reset pin is set to PCI reset, so we [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/drv/audioixp/ |
| H A D | audioixp.c | 139 nulldev, /* devo_identify - obsolete */ 186 8, /* align, BDL must be aligned on a 8-byte boundary */ 191 1, /* sgllen, there's no scatter-gather list */ 204 4, /* align, data buffer is aligned on a 2-byte boundary */ 209 1, /* sgllen, no scatter-gather */ 246 * Module de-initialization, called when the driver is to be unloaded. 355 * This function is called when the system is single-threaded at high 386 audio_dev_suspend(statep->adev); in audioixp_suspend() 400 audio_dev_warn(statep->adev, "DDI_RESUME failed to init chip"); in audioixp_resume() 404 ac97_reset(statep->ac97); in audioixp_resume() [all …]
|
| H A D | audioixp.h | 42 #define IXP_IO_AM_REGS (1) /* PCI base register 0x10 */ 45 #define IXP_REC 1 61 #define IXP_AUDIO_INT_IN_DMA_OVERFLOW (1U<<0) 62 #define IXP_AUDIO_INT_IN_DMA (1U<<1) 63 #define IXP_AUDIO_INT_OUT_DMA_UNDERFLOW (1U<<2) 64 #define IXP_AUDIO_INT_OUT_DMA (1U<<3) 65 #define IXP_AUDIO_INT_CODEC0_NOT_READY (1U<<10) 66 #define IXP_AUDIO_INT_CODEC1_NOT_READY (1U<<11) 67 #define IXP_AUDIO_INT_CODEC2_NOT_READY (1U<<12) 68 #define IXP_AUDIO_INT_NEW_FRAME (1U<<13) [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/drv/audiovia823x/ |
| H A D | audiovia823x.h | 33 * Copyright (C) 4Front Technologies 1996-2008. 58 #define AUVIA_PCICFG_PRIVALID 0x00000001 /* primary codec ready */ 60 #define AUVIA_PLAY_SGD_NUM 1 72 #define REG_CODEC 0x80 /* Access AC97 Codec */ 77 #define CODEC_STA_VALID 0x02000000 /* 1:status data is valid */ 78 #define CODEC_RD 0x00800000 /* Read CODEC status */ 79 #define CODEC_WR 0x00000000 /* Write CODEC status */ 103 #define PLAYFMT_STEREO 0x20 /* Num channels (1-6), upper nybble */ 158 #define CHIP_8233A 1 168 #define AUVIA_KIOP(X) ((kstat_intr_t *)(X->ksp->ks_data)) [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/drv/audio810/ |
| H A D | audio810.conf | 31 # The presence of the ac97-speaker property enables the use of a monoaural 36 # ac97-speaker=0; 39 # Uncomment ac97-micboost below to enable the use of a 20dB microphone boost. 41 # ac97-micboost=1; 45 # supported by the codec, but not connected to anything. Note 48 # instead of the codec's headphone feature. 50 # We don't allow diabling the lineout -- that's such a fundamental 53 # ac97-no-headphone=1; 54 # ac97-no-auxout=1; 58 # supported by the codec, but not connected to anything. Note that [all …]
|
| H A D | audio810.c | 43 * samples. This, combined with the 16-bit sample size, gives the 46 * A workaround for the AD1980 and AD1985 codec: 47 * Most vendors connect the surr-out of the codecs to the line-out jack. 49 * all vendors swap the surr-out and the line-out outputs. So we need swap 51 * "ad198x-swap-output" property. If someday some vendors do not swap the 52 * outputs, we would set "ad198x-swap-output = 0" in the 161 nulldev, /* devo_identify - obsolete */ 209 8, /* align, BDL must be aligned on a 8-byte boundary */ 214 1, /* sgllen, there's no scatter-gather list */ 227 4, /* align, data buffer is aligned on a 4-byte boundary */ [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/drv/audio1575/ |
| H A D | audio1575.c | 43 * the number of samples. This, combined with the 16-bit sample size, 136 nulldev, /* devo_identify - obsolete */ 184 0x000000000000ffffLL, /* DMA counter register - 64 bits */ 185 0x0000000000000008LL, /* DMA address align must be 8-bytes */ 186 0x0000003c, /* 1 through 64 byte burst sizes */ 202 0x000000000001fffeLL, /* DMA counter register - 16 bits */ 203 0x0000000000000004LL, /* DMA address align 2-byte boundary */ 204 0x0000003c, /* 1 through 60 byte burst sizes */ 244 * Module de-initialization, called when the driver is to be unloaded. 390 port->count = 0; in audio1575_open() [all …]
|
| H A D | audio1575.h | 44 #define M1575_AUDIO_IO_SPACE (1) 50 #define M1575_REC (1) 58 #define M1575_ROUNDUP(x, algn) (((x) + ((algn) - 1)) & ~((algn) - 1)) 68 #define M1575_PCIACD_REG 0x5C /* AC97 Codec Detect 8 */ 86 #define M1575_FIFOCR1_REG 0x0C /* FIFO 1 Control Reg 32 */ 97 #define M1575_CASR_REG 0x3C /* Codec Access Sem Reg 32 */ 281 #define M1575_SCR_SPDIF_SLOT 0x00300000 /* 1=7/8, 2=6/9, 3=10/11 */ 282 #define M1575_SCR_RECMOD 0x000c0000 /* 0 = 16bit, 1=20 bit */ 283 #define M1575_SCR_PCMMOD 0x00030000 /* 0 = 16bit, 1=20 bit */ 302 #define M1575_CPR_ACSCS 0x0100 /* Audio Codec for cmd 1=codec 2 */ [all …]
|
| /illumos-gate/usr/src/uts/common/io/bnxe/577xx/hsi/mcp/ |
| H A D | bdn.h | 45 u32_t version; /* Version of Codec */ 49 e_Here = 1, 51 } loc; /* DEFAULT e-None */ 52 u16_t total_size; /* total size of Codec in bytes.Max size 32K (64K?)*/ 77 #define MAX_FCOE_IBOOT_PORT_ID 8 /* @@@TBD - what's this ? */ 159 struct codec_t codec; member 176 #define BDN_CODEC_INFO() (ASN1_P->bdn_addr + OFFSETOF(struct bdn, codec_info)) 177 #define BDN_CODEC_DATA() (ASN1_P->bdn_addr + OFFSETOF(struct bdn, codec)) 178 #define BDN_NETPORT_NOW(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.path << 1) … 179 …define BDN_NETPORT_ON_PORT_RESET(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.pa… [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/ac97/ |
| H A D | ac97.c | 22 * Copyright (C) 4Front Technologies 1996-2008. 51 * Audio Base Registers: 0x00 - 0x26 52 * Audio Extended Registers: 0x28 - 0x3A 53 * Modem Extended Registers: 0x3C - 0x58 54 * Vendor Reserved Registers: 0x5A - 0x5F 55 * Page Registers: 0x60 - 0x6F 56 * Vendor Reserved Registers: 0x70 - 0x7A 57 * Vendor ID Registers: 0x7C - 0x7F 60 * TBD: Handling of codec-specific registers in vendor reserved space. 64 #define NUM_SHADOW ((LAST_SHADOW_REG / sizeof (uint16_t)) + 1) [all …]
|
| /illumos-gate/usr/src/uts/common/sys/audio/ |
| H A D | ac97.h | 39 * This header file describes the AC-97 Codec register set. See the 71 /* Headphone Volume Register Index 04h - Optional */ 81 /* Mono Master Volume Register Index 06h - Optional */ 88 /* Master Tone Control Register Index 08h - Optional */ 97 /* PC Beep Register Index 0ah - Optional */ 103 /* Phone Volume Register Index 0ch - Optional */ 139 /* Video Volume Register Index 14h - Optional */ 149 /* Aux Volume Register Index 16h - Optional */ 170 /* Record Select Control Register Index 1ah */ 189 /* Record Gain Register Index 1ch */ [all …]
|
| /illumos-gate/usr/src/lib/libsqlite/test/ |
| H A D | tclsqlite.test | 26 if {[sqlite -has-codec]} { 27 set r "sqlite_orig HANDLE FILENAME ?-key CODEC-KEY?" 31 do_test tcl-1.1 { 34 } [list 1 "wrong # args: should be \"$r\""] 35 do_test tcl-1.2 { 38 } {1 {bad option "bogus": must be authorizer, busy, changes, close, commit_hook, complete, errorcod… 39 do_test tcl-1.3 { 48 } {1 {The error message}} 49 do_test tcl-1.4 { 56 } {1 {no such table: t2}} [all …]
|
| /illumos-gate/usr/src/lib/libsqlite/src/ |
| H A D | pager.c | 84 #define SQLITE_READLOCK 1 89 ** Each in-memory image of a page begins with the following header. 127 ** A macro used for invoking the codec if there is one 130 # define CODEC(P,D,N,X) if( P->xCodec ){ P->xCodec(P->pCodecArg,D,N,X); } macro 132 # define CODEC(P,D,N,X) macro 139 #define PGHDR_TO_DATA(P) ((void*)(&(P)[1])) 140 #define DATA_TO_PGHDR(D) (&((PgHdr*)(D))[-1]) 141 #define PGHDR_TO_EXTRA(P) ((void*)&((char*)(&(P)[1]))[SQLITE_PAGE_SIZE]) 144 ** How big to make the hash table used for locating in-memory pages 152 #define pager_hash(PN) ((PN)&(N_PG_HASH-1)) [all …]
|
| /illumos-gate/usr/src/uts/common/io/audio/drv/audioemu10k/ |
| H A D | audioemu10k.h | 31 * Copyright (C) 4Front Technologies 1996-2009. 47 #define EMU10K_REC 1 73 #define HCFG_CODECFORMAT_MASK 0x00070000 /* CODEC format */ 74 #define HCFG_CODECFORMAT_AC97 0x00000000 /* AC97 CODEC format */ 75 #define HCFG_CODECFORMAT_I2S 0x00010000 /* I2S CODEC format */ 85 #define HCFG_AC3ENABLE_ZVIDEO 0x00000080 /* Chan 0/1 replace ZVIDEO */ 86 #define HCFG_AC3ENABLE_CDSPDIF 0x00000040 /* Chan 0/1 replace CDSPDIF */ 87 #define HCFG_AC3ENABLE_GPSPDIF 0x00000020 /* Chan 0/1 replace GPSPDIF */ 112 #define GPIO_DIGITAL_ENABLE 0x0004 /* Cen/lfe (0) or digital (1) switch */ 115 ddi_put32(devc->pt_acch, devc->page_map + e, ((v) << 1) | (e)); [all …]
|