summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_wpi.c
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2008-11-28 04:03:38 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2008-11-28 04:03:38 +0000
commit82cc23ac6fc632abcbbaca9ee7cc764b5bab0542 (patch)
treea955191584fd3c99de8f4eaa2f759e38f8022bf6 /sys/dev/pci/if_wpi.c
parentb409ba887aaa9a3fe1a8233e858854db76bf9b75 (diff)
- use switch() instead of multiple if else
- put selectors that feed ADCs into the record class like we do for mixers - use azalia_nid_to_index more - shrink mixer items list by condensing mutes for multiple input sources into a single _source control of type AUDIO_MIXER_SET. for example, record.mix6_mic_mute=off record.mix6_mic2_mute=off record.mix6_line_mute=off record.mix6_hp_mute=off record.mix6_spkr_mute=off record.mix6_mix_mute=off is now represented as record.mix6_source=mic,mic2,line,hp,spkr,mix to mute all sources but the mic just do record.mix6_source=mic reduces mixer items by about 25% on my machine. also shortens the longest names.
Diffstat (limited to 'sys/dev/pci/if_wpi.c')
0 files changed, 0 insertions, 0 deletions