~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to audio/ossaudio.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
{
151
151
    switch (ossfmt) {
152
152
    case AFMT_S8:
153
 
        *endianness =0;
 
153
        *endianness = 0;
154
154
        *fmt = AUD_FMT_S8;
155
155
        break;
156
156
 
237
237
        goto err;
238
238
    }
239
239
 
240
 
    if (ioctl (fd, SNDCTL_DSP_NONBLOCK)) {
 
240
    if (ioctl (fd, SNDCTL_DSP_NONBLOCK, NULL)) {
241
241
        oss_logerr2 (errno, typ, "Failed to set non-blocking mode\n");
242
242
        goto err;
243
243
    }
254
254
        goto err;
255
255
    }
256
256
 
 
257
    if (!abinfo.fragstotal || !abinfo.fragsize) {
 
258
        AUD_log (AUDIO_CAP, "Returned bogus buffer information(%d, %d) for %s\n",
 
259
                 abinfo.fragstotal, abinfo.fragsize, typ);
 
260
        goto err;
 
261
    }
 
262
 
257
263
    obt->fmt = fmt;
258
264
    obt->nchannels = nchannels;
259
265
    obt->freq = freq;
288
294
    int err, rpos, live, decr;
289
295
    int samples;
290
296
    uint8_t *dst;
291
 
    st_sample_t *src;
 
297
    struct st_sample *src;
292
298
    struct audio_buf_info abinfo;
293
299
    struct count_info cntinfo;
294
300
    int bufsize;
428
434
    }
429
435
}
430
436
 
431
 
static int oss_init_out (HWVoiceOut *hw, audsettings_t *as)
 
437
static int oss_init_out (HWVoiceOut *hw, struct audsettings *as)
432
438
{
433
439
    OSSVoiceOut *oss = (OSSVoiceOut *) hw;
434
440
    struct oss_params req, obt;
436
442
    int err;
437
443
    int fd;
438
444
    audfmt_e effective_fmt;
439
 
    audsettings_t obt_as;
 
445
    struct audsettings obt_as;
440
446
 
441
447
    oss->fd = -1;
442
448
 
570
576
    return 0;
571
577
}
572
578
 
573
 
static int oss_init_in (HWVoiceIn *hw, audsettings_t *as)
 
579
static int oss_init_in (HWVoiceIn *hw, struct audsettings *as)
574
580
{
575
581
    OSSVoiceIn *oss = (OSSVoiceIn *) hw;
576
582
    struct oss_params req, obt;
578
584
    int err;
579
585
    int fd;
580
586
    audfmt_e effective_fmt;
581
 
    audsettings_t obt_as;
 
587
    struct audsettings obt_as;
582
588
 
583
589
    oss->fd = -1;
584
590