audiop16x.c revision 682cb1044237d21ad6810702564bec833b8c410c
1N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A#include "audiop16x.h"
1N/Astatic char *p16x_remove_ac97[] = {
1N/Astatic void p16x_close(void *);
1N/Astatic int p16x_start(void *);
1N/Astatic int p16x_format(void *);
1N/Astatic int p16x_channels(void *);
1N/Astatic void p16x_chinfo(void *, int, unsigned *, unsigned *);
static uint_t
unsigned int status;
return (DDI_INTR_UNCLAIMED);
return (DDI_INTR_UNCLAIMED);
if (consume) {
if (produce) {
return (DDI_INTR_CLAIMED);
return (AUDIO_FORMAT_S16_LE);
return (val);
unsigned mult;
switch (chan) {
mult = 0;
unsigned int tmp;
unsigned int tmp;
int dir;
char *prop;
unsigned caps;
switch (num) {
case P16X_REC:
case P16X_PLAY:
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_FAILURE);
return (DDI_SUCCESS);
for (int i = 0; i < P16X_NUM_PORT; i++) {
if (!port)
int actual;
int rv;
return (DDI_FAILURE);
return (DDI_FAILURE);
DDI_SUCCESS) {
return (DDI_FAILURE);
return (DDI_SUCCESS);
return (DDI_FAILURE);
return (DDI_FAILURE);
goto error;
goto error;
goto error;
goto error;
goto error;
goto error;
goto error;
for (int i = 0; p16x_remove_ac97[i]; i++) {
goto error;
return (DDI_SUCCESS);
return (DDI_FAILURE);
for (int i = 0; i < P16X_NUM_PORT; i++) {
return (DDI_SUCCESS);
return (DDI_FAILURE);
return (DDI_SUCCESS);
for (int i = 0; i < P16X_NUM_PORT; i++) {
return (DDI_SUCCESS);
_init(void)
int rv;
return (rv);
_fini(void)
int rv;
return (rv);
switch (cmd) {
case DDI_ATTACH:
case DDI_RESUME:
return (DDI_FAILURE);
switch (cmd) {
case DDI_DETACH:
case DDI_SUSPEND:
return (DDI_FAILURE);
for (int i = 0; i < P16X_NUM_PORT; i++) {
return (DDI_SUCCESS);