ALSA: echoaudio: Use standard C definitions of true and false
authorMark Brown <broonie@kernel.org>
Mon, 10 Aug 2015 12:02:53 +0000 (13:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Aug 2015 12:27:16 +0000 (14:27 +0200)
The echoaudio locally defines TRUE and FALSE.  Not only is this
redundant given that C now has a boolean type it results in lots of
warnings as other headers also define these macros, causing duplicate
definitions.  Fix this by removing the local defines and converting all
local users to use the standard C true and false instead, simply
removing the macros is less safe due to implicit inclusion of the other
definitons.

[fixed overlooked replacement of FALSE by tiwai]

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
22 files changed:
sound/pci/echoaudio/darla20_dsp.c
sound/pci/echoaudio/darla24_dsp.c
sound/pci/echoaudio/echo3g_dsp.c
sound/pci/echoaudio/echoaudio.c
sound/pci/echoaudio/echoaudio.h
sound/pci/echoaudio/echoaudio_3g.c
sound/pci/echoaudio/echoaudio_dsp.c
sound/pci/echoaudio/echoaudio_gml.c
sound/pci/echoaudio/gina20.c
sound/pci/echoaudio/gina20_dsp.c
sound/pci/echoaudio/gina24_dsp.c
sound/pci/echoaudio/indigo_dsp.c
sound/pci/echoaudio/indigodj_dsp.c
sound/pci/echoaudio/indigodjx_dsp.c
sound/pci/echoaudio/indigoio_dsp.c
sound/pci/echoaudio/indigoiox_dsp.c
sound/pci/echoaudio/layla20.c
sound/pci/echoaudio/layla20_dsp.c
sound/pci/echoaudio/layla24_dsp.c
sound/pci/echoaudio/mia.c
sound/pci/echoaudio/mia_dsp.c
sound/pci/echoaudio/mona_dsp.c

index febee5bda8775d21dfee1a1372c6d27c1dce3fc8..320837ba7babd39fdaa830aba537fe47e59c87cb 100644 (file)
@@ -44,18 +44,18 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_DARLA20_DSP;
        chip->spdif_status = GD_SPDIF_STATUS_UNDEF;
        chip->clock_state = GD_CLOCK_UNDEF;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL;
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
index 7b4f6fd51b09b124084a1fba1a33dd3afb9aad18..8736b5e81ca3de112d8b365f4f2b0d3b719f5a03 100644 (file)
@@ -44,17 +44,17 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_DARLA24_DSP;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL |
                ECHO_CLOCK_BIT_ESYNC;
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
index ae11ce11b1c2766f86de4d9fd23b1683316b6761..6deb80c42f11e29593cb56d7a5cebd173c0ba53a 100644 (file)
@@ -59,8 +59,8 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
                cpu_to_le32((E3G_MAGIC_NUMBER / 48000) - 2);
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
-       chip->has_midi = TRUE;
+       chip->bad_board = true;
+       chip->has_midi = true;
        chip->dsp_code_to_load = FW_ECHO3G_DSP;
 
        /* Load the DSP code and the ASIC on the PCI card and get
@@ -78,8 +78,8 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
                chip->px_analog_in = chip->bx_analog_in = 14;
                chip->px_digital_in = chip->bx_digital_in = 16;
                chip->px_num = chip->bx_num = 24;
-               chip->has_phantom_power = TRUE;
-               chip->hasnt_input_nominal_level = TRUE;
+               chip->has_phantom_power = true;
+               chip->hasnt_input_nominal_level = true;
        } else if (err == E3G_LAYLA3G_BOX_TYPE) {
                chip->input_clock_types =       ECHO_CLOCK_BIT_INTERNAL |
                                                ECHO_CLOCK_BIT_SPDIF |
@@ -106,10 +106,10 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 static int set_mixer_defaults(struct echoaudio *chip)
 {
        chip->digital_mode = DIGITAL_MODE_SPDIF_RCA;
-       chip->professional_spdif = FALSE;
-       chip->non_audio_spdif = FALSE;
-       chip->bad_board = FALSE;
-       chip->phantom_power = FALSE;
+       chip->professional_spdif = false;
+       chip->non_audio_spdif = false;
+       chip->bad_board = false;
+       chip->phantom_power = false;
        return init_line_levels(chip);
 }
 
index 862db9a0b04112f5237597a42cbf7d579f18f7e4..1cb85aeb0cea058d35e5ed4b48b1ce6f9d166ff2 100644 (file)
@@ -2245,7 +2245,7 @@ static int snd_echo_resume(struct device *dev)
 
 #ifdef ECHOCARD_HAS_MIDI
        if (chip->midi_input_enabled)
-               enable_midi_input(chip, TRUE);
+               enable_midi_input(chip, true);
        if (chip->midi_out)
                snd_echo_midi_output_trigger(chip->midi_out, 1);
 #endif
index 32515227a692c3fd9ac4ea4b430472a8aaaf406b..152ce158583cfd88a23f476ba8711ffcb88629db 100644 (file)
 #define _ECHOAUDIO_H_
 
 
-#define TRUE 1
-#define FALSE 0
-
 #include "echoaudio_dsp.h"
 
 
@@ -378,8 +375,8 @@ struct echoaudio {
                                         */
        u8 output_clock;                /* Layla20 only */
        char meters_enabled;            /* VU-meters status */
-       char asic_loaded;               /* Set TRUE when ASIC loaded */
-       char bad_board;                 /* Set TRUE if DSP won't load */
+       char asic_loaded;               /* Set true when ASIC loaded */
+       char bad_board;                 /* Set true if DSP won't load */
        char professional_spdif;        /* 0 = consumer; 1 = professional */
        char non_audio_spdif;           /* 3G - only */
        char digital_in_automute;       /* Gina24, Layla24, Mona - only */
index 2fa66dc3e675bf3ff95c86ff4d7f65f85e835056..22c786b8a889513d9d6bc108341e0a1646d338aa 100644 (file)
@@ -41,7 +41,7 @@ static int check_asic_status(struct echoaudio *chip)
                return -EIO;
 
        chip->comm_page->ext_box_status = cpu_to_le32(E3G_ASIC_NOT_LOADED);
-       chip->asic_loaded = FALSE;
+       chip->asic_loaded = false;
        clear_handshake(chip);
        send_vector(chip, DSP_VC_TEST_ASIC);
 
@@ -55,7 +55,7 @@ static int check_asic_status(struct echoaudio *chip)
        if (box_status == E3G_ASIC_NOT_LOADED)
                return -ENODEV;
 
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        return box_status & E3G_BOX_TYPE_MASK;
 }
 
@@ -243,7 +243,7 @@ static int load_asic(struct echoaudio *chip)
         * 48 kHz, internal clock, S/PDIF RCA mode */
        if (box_type >= 0) {
                err = write_control_reg(chip, E3G_48KHZ,
-                                       E3G_FREQ_REG_DEFAULT, TRUE);
+                                       E3G_FREQ_REG_DEFAULT, true);
                if (err < 0)
                        return err;
        }
@@ -378,16 +378,16 @@ static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode)
        int err, incompatible_clock;
 
        /* Set clock to "internal" if it's not compatible with the new mode */
-       incompatible_clock = FALSE;
+       incompatible_clock = false;
        switch (mode) {
        case DIGITAL_MODE_SPDIF_OPTICAL:
        case DIGITAL_MODE_SPDIF_RCA:
                if (chip->input_clock == ECHO_CLOCK_ADAT)
-                       incompatible_clock = TRUE;
+                       incompatible_clock = true;
                break;
        case DIGITAL_MODE_ADAT:
                if (chip->input_clock == ECHO_CLOCK_SPDIF)
-                       incompatible_clock = TRUE;
+                       incompatible_clock = true;
                break;
        default:
                dev_err(chip->card->dev,
index 1a9427aabe1d07e27c210c85f8d2db1fe2f5843d..15aae2fad8e4465cffabec68c8677c4232549f11 100644 (file)
@@ -103,8 +103,8 @@ static int write_dsp(struct echoaudio *chip, u32 data)
                cond_resched();
        }
 
-       chip->bad_board = TRUE;         /* Set TRUE until DSP re-loaded */
-       dev_dbg(chip->card->dev, "write_dsp: Set bad_board to TRUE\n");
+       chip->bad_board = true;         /* Set true until DSP re-loaded */
+       dev_dbg(chip->card->dev, "write_dsp: Set bad_board to true\n");
        return -EIO;
 }
 
@@ -126,8 +126,8 @@ static int read_dsp(struct echoaudio *chip, u32 *data)
                cond_resched();
        }
 
-       chip->bad_board = TRUE;         /* Set TRUE until DSP re-loaded */
-       dev_err(chip->card->dev, "read_dsp: Set bad_board to TRUE\n");
+       chip->bad_board = true;         /* Set true until DSP re-loaded */
+       dev_err(chip->card->dev, "read_dsp: Set bad_board to true\n");
        return -EIO;
 }
 
@@ -166,7 +166,7 @@ static int read_sn(struct echoaudio *chip)
 /* This card has no ASIC, just return ok */
 static inline int check_asic_status(struct echoaudio *chip)
 {
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        return 0;
 }
 
@@ -341,11 +341,11 @@ static int load_dsp(struct echoaudio *chip, u16 *code)
                dev_warn(chip->card->dev, "DSP is already loaded!\n");
                return 0;
        }
-       chip->bad_board = TRUE;         /* Set TRUE until DSP loaded */
+       chip->bad_board = true;         /* Set true until DSP loaded */
        chip->dsp_code = NULL;          /* Current DSP code not loaded */
-       chip->asic_loaded = FALSE;      /* Loading the DSP code will reset the ASIC */
+       chip->asic_loaded = false;      /* Loading the DSP code will reset the ASIC */
 
-       dev_dbg(chip->card->dev, "load_dsp: Set bad_board to TRUE\n");
+       dev_dbg(chip->card->dev, "load_dsp: Set bad_board to true\n");
 
        /* If this board requires a resident loader, install it. */
 #ifdef DSP_56361
@@ -471,7 +471,7 @@ static int load_dsp(struct echoaudio *chip, u16 *code)
                        }
 
                        chip->dsp_code = code;          /* Show which DSP code loaded */
-                       chip->bad_board = FALSE;        /* DSP OK */
+                       chip->bad_board = false;        /* DSP OK */
                        return 0;
                }
                udelay(100);
@@ -951,10 +951,10 @@ static int rest_in_peace(struct echoaudio *chip)
        /* Stops all active pipes (just to be sure) */
        stop_transport(chip, chip->active_mask);
 
-       set_meters_on(chip, FALSE);
+       set_meters_on(chip, false);
 
 #ifdef ECHOCARD_HAS_MIDI
-       enable_midi_input(chip, FALSE);
+       enable_midi_input(chip, false);
 #endif
 
        /* Go to sleep */
@@ -981,9 +981,9 @@ static int init_dsp_comm_page(struct echoaudio *chip)
 
        /* Init all the basic stuff */
        chip->card_name = ECHOCARD_NAME;
-       chip->bad_board = TRUE; /* Set TRUE until DSP loaded */
+       chip->bad_board = true; /* Set true until DSP loaded */
        chip->dsp_code = NULL;  /* Current DSP code not loaded */
-       chip->asic_loaded = FALSE;
+       chip->asic_loaded = false;
        memset(chip->comm_page, 0, sizeof(struct comm_page));
 
        /* Init the comm page */
index 23a099425834e2081e29115af6305ef76ba41971..834b39e97db72f626e6c04703fc8e4d8d6776073 100644 (file)
@@ -48,7 +48,7 @@ static int check_asic_status(struct echoaudio *chip)
        if (read_dsp(chip, &asic_status) < 0) {
                dev_err(chip->card->dev,
                        "check_asic_status: failed on read_dsp\n");
-               chip->asic_loaded = FALSE;
+               chip->asic_loaded = false;
                return -EIO;
        }
 
@@ -192,7 +192,7 @@ static int set_professional_spdif(struct echoaudio *chip, char prof)
                }
        }
 
-       if ((err = write_control_reg(chip, control_reg, FALSE)))
+       if ((err = write_control_reg(chip, control_reg, false)))
                return err;
        chip->professional_spdif = prof;
        dev_dbg(chip->card->dev, "set_professional_spdif to %s\n",
index 4fa32a2e97dbbcb4164d5babcd2ede7f65f35bb0..67bd0c9fc342179e94022c6c9afb5ac7912beab6 100644 (file)
@@ -23,7 +23,7 @@
 #define ECHOCARD_HAS_INPUT_GAIN
 #define ECHOCARD_HAS_DIGITAL_IO
 #define ECHOCARD_HAS_EXTERNAL_CLOCK
-#define ECHOCARD_HAS_ADAT      FALSE
+#define ECHOCARD_HAS_ADAT      false
 
 /* Pipe indexes */
 #define PX_ANALOG_OUT  0       /* 8 */
index 5dafe9260cb415c99f7d441d187f168e860ba92e..b2377573de09fd5778aa014561bf0b6a42bee128 100644 (file)
@@ -48,19 +48,19 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_GINA20_DSP;
        chip->spdif_status = GD_SPDIF_STATUS_UNDEF;
        chip->clock_state = GD_CLOCK_UNDEF;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL |
                ECHO_CLOCK_BIT_SPDIF;
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
@@ -69,7 +69,7 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
 static int set_mixer_defaults(struct echoaudio *chip)
 {
-       chip->professional_spdif = FALSE;
+       chip->professional_spdif = false;
        return init_line_levels(chip);
 }
 
index 6971766938bfe2395d8a76d85e8463c95768ddfc..8eff2b4f5ceb288a390fc6a548edd10d037c899a 100644 (file)
@@ -52,7 +52,7 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->input_clock_types =
                ECHO_CLOCK_BIT_INTERNAL | ECHO_CLOCK_BIT_SPDIF |
                ECHO_CLOCK_BIT_ESYNC | ECHO_CLOCK_BIT_ESYNC96 |
@@ -76,7 +76,7 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
@@ -86,8 +86,8 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 static int set_mixer_defaults(struct echoaudio *chip)
 {
        chip->digital_mode = DIGITAL_MODE_SPDIF_RCA;
-       chip->professional_spdif = FALSE;
-       chip->digital_in_automute = TRUE;
+       chip->professional_spdif = false;
+       chip->digital_in_automute = true;
        return init_line_levels(chip);
 }
 
@@ -152,7 +152,7 @@ static int load_asic(struct echoaudio *chip)
           48 kHz, internal clock, S/PDIF RCA mode */
        if (!err) {
                control_reg = GML_CONVERTER_ENABLE | GML_48KHZ;
-               err = write_control_reg(chip, control_reg, TRUE);
+               err = write_control_reg(chip, control_reg, true);
        }
        return err;
 }
@@ -226,7 +226,7 @@ static int set_sample_rate(struct echoaudio *chip, u32 rate)
        chip->sample_rate = rate;
        dev_dbg(chip->card->dev, "set_sample_rate: %d clock %d\n", rate, clock);
 
-       return write_control_reg(chip, control_reg, FALSE);
+       return write_control_reg(chip, control_reg, false);
 }
 
 
@@ -274,7 +274,7 @@ static int set_input_clock(struct echoaudio *chip, u16 clock)
        }
 
        chip->input_clock = clock;
-       return write_control_reg(chip, control_reg, TRUE);
+       return write_control_reg(chip, control_reg, true);
 }
 
 
@@ -285,17 +285,17 @@ static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode)
        int err, incompatible_clock;
 
        /* Set clock to "internal" if it's not compatible with the new mode */
-       incompatible_clock = FALSE;
+       incompatible_clock = false;
        switch (mode) {
        case DIGITAL_MODE_SPDIF_OPTICAL:
        case DIGITAL_MODE_SPDIF_CDROM:
        case DIGITAL_MODE_SPDIF_RCA:
                if (chip->input_clock == ECHO_CLOCK_ADAT)
-                       incompatible_clock = TRUE;
+                       incompatible_clock = true;
                break;
        case DIGITAL_MODE_ADAT:
                if (chip->input_clock == ECHO_CLOCK_SPDIF)
-                       incompatible_clock = TRUE;
+                       incompatible_clock = true;
                break;
        default:
                dev_err(chip->card->dev,
@@ -333,7 +333,7 @@ static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode)
                break;
        }
 
-       err = write_control_reg(chip, control_reg, TRUE);
+       err = write_control_reg(chip, control_reg, true);
        spin_unlock_irq(&chip->lock);
        if (err < 0)
                return err;
index 54edd67edff7dcfc0aca6edfb587aebe6a9a8259..c97dc83bbbdf5ec51c9bcf67a9e365a74315ff1e 100644 (file)
@@ -49,16 +49,16 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_INDIGO_DSP;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL;
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
index 2cf5cc092d7a92e57b0cf5a86c8f8c438b016307..2428b35f45d6ed99a80012d0e0bc0879024e2aaf 100644 (file)
@@ -49,16 +49,16 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_INDIGO_DJ_DSP;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL;
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
index 5252863f16819b88412efbd336ba7a0010e3b47c..5fbd4a3a3083b53cd91f408c5a8ae3a130312777 100644 (file)
@@ -47,17 +47,17 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_INDIGO_DJX_DSP;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL;
 
        err = load_firmware(chip);
        if (err < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
index 4e81787627e01a00720e6c82c8161d810c30d335..79b68ba7093623140f06bb0e71806aa5def859b8 100644 (file)
@@ -49,16 +49,16 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_INDIGO_IO_DSP;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL;
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
index 6de3f9bc6d269afa36a3a5a649eace4bfa82a0e3..1ae394ea7c7d2ebc0e535149cfc27763712ba51f 100644 (file)
@@ -47,17 +47,17 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_INDIGO_IOX_DSP;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL;
 
        err = load_firmware(chip);
        if (err < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
index 12e5d2164dc49d91824946c5367181995c6f922b..fc8468dabdb34f54004b006afdd1f26465c29cab 100644 (file)
@@ -26,7 +26,7 @@
 #define ECHOCARD_HAS_SUPER_INTERLEAVE
 #define ECHOCARD_HAS_DIGITAL_IO
 #define ECHOCARD_HAS_EXTERNAL_CLOCK
-#define ECHOCARD_HAS_ADAT      FALSE
+#define ECHOCARD_HAS_ADAT      false
 #define ECHOCARD_HAS_OUTPUT_CLOCK_SWITCH
 #define ECHOCARD_HAS_MIDI
 
index f2024a3565afaf71253405bf04b9c2e8aeed177a..5e5b6e288a2d7a616adeec9a7fb92a608549e3fb 100644 (file)
@@ -51,8 +51,8 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
-       chip->has_midi = TRUE;
+       chip->bad_board = true;
+       chip->has_midi = true;
        chip->dsp_code_to_load = FW_LAYLA20_DSP;
        chip->input_clock_types =
                ECHO_CLOCK_BIT_INTERNAL | ECHO_CLOCK_BIT_SPDIF |
@@ -62,7 +62,7 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
@@ -71,7 +71,7 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
 static int set_mixer_defaults(struct echoaudio *chip)
 {
-       chip->professional_spdif = FALSE;
+       chip->professional_spdif = false;
        return init_line_levels(chip);
 }
 
@@ -113,7 +113,7 @@ static int check_asic_status(struct echoaudio *chip)
        u32 asic_status;
        int goodcnt, i;
 
-       chip->asic_loaded = FALSE;
+       chip->asic_loaded = false;
        for (i = goodcnt = 0; i < 5; i++) {
                send_vector(chip, DSP_VC_TEST_ASIC);
 
@@ -127,7 +127,7 @@ static int check_asic_status(struct echoaudio *chip)
 
                if (asic_status == ASIC_ALREADY_LOADED) {
                        if (++goodcnt == 3) {
-                               chip->asic_loaded = TRUE;
+                               chip->asic_loaded = true;
                                return 0;
                        }
                }
index 4f11e81f6c0eb38a61f23505e2222fcd668c683f..df28e5117359a20779eed382f1c6595cdab09e31 100644 (file)
@@ -51,8 +51,8 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
-       chip->has_midi = TRUE;
+       chip->bad_board = true;
+       chip->has_midi = true;
        chip->dsp_code_to_load = FW_LAYLA24_DSP;
        chip->input_clock_types =
                ECHO_CLOCK_BIT_INTERNAL | ECHO_CLOCK_BIT_SPDIF |
@@ -64,7 +64,7 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        if ((err = init_line_levels(chip)) < 0)
                return err;
@@ -77,8 +77,8 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 static int set_mixer_defaults(struct echoaudio *chip)
 {
        chip->digital_mode = DIGITAL_MODE_SPDIF_RCA;
-       chip->professional_spdif = FALSE;
-       chip->digital_in_automute = TRUE;
+       chip->professional_spdif = false;
+       chip->digital_in_automute = true;
        return init_line_levels(chip);
 }
 
@@ -135,7 +135,7 @@ static int load_asic(struct echoaudio *chip)
        err = load_asic_generic(chip, DSP_FNC_LOAD_LAYLA24_EXTERNAL_ASIC,
                                FW_LAYLA24_2S_ASIC);
        if (err < 0)
-               return FALSE;
+               return false;
 
        /* Now give the external ASIC a little time to set up */
        mdelay(10);
@@ -147,7 +147,7 @@ static int load_asic(struct echoaudio *chip)
           48 kHz, internal clock, S/PDIF RCA mode */
        if (!err)
                err = write_control_reg(chip, GML_CONVERTER_ENABLE | GML_48KHZ,
-                                       TRUE);
+                                       true);
        
        return err;
 }
@@ -241,7 +241,7 @@ static int set_sample_rate(struct echoaudio *chip, u32 rate)
        dev_dbg(chip->card->dev,
                "set_sample_rate: %d clock %d\n", rate, control_reg);
 
-       return write_control_reg(chip, control_reg, FALSE);
+       return write_control_reg(chip, control_reg, false);
 }
 
 
@@ -287,7 +287,7 @@ static int set_input_clock(struct echoaudio *chip, u16 clock)
        }
 
        chip->input_clock = clock;
-       return write_control_reg(chip, control_reg, TRUE);
+       return write_control_reg(chip, control_reg, true);
 }
 
 
@@ -334,17 +334,17 @@ static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode)
        short asic;
 
        /* Set clock to "internal" if it's not compatible with the new mode */
-       incompatible_clock = FALSE;
+       incompatible_clock = false;
        switch (mode) {
        case DIGITAL_MODE_SPDIF_OPTICAL:
        case DIGITAL_MODE_SPDIF_RCA:
                if (chip->input_clock == ECHO_CLOCK_ADAT)
-                       incompatible_clock = TRUE;
+                       incompatible_clock = true;
                asic = FW_LAYLA24_2S_ASIC;
                break;
        case DIGITAL_MODE_ADAT:
                if (chip->input_clock == ECHO_CLOCK_SPDIF)
-                       incompatible_clock = TRUE;
+                       incompatible_clock = true;
                asic = FW_LAYLA24_2A_ASIC;
                break;
        default:
@@ -383,7 +383,7 @@ static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode)
                break;
        }
 
-       err = write_control_reg(chip, control_reg, TRUE);
+       err = write_control_reg(chip, control_reg, true);
        spin_unlock_irq(&chip->lock);
        if (err < 0)
                return err;
index 2f7562f1aefb6b77f9931d0c8729a2c338657dbb..62b5240f53b977fa6186b99a77307e829f38c665 100644 (file)
@@ -26,7 +26,7 @@
 #define ECHOCARD_HAS_VMIXER
 #define ECHOCARD_HAS_DIGITAL_IO
 #define ECHOCARD_HAS_EXTERNAL_CLOCK
-#define ECHOCARD_HAS_ADAT      FALSE
+#define ECHOCARD_HAS_ADAT      false
 #define ECHOCARD_HAS_STEREO_BIG_ENDIAN32
 #define ECHOCARD_HAS_MIDI
 #define ECHOCARD_HAS_LINE_OUT_GAIN
index fdad079ad9a13b9232493caf7d44eb24193d4f20..8f612a09c5d05fdd7ab6d49100ace5b16a5fbc8b 100644 (file)
@@ -52,19 +52,19 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->dsp_code_to_load = FW_MIA_DSP;
        /* Since this card has no ASIC, mark it as loaded so everything
           works OK */
-       chip->asic_loaded = TRUE;
+       chip->asic_loaded = true;
        if ((subdevice_id & 0x0000f) == MIA_MIDI_REV)
-               chip->has_midi = TRUE;
+               chip->has_midi = true;
        chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL |
                ECHO_CLOCK_BIT_SPDIF;
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
index 843c7a5e51055035d74d313ca9a2a2adb61aeb50..dce9e57d01c4a98749ce8b3eb96554628486681f 100644 (file)
@@ -52,7 +52,7 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        chip->device_id = device_id;
        chip->subdevice_id = subdevice_id;
-       chip->bad_board = TRUE;
+       chip->bad_board = true;
        chip->input_clock_types =
                ECHO_CLOCK_BIT_INTERNAL | ECHO_CLOCK_BIT_SPDIF |
                ECHO_CLOCK_BIT_WORD | ECHO_CLOCK_BIT_ADAT;
@@ -69,7 +69,7 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 
        if ((err = load_firmware(chip)) < 0)
                return err;
-       chip->bad_board = FALSE;
+       chip->bad_board = false;
 
        return err;
 }
@@ -79,8 +79,8 @@ static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id)
 static int set_mixer_defaults(struct echoaudio *chip)
 {
        chip->digital_mode = DIGITAL_MODE_SPDIF_RCA;
-       chip->professional_spdif = FALSE;
-       chip->digital_in_automute = TRUE;
+       chip->professional_spdif = false;
+       chip->digital_in_automute = true;
        return init_line_levels(chip);
 }
 
@@ -148,7 +148,7 @@ static int load_asic(struct echoaudio *chip)
           48 kHz, internal clock, S/PDIF RCA mode */
        if (!err) {
                control_reg = GML_CONVERTER_ENABLE | GML_48KHZ;
-               err = write_control_reg(chip, control_reg, TRUE);
+               err = write_control_reg(chip, control_reg, true);
        }
 
        return err;
@@ -356,7 +356,7 @@ static int set_input_clock(struct echoaudio *chip, u16 clock)
        }
 
        chip->input_clock = clock;
-       return write_control_reg(chip, control_reg, TRUE);
+       return write_control_reg(chip, control_reg, true);
 }
 
 
@@ -367,16 +367,16 @@ static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode)
        int err, incompatible_clock;
 
        /* Set clock to "internal" if it's not compatible with the new mode */
-       incompatible_clock = FALSE;
+       incompatible_clock = false;
        switch (mode) {
        case DIGITAL_MODE_SPDIF_OPTICAL:
        case DIGITAL_MODE_SPDIF_RCA:
                if (chip->input_clock == ECHO_CLOCK_ADAT)
-                       incompatible_clock = TRUE;
+                       incompatible_clock = true;
                break;
        case DIGITAL_MODE_ADAT:
                if (chip->input_clock == ECHO_CLOCK_SPDIF)
-                       incompatible_clock = TRUE;
+                       incompatible_clock = true;
                break;
        default:
                dev_err(chip->card->dev,
@@ -415,7 +415,7 @@ static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode)
                break;
        }
 
-       err = write_control_reg(chip, control_reg, FALSE);
+       err = write_control_reg(chip, control_reg, false);
        spin_unlock_irq(&chip->lock);
        if (err < 0)
                return err;