Ticket #5169: case-audio-drivers.diff

File case-audio-drivers.diff, 30.2 KB (added by humdinger, 9 years ago)

for audio drivers that appear to publish strings used in the GUI

  • src/add-ons/media/media-add-ons/mixer/AudioMixer.cpp

     
    8989
    9090AudioMixer::AudioMixer(BMediaAddOn *addOn, bool isSystemMixer)
    9191    :
    92     BMediaNode("Audio Mixer"),
     92    BMediaNode("Audio mixer"),
    9393    BBufferConsumer(B_MEDIA_RAW_AUDIO),
    9494    BBufferProducer(B_MEDIA_RAW_AUDIO),
    9595    BControllable(),
     
    16851685    MixerOutput *out;
    16861686    char buf[50];
    16871687
    1688     top = web->MakeGroup("Gain Controls");
     1688    top = web->MakeGroup("Gain controls");
    16891689
    16901690    out = fCore->Output();
    16911691    group = top->MakeGroup("");
    1692     group->MakeNullParameter(PARAM_STR1(0), B_MEDIA_RAW_AUDIO, "Master Output", B_WEB_BUFFER_INPUT);
     1692    group->MakeNullParameter(PARAM_STR1(0), B_MEDIA_RAW_AUDIO, "Master output", B_WEB_BUFFER_INPUT);
    16931693    if (!out) {
    16941694        group->MakeNullParameter(PARAM_STR2(0), B_MEDIA_RAW_AUDIO, "not connected", B_GENERIC);
    16951695    } else {
     
    17041704            group->MakeContinuousParameter(PARAM_GAIN(0), B_MEDIA_RAW_AUDIO, "Gain", B_MASTER_GAIN, "dB", DB_MIN, DB_MAX, 0.1)
    17051705                                           ->SetChannelCount(out->GetOutputChannelCount());
    17061706        }
    1707         group->MakeNullParameter(PARAM_STR3(0), B_MEDIA_RAW_AUDIO, "To Output", B_WEB_BUFFER_OUTPUT);
     1707        group->MakeNullParameter(PARAM_STR3(0), B_MEDIA_RAW_AUDIO, "To output", B_WEB_BUFFER_OUTPUT);
    17081708    }
    17091709
    17101710    for (int i = 0; (in = fCore->Input(i)); i++) {
     
    17371737                                               ->SetChannelCount(in->GetMixerChannelCount());
    17381738            }
    17391739        }
    1740         group->MakeNullParameter(PARAM_STR3(in->ID()), B_MEDIA_RAW_AUDIO, "To Master", B_WEB_BUFFER_OUTPUT);
     1740        group->MakeNullParameter(PARAM_STR3(in->ID()), B_MEDIA_RAW_AUDIO, "To master", B_WEB_BUFFER_OUTPUT);
    17411741    }
    17421742
    17431743    if (fCore->Settings()->AllowOutputChannelRemapping()) {
    1744         top = web->MakeGroup("Output Mapping"); // top level group
     1744        top = web->MakeGroup("Output mapping"); // top level group
    17451745        outputchannels = top->MakeGroup("");
    1746         outputchannels->MakeNullParameter(PARAM_STR4(0), B_MEDIA_RAW_AUDIO, "Output Channel Sources", B_GENERIC);
     1746        outputchannels->MakeNullParameter(PARAM_STR4(0), B_MEDIA_RAW_AUDIO, "Output channel sources", B_GENERIC);
    17471747
    17481748        group = outputchannels->MakeGroup("");
    1749         group->MakeNullParameter(PARAM_STR5(0), B_MEDIA_RAW_AUDIO, "Master Output", B_GENERIC);
     1749        group->MakeNullParameter(PARAM_STR5(0), B_MEDIA_RAW_AUDIO, "Master output", B_GENERIC);
    17501750        group = group->MakeGroup("");
    17511751        if (!out) {
    17521752            group->MakeNullParameter(PARAM_STR6(0), B_MEDIA_RAW_AUDIO, "not connected", B_GENERIC);
     
    17711771    }
    17721772
    17731773    if (fCore->Settings()->AllowInputChannelRemapping()) {
    1774         top = web->MakeGroup("Input Mapping"); // top level group
     1774        top = web->MakeGroup("Input mapping"); // top level group
    17751775        inputchannels = top->MakeGroup("");
    1776         inputchannels->MakeNullParameter(PARAM_STR7(0), B_MEDIA_RAW_AUDIO, "Input Channel Destinations", B_GENERIC);
     1776        inputchannels->MakeNullParameter(PARAM_STR7(0), B_MEDIA_RAW_AUDIO, "Input channel destinations", B_GENERIC);
    17771777
    17781778        for (int i = 0; (in = fCore->Input(i)); i++) {
    17791779            group = inputchannels->MakeGroup("");
  • src/add-ons/kernel/drivers/audio/cmedia/mux.c

     
    11/*
    22    Copyright 1999, Be Incorporated.   All Rights Reserved.
     3    Copyright 2009, Haiku, Inc. All rights reserved.
    34    This file may be used under the terms of the Be Sample Code License.
    45*/
    56
     
    4344} mux_info;
    4445
    4546const mux_info the_muxes[] = {
    46     { 0, 1, 1, 7, 5, 0xe0, "Sampling Input" },
    47     { 0, -1, 0, 1, 4, 0x10, "Mic +20dB Selection" },
    48     { 0x2a, -1, 0, 1, 0, 0x01, "MIDI Output To Synth" },
    49     { 0x2a, -1, 0, 1, 1, 0x02, "MIDI Input To Synth" },
    50     { 0x2a, -1, 0, 1, 2, 0x04, "MIDI Output To Port" },
     47    { 0, 1, 1, 7, 5, 0xe0, "Sampling input" },
     48    { 0, -1, 0, 1, 4, 0x10, "Mic +20dB selection" },
     49    { 0x2a, -1, 0, 1, 0, 0x01, "MIDI output to synth" },
     50    { 0x2a, -1, 0, 1, 1, 0x02, "MIDI input to synth" },
     51    { 0x2a, -1, 0, 1, 2, 0x04, "MIDI output to port" },
    5152};
    5253
    5354static const uchar unmap_input[] = {
  • src/add-ons/kernel/drivers/audio/emuxki/ac97.c

     
    11/*
    22 * Emuxki BeOS Driver for Creative Labs SBLive!/Audigy series
    33 *
    4  * Copyright (c) 2002, Jerome Duval (jerome.duval@free.fr)
     4 * Copyright (c) 2002-2009, Jerome Duval (jerome.duval@free.fr)
    55 *
    66 * Original code : BeOS Driver for Intel ICH AC'97 Link interface
    77 * Copyright (c) 2002, Marcus Overhagen <marcus@overhagen.de>
     
    4242
    4343const char * stereo_enhancement_technique[] =
    4444{
    45     "No 3D Stereo Enhancement",
     45    "No 3D stereo enhancement",
    4646    "Analog Devices",
    4747    "Creative Technology",
    4848    "National Semiconductor",
     
    278278    { "Record", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO|B_MIX_RECORDMUX, 100, AC97_RECORD_GAIN, 0x8000, 4, 0, 1, 0, 0.0, 22.5, 1.5 },
    279279    { "Master", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 101, AC97_MASTER_VOLUME, 0x8000, 5, 0, 1, 1,-46.5, 0.0, 1.5 },
    280280    //{ "Bass/Trebble", B_MIX_GAIN|B_MIX_STEREO, 102, AC97_MASTER_TONE, 0x0f0f, 4, 0, 1, 1,-12.0, 10.5, 1.5 },
    281     //{ "Aux Out", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 103, AC97_AUX_OUT_VOLUME, 0x8000, 5, 0, 1, 1,-46.5, 0.0, 1.5 },
    282     { "PCM Out", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 104, AC97_PCM_OUT_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
     281    //{ "Aux out", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 103, AC97_AUX_OUT_VOLUME, 0x8000, 5, 0, 1, 1,-46.5, 0.0, 1.5 },
     282    { "PCM out", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 104, AC97_PCM_OUT_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    283283    { "CD", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 105, AC97_CD_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    284     { "Aux In", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 106, AC97_AUX_IN_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
     284    { "Aux in", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 106, AC97_AUX_IN_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    285285    { "TAD", B_MIX_GAIN|B_MIX_MUTE|B_MIX_MONO, 107, AC97_PHONE_VOLUME, 0x8008, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    286286    { "Mic", B_MIX_GAIN|B_MIX_MUTE|B_MIX_MONO|B_MIX_MICBOOST, 108, AC97_MIC_VOLUME, 0x8008, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    287     { "Line In", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 109, AC97_LINE_IN_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
     287    { "Line in", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 109, AC97_LINE_IN_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    288288    //{ "Center/Lfe", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 111, AC97_CENTER_LFE_VOLUME, 0x8080, 5, 0, 1, 1,-46.5, 0.0, 1.5 },
    289289    { "Center/Lfe" /* should be "Surround" but no */, B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 110, AC97_SURROUND_VOLUME, 0x8080, 5, 0, 1, 1,-46.5, 0.0, 1.5 }
    290290};
  • src/add-ons/kernel/drivers/audio/emuxki/multi.c

     
    11/*
    22 * Emuxki BeOS Driver for Creative Labs SBLive!/Audigy series
    33 *
    4  * Copyright (c) 2002, Jerome Duval (jerome.duval@free.fr)
     4 * Copyright (c) 2002-2009, Jerome Duval (jerome.duval@free.fr)
    55 *
    66 * Original code : BeOS Driver for Intel ICH AC'97 Link interface
    77 * Copyright (c) 2002, Marcus Overhagen <marcus@overhagen.de>
     
    342342            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    343343            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX;
    344344            multi->controls[index].mix_control.parent = parent2;
    345             strcpy(multi->controls[index].mix_control.name, "Record Mux");
     345            strcpy(multi->controls[index].mix_control.name, "Record mux");
    346346            multi->controls[index].cookie = info;
    347347            multi->controls[index].type = B_MIX_MUX;
    348348            multi->controls[index].get = &emuxki_ac97_get_mix;
     
    358358            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    359359            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    360360            multi->controls[index].mix_control.parent = parent3;
    361             strcpy(multi->controls[index].mix_control.name, "CD In");
     361            strcpy(multi->controls[index].mix_control.name, "CD in");
    362362            index++;
    363363            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    364364            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    365365            multi->controls[index].mix_control.parent = parent3;
    366             strcpy(multi->controls[index].mix_control.name, "Video In");
     366            strcpy(multi->controls[index].mix_control.name, "Video in");
    367367            index++;
    368368            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    369369            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    370370            multi->controls[index].mix_control.parent = parent3;
    371             strcpy(multi->controls[index].mix_control.name, "Aux In");
     371            strcpy(multi->controls[index].mix_control.name, "Aux in");
    372372            index++;
    373373            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    374374            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    375375            multi->controls[index].mix_control.parent = parent3;
    376             strcpy(multi->controls[index].mix_control.name, "Line In");
     376            strcpy(multi->controls[index].mix_control.name, "Line in");
    377377            index++;
    378378            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    379379            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
     
    393393        }
    394394    }   
    395395   
    396     parent = emuxki_create_group_control(multi, &index, 0, 0, "AC97 Mixer");
     396    parent = emuxki_create_group_control(multi, &index, 0, 0, "AC97 mixer");
    397397   
    398398    count = source_info_size;
    399399    if (IS_AUDIGY2(&card->config))
  • src/add-ons/kernel/drivers/audio/ac97/geode/geode_multi.cpp

     
    339339    const ac97_source_info *info;
    340340
    341341    /* AC97 Mixer */
    342     parent = create_group_control(multi, &index, 0, S_null, "AC97 Mixer");
     342    parent = create_group_control(multi, &index, 0, S_null, "AC97 mixer");
    343343   
    344344    count = source_info_size;
    345345    //Note that we ignore first item in source_info
     
    467467            multi->controls[index].mix_control.id = MULTI_CONTROL_FIRSTID + index;
    468468            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX;
    469469            multi->controls[index].mix_control.parent = parent2;
    470             strcpy(multi->controls[index].mix_control.name, "Record Mux");
     470            strcpy(multi->controls[index].mix_control.name, "Record mux");
    471471            multi->controls[index].cookie = info;
    472472            multi->controls[index].type = B_MIX_MUX;
    473473            multi->controls[index].get = &geode_ac97_get_mix;
     
    483483            multi->controls[index].mix_control.id = MULTI_CONTROL_FIRSTID + index;
    484484            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    485485            multi->controls[index].mix_control.parent = parent3;
    486             strcpy(multi->controls[index].mix_control.name, "CD In");
     486            strcpy(multi->controls[index].mix_control.name, "CD in");
    487487            index++;
    488488            multi->controls[index].mix_control.id = MULTI_CONTROL_FIRSTID + index;
    489489            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    490490            multi->controls[index].mix_control.parent = parent3;
    491             strcpy(multi->controls[index].mix_control.name, "Video In");
     491            strcpy(multi->controls[index].mix_control.name, "Video in");
    492492            index++;
    493493            multi->controls[index].mix_control.id = MULTI_CONTROL_FIRSTID + index;
    494494            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    495495            multi->controls[index].mix_control.parent = parent3;
    496             strcpy(multi->controls[index].mix_control.name, "Aux In");
     496            strcpy(multi->controls[index].mix_control.name, "Aux in");
    497497            index++;
    498498            multi->controls[index].mix_control.id = MULTI_CONTROL_FIRSTID + index;
    499499            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    500500            multi->controls[index].mix_control.parent = parent3;
    501             strcpy(multi->controls[index].mix_control.name, "Line In");
     501            strcpy(multi->controls[index].mix_control.name, "Line in");
    502502            index++;
    503503            multi->controls[index].mix_control.id = MULTI_CONTROL_FIRSTID + index;
    504504            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
  • src/add-ons/kernel/drivers/audio/ac97/ich/distro/install.sh

     
    88It contains recovery instructions, which you will need if your computer crashes, freezes or fails to start.
    99
    1010
    11 Do you really want to install the ICH AC97  driver now?" "No" "Yes"`
     11Do you really want to install the ICH AC97 driver now?" "No" "Yes"`
    1212
    1313
    1414if [ $answer == "No" ]
  • src/add-ons/kernel/drivers/audio/ac97/ac97.c

     
    22 * AC97 interface
    33 *
    44 * Copyright (c) 2002, Marcus Overhagen <marcus@overhagen.de>
    5  * Copyright (c) 2008, Jérôme Duval
     5 * Copyright (c) 2008-2009, Jérôme Duval
    66 *
    77 * All rights reserved.
    88 * Redistribution and use in source and binary forms, with or without modification,
     
    982982    { "Recording", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO|B_MIX_RECORDMUX, 100, AC97_RECORD_GAIN, 0x8000, 4, 0, 1, 0, 0.0, 22.5, 1.5 },
    983983    { "Master", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 101, AC97_MASTER_VOLUME, 0x8000, 5, 0, 1, 1,-46.5, 0.0, 1.5 },
    984984    //{ "Bass/Treble", B_MIX_GAIN|B_MIX_STEREO, 102, AC97_MASTER_TONE, 0x0f0f, 4, 0, 1, 1,-12.0, 10.5, 1.5 },
    985     //{ "Aux Out", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 103, AC97_AUX_OUT_VOLUME, 0x8000, 5, 0, 1, 1,-46.5, 0.0, 1.5 },
    986     { "PCM Out", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 104, AC97_PCM_OUT_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
     985    //{ "Aux out", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 103, AC97_AUX_OUT_VOLUME, 0x8000, 5, 0, 1, 1,-46.5, 0.0, 1.5 },
     986    { "PCM out", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 104, AC97_PCM_OUT_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    987987    { "CD", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 105, AC97_CD_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    988988    { "Aux In", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 106, AC97_AUX_IN_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    989989    { "TAD", B_MIX_GAIN|B_MIX_MUTE|B_MIX_MONO, 107, AC97_PHONE_VOLUME, 0x8008, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    990990    { "Mic", B_MIX_GAIN|B_MIX_MUTE|B_MIX_MONO|B_MIX_MICBOOST, 108, AC97_MIC_VOLUME, 0x8008, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    991     { "Line In", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 109, AC97_LINE_IN_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
     991    { "Line in", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 109, AC97_LINE_IN_VOLUME, 0x8808, 5, 0, 1, 1,-34.5, 12.0, 1.5 },
    992992    //{ "Center/Lfe", B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 111, AC97_CENTER_LFE_VOLUME, 0x8080, 5, 0, 1, 1,-46.5, 0.0, 1.5 },
    993993    { "Center/Lfe" /* should be "Surround" but no */, B_MIX_GAIN|B_MIX_MUTE|B_MIX_STEREO, 110, AC97_SURR_VOLUME, 0x8080, 5, 0, 1, 1,-46.5, 0.0, 1.5 }
    994994};
  • src/add-ons/kernel/drivers/audio/ac97/auvia/multi.c

     
    11/*
    22 * Auvia BeOS Driver for Via VT82xx Southbridge audio
    33 *
    4  * Copyright (c) 2003, Jerome Duval (jerome.duval@free.fr)
     4 * Copyright (c) 2003-2009, Jerome Duval (jerome.duval@free.fr)
    55 *
    66 * Original code : BeOS Driver for Intel ICH AC'97 Link interface
    77 * Copyright (c) 2002, Marcus Overhagen <marcus@overhagen.de>
     
    253253            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    254254            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX;
    255255            multi->controls[index].mix_control.parent = parent2;
    256             strcpy(multi->controls[index].mix_control.name, "Record Mux");
     256            strcpy(multi->controls[index].mix_control.name, "Record mux");
    257257            multi->controls[index].cookie = info;
    258258            multi->controls[index].type = B_MIX_MUX;
    259259            multi->controls[index].get = &auvia_ac97_get_mix;
     
    269269            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    270270            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    271271            multi->controls[index].mix_control.parent = parent3;
    272             strcpy(multi->controls[index].mix_control.name, "CD In");
     272            strcpy(multi->controls[index].mix_control.name, "CD in");
    273273            index++;
    274274            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    275275            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    276276            multi->controls[index].mix_control.parent = parent3;
    277             strcpy(multi->controls[index].mix_control.name, "Video In");
     277            strcpy(multi->controls[index].mix_control.name, "Video in");
    278278            index++;
    279279            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    280280            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    281281            multi->controls[index].mix_control.parent = parent3;
    282             strcpy(multi->controls[index].mix_control.name, "Aux In");
     282            strcpy(multi->controls[index].mix_control.name, "Aux in");
    283283            index++;
    284284            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    285285            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    286286            multi->controls[index].mix_control.parent = parent3;
    287             strcpy(multi->controls[index].mix_control.name, "Line In");
     287            strcpy(multi->controls[index].mix_control.name, "Line in");
    288288            index++;
    289289            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    290290            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
     
    304304        }
    305305    }   
    306306   
    307     parent = auvia_create_group_control(multi, &index, 0, 0, "AC97 Mixer");
     307    parent = auvia_create_group_control(multi, &index, 0, 0, "AC97 mixer");
    308308   
    309309    count = source_info_size;
    310310    count--;   
  • src/add-ons/kernel/drivers/audio/ac97/ichaudio/ichaudio.c

     
    3030    { 0x1022, 0x7445, -1, -1, -1, -1, -1, "AMD AMD768 AC97 audio" },
    3131    { 0x1103, 0x0004, -1, -1, -1, -1, -1, "Highpoint HPT372 RAID" },
    3232    { 0x1095, 0x3112, -1, -1, -1, -1, -1, "Silicon Image SATA Si3112" },
    33     { 0x8086, 0x244b, -1, -1, -1, -1, -1, "Intel IDE Controller" },
     33    { 0x8086, 0x244b, -1, -1, -1, -1, -1, "Intel IDE controller" },
    3434    { 0x8979, 0x6456, -1, -1, -1, -1, -1, "does not exist" },
    3535    { /* empty = end */}
    3636};
  • src/add-ons/kernel/drivers/audio/ac97/auich/multi.c

     
    11/*
    22 * Auich BeOS Driver for Intel Southbridge audio
    33 *
    4  * Copyright (c) 2003, Jerome Duval (jerome.duval@free.fr)
     4 * Copyright (c) 2003-2009, Jerome Duval (jerome.duval@free.fr)
    55 *
    66 * Original code : BeOS Driver for Intel ICH AC'97 Link interface
    77 * Copyright (c) 2002, Marcus Overhagen <marcus@overhagen.de>
     
    201201    const ac97_source_info *info;
    202202
    203203    /* AC97 Mixer */
    204     parent = auich_create_group_control(multi, &index, 0, 0, "AC97 Mixer");
     204    parent = auich_create_group_control(multi, &index, 0, 0, "AC97 mixer");
    205205   
    206206    count = source_info_size;
    207207    //Note that we ignore first item in source_info
     
    329329            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    330330            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX;
    331331            multi->controls[index].mix_control.parent = parent2;
    332             strcpy(multi->controls[index].mix_control.name, "Record Mux");
     332            strcpy(multi->controls[index].mix_control.name, "Record mux");
    333333            multi->controls[index].cookie = info;
    334334            multi->controls[index].type = B_MIX_MUX;
    335335            multi->controls[index].get = &auich_ac97_get_mix;
     
    345345            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    346346            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    347347            multi->controls[index].mix_control.parent = parent3;
    348             strcpy(multi->controls[index].mix_control.name, "CD In");
     348            strcpy(multi->controls[index].mix_control.name, "CD in");
    349349            index++;
    350350            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    351351            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    352352            multi->controls[index].mix_control.parent = parent3;
    353             strcpy(multi->controls[index].mix_control.name, "Video In");
     353            strcpy(multi->controls[index].mix_control.name, "Video in");
    354354            index++;
    355355            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    356356            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    357357            multi->controls[index].mix_control.parent = parent3;
    358             strcpy(multi->controls[index].mix_control.name, "Aux In");
     358            strcpy(multi->controls[index].mix_control.name, "Aux in");
    359359            index++;
    360360            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    361361            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
    362362            multi->controls[index].mix_control.parent = parent3;
    363             strcpy(multi->controls[index].mix_control.name, "Line In");
     363            strcpy(multi->controls[index].mix_control.name, "Line in");
    364364            index++;
    365365            multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
    366366            multi->controls[index].mix_control.flags = B_MULTI_MIX_MUX_VALUE;
  • src/add-ons/kernel/drivers/audio/null/null_multi.c

     
    11/*
    2  * Copyright 2007 Haiku Inc. All rights reserved.
     2 * Copyright 2007-2009, Haiku, Inc. All rights reserved.
    33 * Distributed under the terms of the MIT License.
    44 *
    55 * Authors:
     
    5151    data->interface_version = B_CURRENT_INTERFACE_VERSION;
    5252    data->interface_minimum = B_CURRENT_INTERFACE_VERSION;
    5353
    54     strcpy(data->friendly_name,"Virtual Audio (null_audio)");
     54    strcpy(data->friendly_name,"Virtual audio (null_audio)");
    5555    strcpy(data->vendor_info,"Host/Haiku");
    5656
    5757    data->output_channel_count = 2;
  • src/add-ons/kernel/drivers/audio/ice1712/multi.c

     
    33 *
    44 * Copyright (c) 2002, Jerome Duval     (jerome.duval@free.fr)
    55 * Copyright (c) 2003, Marcus Overhagen (marcus@overhagen.de)
    6  * Copyright (c) 2007, Jerome Leveque   (leveque.jerome@neuf.fr)
     6 * Copyright (c) 2007-2009, Jerome Leveque  (leveque.jerome@neuf.fr)
    77 *
    88 * All rights reserved
    99 * Distributed under the terms of the MIT license.
     
    131131            strncpy(data->friendly_name, "VX 442", 32);
    132132            break;
    133133        default:
    134             strncpy(data->friendly_name, "Unknow Device", 32);
     134            strncpy(data->friendly_name, "Unknow device", 32);
    135135            break;
    136136    }
    137137           
  • src/add-ons/kernel/drivers/audio/hda/hda_multi_audio.cpp

     
    11/*
    2  * Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
     2 * Copyright 2007-2009, Haiku, Inc. All rights reserved.
    33 * Distributed under the terms of the MIT License.
    44 *
    55 * Authors:
     
    7575    data->interface_version = B_CURRENT_INTERFACE_VERSION;
    7676    data->interface_minimum = B_CURRENT_INTERFACE_VERSION;
    7777
    78     strcpy(data->friendly_name, "HD Audio");
     78    strcpy(data->friendly_name, "HD audio");
    7979    strcpy(data->vendor_info, "Haiku");
    8080
    8181    int32 inChannels = 0;
     
    224224    const char* device = NULL;
    225225    switch (CONF_DEFAULT_DEVICE(widget.d.pin.config)) {
    226226        case PIN_DEV_LINE_IN:
    227             device = "Line In";
     227            device = "Line in";
    228228        case PIN_DEV_LINE_OUT:
    229229            if (device == NULL)
    230                 device = "Line Out";
     230                device = "Line out";
    231231        case PIN_DEV_MIC_IN:
    232232            if (device == NULL)
    233                 device =  "Mic In";
     233                device =  "Mic in";
    234234            switch (CONF_DEFAULT_COLOR(widget.d.pin.config)) {
    235235                case 1:
    236236                    device = "Rear";
     
    239239                    device = "Side";
    240240                    break;
    241241                case 3:
    242                     device = "Line In";
     242                    device = "Line in";
    243243                    break;
    244244                case 4:
    245245                    device = "Front";
     
    248248                    device = "Center/Sub";
    249249                    break;
    250250                case 9:
    251                     device = "Mic In";
     251                    device = "Mic in";
    252252                    break;
    253253            }
    254254            break;
    255255        case PIN_DEV_SPDIF_IN:
    256             device = "SPDIF In";
     256            device = "SPDIF in";
    257257            break;
    258258        case PIN_DEV_SPDIF_OUT:
    259             device = "SPDIF Out";
     259            device = "SPDIF out";
    260260            break;
    261261        case PIN_DEV_CD:
    262262            device = "CD";
  • src/add-ons/kernel/drivers/audio/hda/hda_codec.cpp

     
    5555};
    5656
    5757static const char* kDefaultDevice[] = {
    58     "Line Out", "Speaker", "HP Out", "CD", "SPDIF out", "Digital Other Out",
    59     "Modem Line Side", "Modem Hand Side", "Line In", "AUX", "Mic In",
    60     "Telephony", "SPDIF In", "Digital Other In", "Reserved", "Other"
     58    "Line out", "Speaker", "HP out", "CD", "SPDIF out", "Digital other out",
     59    "Modem line side", "Modem hand side", "Line in", "AUX", "Mic in",
     60    "Telephony", "SPDIF in", "Digital other in", "Reserved", "Other"
    6161};
    6262
    6363static const char* kConnectionType[] = {
    6464    "N/A", "1/8\"", "1/4\"", "ATAPI internal", "RCA", "Optical",
    65     "Other Digital", "Other Analog", "Multichannel Analog (DIN)",
    66     "XLR/Professional", "RJ-11 (Modem)", "Combination", "-", "-", "-", "Other"
     65    "Other digital", "Other analog", "Multichannel analog (DIN)",
     66    "XLR/Professional", "RJ-11 (modem)", "Combination", "-", "-", "-", "Other"
    6767};
    6868
    6969static const char* kJackColor[] = {
     
    7777{
    7878    switch (type) {
    7979        case WT_AUDIO_OUTPUT:
    80             return "Audio Output";
     80            return "Audio output";
    8181        case WT_AUDIO_INPUT:
    82             return "Audio Input";
     82            return "Audio input";
    8383        case WT_AUDIO_MIXER:
    84             return "Audio Mixer";
     84            return "Audio mixer";
    8585        case WT_AUDIO_SELECTOR:
    86             return "Audio Selector";
     86            return "Audio selector";
    8787        case WT_PIN_COMPLEX:
    88             return "Pin Complex";
     88            return "Pin complex";
    8989        case WT_POWER:
    9090            return "Power";
    9191        case WT_VOLUME_KNOB:
    92             return "Volume Knob";
     92            return "Volume knob";
    9393        case WT_BEEP_GENERATOR:
    94             return "Beep Generator";
     94            return "Beep generator";
    9595        case WT_VENDOR_DEFINED:
    96             return "Vendor Defined";
     96            return "Vendor defined";
    9797        default:
    9898            return "Unknown";
    9999    }
     
    158158        uint32      flag;
    159159        const char* name;
    160160    } kFlags[] = {
    161         {AUDIO_CAP_LEFT_RIGHT_SWAP, "L-R Swap"},
     161        {AUDIO_CAP_LEFT_RIGHT_SWAP, "L-R swap"},
    162162        {AUDIO_CAP_POWER_CONTROL, "Power"},
    163163        {AUDIO_CAP_DIGITAL, "Digital"},
    164         {AUDIO_CAP_CONNECTION_LIST, "Conn. List"},
    165         {AUDIO_CAP_UNSOLICITED_RESPONSES, "Unsol. Responses"},
    166         {AUDIO_CAP_PROCESSING_CONTROLS, "Proc Widget"},
     164        {AUDIO_CAP_CONNECTION_LIST, "Conn. list"},
     165        {AUDIO_CAP_UNSOLICITED_RESPONSES, "Unsol. responses"},
     166        {AUDIO_CAP_PROCESSING_CONTROLS, "Proc widget"},
    167167        {AUDIO_CAP_STRIPE, "Stripe"},
    168         {AUDIO_CAP_FORMAT_OVERRIDE, "Format Override"},
    169         {AUDIO_CAP_AMPLIFIER_OVERRIDE, "Amplifier Override"},
    170         {AUDIO_CAP_OUTPUT_AMPLIFIER, "Out Amplifier"},
    171         {AUDIO_CAP_INPUT_AMPLIFIER, "In Amplifier"},
     168        {AUDIO_CAP_FORMAT_OVERRIDE, "Format override"},
     169        {AUDIO_CAP_AMPLIFIER_OVERRIDE, "Amplifier override"},
     170        {AUDIO_CAP_OUTPUT_AMPLIFIER, "Out amplifier"},
     171        {AUDIO_CAP_INPUT_AMPLIFIER, "In amplifier"},
    172172        {AUDIO_CAP_STEREO, "Stereo"},
    173173    };
    174174
  • src/add-ons/kernel/drivers/audio/sis7018/ac97.c

     
    11/*
    22 * This file is a part of SiS 7018 BeOS driver project.
    3  * Copyright (c) 2002-2003 by Siarzuk Zharski <imker@gmx.li>
     3 * Copyright (c) 2002-2009 by Siarzuk Zharski <imker@gmx.li>
    44 * Portional Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
    55 *
    66 * This file may be used under the terms of the BSD License
     
    6969};
    7070
    7171static char *ac97enhancement[] = {
    72   "no 3D Stereo Enhancement",
     72  "No 3D stereo enhancement",
    7373  "Analog Devices Phat Stereo",
    7474  "Creative Stereo Enhancement",
    7575  "National Semi 3D Stereo Enhancement",
     
    581581  char  name[DEVNAME]; 
    582582} ac97_regs[]=
    583583{
    584   {AC97_REG_RESET, "Reset"},           {AC97_MIX_MASTER, "Master Volume"},
    585   {AC97_MIX_PHONES, "AUX Out volume"}, {AC97_MIX_MONO, "Mono Volume"},
    586   {AC97_MIX_TONE, "Master Tone"},    {AC97_MIX_BEEP, "PC Beep"},
    587   {AC97_MIX_PHONE, "Phone volume"},  {AC97_MIX_MIC, "Mio Volume"},
    588   {AC97_MIX_LINE, "Line In Volume"}, {AC97_MIX_CD, "CD Volume"},
    589   {AC97_MIX_VIDEO, "Video Volume"},  {AC97_MIX_AUX, "AUX In Volume"},
    590   {AC97_MIX_PCM, "PCM Out Volume"},  {AC97_REG_RECSEL, "Record Select"},
    591   {AC97_MIX_RGAIN, "Record Gain"},   {AC97_MIX_MGAIN, "Record Gain Mio"},
    592   {AC97_REG_GEN, "General Purpose"}, {AC97_REG_3D, "3D Control"},
    593   {0x24, "Audio Int & Paging"}, {AC97_REG_POWER, "Powerdown Ctrl/Stat"},
    594   {AC97_REG_ID1, "Vendor ID1"}, {AC97_REG_ID2, "VendorID 2"},
     584  {AC97_REG_RESET, "Reset"},           {AC97_MIX_MASTER, "Master volume"},
     585  {AC97_MIX_PHONES, "AUX out volume"}, {AC97_MIX_MONO, "Mono volume"},
     586  {AC97_MIX_TONE, "Master tone"},    {AC97_MIX_BEEP, "PC beep"},
     587  {AC97_MIX_PHONE, "Phone volume"},  {AC97_MIX_MIC, "Mic volume"},
     588  {AC97_MIX_LINE, "Line In Volume"}, {AC97_MIX_CD, "CD volume"},
     589  {AC97_MIX_VIDEO, "Video volume"},  {AC97_MIX_AUX, "AUX in volume"},
     590  {AC97_MIX_PCM, "PCM Out volume"},  {AC97_REG_RECSEL, "Record select"},
     591  {AC97_MIX_RGAIN, "Record gain"},   {AC97_MIX_MGAIN, "Record gain Mic"},
     592  {AC97_REG_GEN, "General purpose"}, {AC97_REG_3D, "3D control"},
     593  {0x24, "Audio int & paging"}, {AC97_REG_POWER, "Powerdown ctrl/stat"},
     594  {AC97_REG_ID1, "VendorID 1"}, {AC97_REG_ID2, "VendorID 2"},
    595595};