feeder_rate.c (111354) | feeder_rate.c (111909) |
---|---|
1/* 2 * Copyright (c) 2003 Orion Hodson <orion@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 34 unchanged lines hidden (view full) --- 43 * testing revisions. 44 */ 45 46#ifdef _KERNEL 47 48#include <dev/sound/pcm/sound.h> 49#include "feeder_if.h" 50 | 1/* 2 * Copyright (c) 2003 Orion Hodson <orion@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 34 unchanged lines hidden (view full) --- 43 * testing revisions. 44 */ 45 46#ifdef _KERNEL 47 48#include <dev/sound/pcm/sound.h> 49#include "feeder_if.h" 50 |
51SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/feeder_rate.c 111354 2003-02-23 20:49:45Z green $"); | 51SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/feeder_rate.c 111909 2003-03-05 14:48:28Z orion $"); |
52 53#endif /* _KERNEL */ 54 55MALLOC_DEFINE(M_RATEFEEDER, "ratefeed", "pcm rate feeder"); 56 57#ifndef RATE_ASSERT 58#define RATE_ASSERT(x, y) /* KASSERT(x) */ 59#endif /* RATE_ASSERT */ --- 184 unchanged lines hidden (view full) --- 244 return -1; 245} 246 247static int 248feed_rate_init(struct pcm_feeder *f) 249{ 250 struct feed_rate_info *info; 251 | 52 53#endif /* _KERNEL */ 54 55MALLOC_DEFINE(M_RATEFEEDER, "ratefeed", "pcm rate feeder"); 56 57#ifndef RATE_ASSERT 58#define RATE_ASSERT(x, y) /* KASSERT(x) */ 59#endif /* RATE_ASSERT */ --- 184 unchanged lines hidden (view full) --- 244 return -1; 245} 246 247static int 248feed_rate_init(struct pcm_feeder *f) 249{ 250 struct feed_rate_info *info; 251 |
252 info = malloc(sizeof(*info), M_RATEFEEDER, M_WAITOK | M_ZERO); | 252 info = malloc(sizeof(*info), M_RATEFEEDER, M_NOWAIT | M_ZERO); |
253 info->src = DSP_DEFAULT_SPEED; 254 info->dst = DSP_DEFAULT_SPEED; 255 info->channels = 2; 256 257 f->data = info; 258 return 0; 259} 260 --- 227 unchanged lines hidden --- | 253 info->src = DSP_DEFAULT_SPEED; 254 info->dst = DSP_DEFAULT_SPEED; 255 info->channels = 2; 256 257 f->data = info; 258 return 0; 259} 260 --- 227 unchanged lines hidden --- |