Deleted Added
full compact
sbdsp.c (1.74) sbdsp.c (1.75)
1/* $NetBSD: sbdsp.c,v 1.74 1997/10/11 12:36:32 mycroft Exp $ */
1/* $NetBSD: sbdsp.c,v 1.75 1997/10/16 23:34:57 augustss Exp $ */
2
3/*
4 * Copyright (c) 1991-1993 Regents of the University of California.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 2177 unchanged lines hidden (view full) ---

2187
2188 case SB_RECORD_CLASS: /* record source class */
2189 dip->type = AUDIO_MIXER_CLASS;
2190 dip->mixer_class = SB_RECORD_CLASS;
2191 dip->next = dip->prev = AUDIO_MIXER_LAST;
2192 strcpy(dip->label.name, AudioCrecord);
2193 return 0;
2194
2
3/*
4 * Copyright (c) 1991-1993 Regents of the University of California.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 2177 unchanged lines hidden (view full) ---

2187
2188 case SB_RECORD_CLASS: /* record source class */
2189 dip->type = AUDIO_MIXER_CLASS;
2190 dip->mixer_class = SB_RECORD_CLASS;
2191 dip->next = dip->prev = AUDIO_MIXER_LAST;
2192 strcpy(dip->label.name, AudioCrecord);
2193 return 0;
2194
2195 case SB_INPUT_CLASS:
2196 dip->type = AUDIO_MIXER_CLASS;
2197 dip->mixer_class = SB_INPUT_CLASS;
2198 dip->next = dip->prev = AUDIO_MIXER_LAST;
2199 strcpy(dip->label.name, AudioCinputs);
2200 return 0;
2201
2195 }
2196
2197 if (sc->sc_mixer_model == SBM_CT1345)
2198 return ENXIO;
2199
2200 switch(dip->index) {
2201 case SB_PCSPEAKER:
2202 dip->type = AUDIO_MIXER_VALUE;

--- 29 unchanged lines hidden (view full) ---

2232 strcpy(dip->label.name, "AGC");
2233 dip->un.e.num_mem = 2;
2234 strcpy(dip->un.e.member[0].label.name, AudioNoff);
2235 dip->un.e.member[0].ord = 0;
2236 strcpy(dip->un.e.member[1].label.name, AudioNon);
2237 dip->un.e.member[1].ord = 1;
2238 return 0;
2239
2202 }
2203
2204 if (sc->sc_mixer_model == SBM_CT1345)
2205 return ENXIO;
2206
2207 switch(dip->index) {
2208 case SB_PCSPEAKER:
2209 dip->type = AUDIO_MIXER_VALUE;

--- 29 unchanged lines hidden (view full) ---

2239 strcpy(dip->label.name, "AGC");
2240 dip->un.e.num_mem = 2;
2241 strcpy(dip->un.e.member[0].label.name, AudioNoff);
2242 dip->un.e.member[0].ord = 0;
2243 strcpy(dip->un.e.member[1].label.name, AudioNon);
2244 dip->un.e.member[1].ord = 1;
2245 return 0;
2246
2240 case SB_INPUT_CLASS:
2241 dip->type = AUDIO_MIXER_CLASS;
2242 dip->mixer_class = SB_INPUT_CLASS;
2243 dip->next = dip->prev = AUDIO_MIXER_LAST;
2244 strcpy(dip->label.name, AudioCinputs);
2245 return 0;
2246
2247 case SB_EQUALIZATION_CLASS:
2248 dip->type = AUDIO_MIXER_CLASS;
2249 dip->mixer_class = SB_EQUALIZATION_CLASS;
2250 dip->next = dip->prev = AUDIO_MIXER_LAST;
2251 strcpy(dip->label.name, AudioCequalization);
2252 return 0;
2253
2254 case SB_CD_IN_MUTE:

--- 127 unchanged lines hidden ---
2247 case SB_EQUALIZATION_CLASS:
2248 dip->type = AUDIO_MIXER_CLASS;
2249 dip->mixer_class = SB_EQUALIZATION_CLASS;
2250 dip->next = dip->prev = AUDIO_MIXER_LAST;
2251 strcpy(dip->label.name, AudioCequalization);
2252 return 0;
2253
2254 case SB_CD_IN_MUTE:

--- 127 unchanged lines hidden ---