up(&dev->oss.lock); 
up(&dev->oss.lock); 
static int snd_card_saa7134_capture_open(snd_pcm_substream_t * substream){	snd_pcm_runtime_t *runtime = substream->runtime;	snd_card_saa7134_pcm_t *saapcm;        snd_card_saa7134_t *saa7134 = snd_pcm_substream_chip(substream);        struct saa7134_dev *dev = saa7134->saadev;	int err;	down(&dev->oss.lock);        dev->oss.afmt        = SNDRV_PCM_FORMAT_U8;        dev->oss.channels    = 2;        dev->oss.read_count  = 0;        dev->oss.read_offset = 0;        up(&dev->oss.lock);	saapcm = kcalloc(1, sizeof(*saapcm), GFP_KERNEL);	if (saapcm == NULL)		return -ENOMEM;	saapcm->saadev=saa7134->saadev;	spin_lock_init(&saapcm->lock);	saapcm->substream = substream;	runtime->private_data = saapcm;	runtime->private_free = snd_card_saa7134_runtime_free;	runtime->hw = snd_card_saa7134_capture;        if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)                return err;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/saa7134-alsa.c/buggy/drivers/media/video/saa7134/saa7134-alsa.c