diff options
author | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 05:02:08 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 05:02:08 -0500 |
commit | 5501972e0b5857bc8354770d900ceb9b40c7f6b7 (patch) | |
tree | ff239422827c4cd54d2998f8851304255de31b38 /drivers/media/video/saa7134/saa7134-alsa.c | |
parent | 9d2f928ddf64ca0361562e30faf584cd33055c60 (diff) | |
parent | e952f31bce6e9f64db01f607abc46529ba57ac9e (diff) |
Merge with rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-alsa.c')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-alsa.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/video/saa7134/saa7134-alsa.c b/drivers/media/video/saa7134/saa7134-alsa.c index e02e6ee31b78..aca84d2f9825 100644 --- a/drivers/media/video/saa7134/saa7134-alsa.c +++ b/drivers/media/video/saa7134/saa7134-alsa.c | |||
@@ -308,8 +308,7 @@ static int dsp_buffer_init(struct saa7134_dev *dev) | |||
308 | 308 | ||
309 | static int dsp_buffer_free(struct saa7134_dev *dev) | 309 | static int dsp_buffer_free(struct saa7134_dev *dev) |
310 | { | 310 | { |
311 | if (!dev->dmasound.blksize) | 311 | BUG_ON(!dev->dmasound.blksize); |
312 | BUG(); | ||
313 | 312 | ||
314 | videobuf_dma_free(&dev->dmasound.dma); | 313 | videobuf_dma_free(&dev->dmasound.dma); |
315 | 314 | ||
@@ -612,12 +611,12 @@ static int snd_card_saa7134_capture_open(struct snd_pcm_substream * substream) | |||
612 | struct saa7134_dev *dev = saa7134->dev; | 611 | struct saa7134_dev *dev = saa7134->dev; |
613 | int err; | 612 | int err; |
614 | 613 | ||
615 | down(&dev->dmasound.lock); | 614 | mutex_lock(&dev->dmasound.lock); |
616 | 615 | ||
617 | dev->dmasound.read_count = 0; | 616 | dev->dmasound.read_count = 0; |
618 | dev->dmasound.read_offset = 0; | 617 | dev->dmasound.read_offset = 0; |
619 | 618 | ||
620 | up(&dev->dmasound.lock); | 619 | mutex_unlock(&dev->dmasound.lock); |
621 | 620 | ||
622 | pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); | 621 | pcm = kzalloc(sizeof(*pcm), GFP_KERNEL); |
623 | if (pcm == NULL) | 622 | if (pcm == NULL) |
@@ -941,7 +940,7 @@ static int alsa_card_saa7134_create(struct saa7134_dev *dev, int devnum) | |||
941 | 940 | ||
942 | chip->irq = dev->pci->irq; | 941 | chip->irq = dev->pci->irq; |
943 | 942 | ||
944 | init_MUTEX(&dev->dmasound.lock); | 943 | mutex_init(&dev->dmasound.lock); |
945 | 944 | ||
946 | if ((err = snd_card_saa7134_new_mixer(chip)) < 0) | 945 | if ((err = snd_card_saa7134_new_mixer(chip)) < 0) |
947 | goto __nodev; | 946 | goto __nodev; |