Changeset f3fb83a in mainline


Ignore:
Timestamp:
2012-08-30T16:43:27Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3869c596
Parents:
20d77fb
Message:

sb16: Minor fixes.

Remove event interval from debug messages, it was bogus anyway and caused division by zero in case of no events.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dsp.c

    r20d77fb rf3fb83a  
    6666        static const char* state_names[] = {
    6767                [DSP_PLAYBACK_ACTIVE_EVENTS] = "PLAYBACK w/ EVENTS",
    68                 [DSP_CAPTURE_ACTIVE_EVENTS] = "CAPTURE w/o ACTIVE",
    69                 [DSP_PLAYBACK_NOEVENTS] = "PLAYBACK w/. EVENTS",
     68                [DSP_CAPTURE_ACTIVE_EVENTS] = "CAPTURE w/ EVENTS",
     69                [DSP_PLAYBACK_NOEVENTS] = "PLAYBACK w/o EVENTS",
    7070                [DSP_CAPTURE_NOEVENTS] = "CAPTURE w/o EVENTS",
    7171                [DSP_PLAYBACK_TERMINATE] = "PLAYBACK TERMINATE",
     
    408408                return ENOTSUP;
    409409
    410         /* Client requested regular interrupts */
     410        /* Client requested regular events */
    411411        if (frames) {
    412412                if (!dsp->event_session)
     
    431431#endif
    432432
    433         ddf_log_verbose("Playback started, interrupt every %u samples "
    434             "(~1/%u sec)", dsp->active.samples,
    435             sampling_rate / (dsp->active.samples * channels));
     433        ddf_log_verbose("Playback started, event every %u samples",
     434            dsp->active.samples);
    436435
    437436        dsp_change_state(dsp,
     
    481480                return ENOTSUP;
    482481
    483         /* client requested regular interrupts */
     482        /* Client requested regular events */
    484483        if (frames) {
    485484                if (!dsp->event_session)
     
    504503#endif
    505504
    506         ddf_log_verbose("Recording started started, interrupt every %u samples "
    507             "(~1/%u sec)", dsp->active.samples,
    508             sampling_rate / (dsp->active.samples * channels));
     505        ddf_log_verbose("Capture started started, event every %u samples",
     506            dsp->active.samples);
    509507        dsp_change_state(dsp,
    510508            frames ? DSP_CAPTURE_ACTIVE_EVENTS : DSP_CAPTURE_NOEVENTS);
Note: See TracChangeset for help on using the changeset viewer.