aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorOlimpiu Pascariu <olimpiu.pascariu@gmail.com>2010-03-14 11:44:37 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-17 23:47:18 -0400
commit8889a8a53e0144da5dee58e9693190bbdf1c3959 (patch)
tree4a76f14ffbf9a117cb92d86f9e563699605d50c9 /drivers/staging
parent4d36ec7fbf619a48c506eaa497d21619297a2b4f (diff)
V4L/DVB: Staging: cx25821: fix coding style issues in cx25821-alsa.c
>From 9473816c446a6ca91905fc49a73732f70b5223b4 Mon Sep 17 00:00:00 2001 This is a patch to the cx25821-alsa.c file that fixes up errors and warnings found by the checkpatch.pl tool [mchehab@redhat.com: a few adjustments on the comments to improve readability] Signed-off-by: Olimpiu Pascariu <olimpiu.pascariu@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/cx25821/cx25821-alsa.c102
1 files changed, 54 insertions, 48 deletions
diff --git a/drivers/staging/cx25821/cx25821-alsa.c b/drivers/staging/cx25821/cx25821-alsa.c
index 061add30ba8a..33e559d58b1b 100644
--- a/drivers/staging/cx25821/cx25821-alsa.c
+++ b/drivers/staging/cx25821/cx25821-alsa.c
@@ -29,7 +29,7 @@
29#include <linux/pci.h> 29#include <linux/pci.h>
30#include <linux/slab.h> 30#include <linux/slab.h>
31 31
32#include <asm/delay.h> 32#include <linux/delay.h>
33#include <sound/core.h> 33#include <sound/core.h>
34#include <sound/pcm.h> 34#include <sound/pcm.h>
35#include <sound/pcm_params.h> 35#include <sound/pcm_params.h>
@@ -42,10 +42,10 @@
42 42
43#define AUDIO_SRAM_CHANNEL SRAM_CH08 43#define AUDIO_SRAM_CHANNEL SRAM_CH08
44 44
45#define dprintk(level,fmt, arg...) if (debug >= level) \ 45#define dprintk(level, fmt, arg...) if (debug >= level) \
46 printk(KERN_INFO "%s/1: " fmt, chip->dev->name , ## arg) 46 printk(KERN_INFO "%s/1: " fmt, chip->dev->name , ## arg)
47 47
48#define dprintk_core(level,fmt, arg...) if (debug >= level) \ 48#define dprintk_core(level, fmt, arg...) if (debug >= level) \
49 printk(KERN_DEBUG "%s/1: " fmt, chip->dev->name , ## arg) 49 printk(KERN_DEBUG "%s/1: " fmt, chip->dev->name , ## arg)
50 50
51/**************************************************************************** 51/****************************************************************************
@@ -81,7 +81,6 @@ struct cx25821_audio_dev {
81 81
82 struct snd_pcm_substream *substream; 82 struct snd_pcm_substream *substream;
83}; 83};
84typedef struct cx25821_audio_dev snd_cx25821_card_t;
85 84
86 85
87/**************************************************************************** 86/****************************************************************************
@@ -90,7 +89,7 @@ typedef struct cx25821_audio_dev snd_cx25821_card_t;
90 89
91static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 90static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
92static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 91static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
93static int enable[SNDRV_CARDS] = { 1,[1 ... (SNDRV_CARDS - 1)] = 1 }; 92static int enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 };
94 93
95module_param_array(enable, bool, NULL, 0444); 94module_param_array(enable, bool, NULL, 0444);
96MODULE_PARM_DESC(enable, "Enable cx25821 soundcard. default enabled."); 95MODULE_PARM_DESC(enable, "Enable cx25821 soundcard. default enabled.");
@@ -105,7 +104,7 @@ MODULE_PARM_DESC(index, "Index value for cx25821 capture interface(s).");
105MODULE_DESCRIPTION("ALSA driver module for cx25821 based capture cards"); 104MODULE_DESCRIPTION("ALSA driver module for cx25821 based capture cards");
106MODULE_AUTHOR("Hiep Huynh"); 105MODULE_AUTHOR("Hiep Huynh");
107MODULE_LICENSE("GPL"); 106MODULE_LICENSE("GPL");
108MODULE_SUPPORTED_DEVICE("{{Conexant,25821}"); //"{{Conexant,23881}," 107MODULE_SUPPORTED_DEVICE("{{Conexant,25821}"); /* "{{Conexant,23881}," */
109 108
110static unsigned int debug; 109static unsigned int debug;
111module_param(debug, int, 0644); 110module_param(debug, int, 0644);
@@ -135,7 +134,7 @@ MODULE_PARM_DESC(debug, "enable debug messages");
135 * BOARD Specific: Sets audio DMA 134 * BOARD Specific: Sets audio DMA
136 */ 135 */
137 136
138static int _cx25821_start_audio_dma(snd_cx25821_card_t * chip) 137static int _cx25821_start_audio_dma(struct cx25821_audio_dev *chip)
139{ 138{
140 struct cx25821_buffer *buf = chip->buf; 139 struct cx25821_buffer *buf = chip->buf;
141 struct cx25821_dev *dev = chip->dev; 140 struct cx25821_dev *dev = chip->dev;
@@ -143,7 +142,7 @@ static int _cx25821_start_audio_dma(snd_cx25821_card_t * chip)
143 &cx25821_sram_channels[AUDIO_SRAM_CHANNEL]; 142 &cx25821_sram_channels[AUDIO_SRAM_CHANNEL];
144 u32 tmp = 0; 143 u32 tmp = 0;
145 144
146 // enable output on the GPIO 0 for the MCLK ADC (Audio) 145 /* enable output on the GPIO 0 for the MCLK ADC (Audio) */
147 cx25821_set_gpiopin_direction(chip->dev, 0, 0); 146 cx25821_set_gpiopin_direction(chip->dev, 0, 0);
148 147
149 /* Make sure RISC/FIFO are off before changing FIFO/RISC settings */ 148 /* Make sure RISC/FIFO are off before changing FIFO/RISC settings */
@@ -158,18 +157,23 @@ static int _cx25821_start_audio_dma(snd_cx25821_card_t * chip)
158 cx_write(AUD_A_LNGTH, buf->bpl); 157 cx_write(AUD_A_LNGTH, buf->bpl);
159 158
160 /* reset counter */ 159 /* reset counter */
161 cx_write(AUD_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET); //GP_COUNT_CONTROL_RESET = 0x3 160 /* GP_COUNT_CONTROL_RESET = 0x3 */
161 cx_write(AUD_A_GPCNT_CTL, GP_COUNT_CONTROL_RESET);
162 atomic_set(&chip->count, 0); 162 atomic_set(&chip->count, 0);
163 163
164 //Set the input mode to 16-bit 164 /* Set the input mode to 16-bit */
165 tmp = cx_read(AUD_A_CFG); 165 tmp = cx_read(AUD_A_CFG);
166 cx_write(AUD_A_CFG, 166 cx_write(AUD_A_CFG,
167 tmp | FLD_AUD_DST_PK_MODE | FLD_AUD_DST_ENABLE | 167 tmp | FLD_AUD_DST_PK_MODE | FLD_AUD_DST_ENABLE |
168 FLD_AUD_CLK_ENABLE); 168 FLD_AUD_CLK_ENABLE);
169 169
170 //printk(KERN_INFO "DEBUG: Start audio DMA, %d B/line, cmds_start(0x%x)= %d lines/FIFO, %d periods, %d " 170 /* printk(KERN_INFO "DEBUG: Start audio DMA, %d B/line,"
171 // "byte buffer\n", buf->bpl, audio_ch->cmds_start, cx_read(audio_ch->cmds_start + 12)>>1, 171 "cmds_start(0x%x)= %d lines/FIFO, %d periods, "
172 // chip->num_periods, buf->bpl * chip->num_periods); 172 "%d byte buffer\n", buf->bpl,
173 audio_ch->cmds_start,
174 cx_read(audio_ch->cmds_start + 12)>>1,
175 chip->num_periods, buf->bpl *chip->num_periods);
176 */
173 177
174 /* Enables corresponding bits at AUD_INT_STAT */ 178 /* Enables corresponding bits at AUD_INT_STAT */
175 cx_write(AUD_A_INT_MSK, 179 cx_write(AUD_A_INT_MSK,
@@ -182,7 +186,7 @@ static int _cx25821_start_audio_dma(snd_cx25821_card_t * chip)
182 /* enable audio irqs */ 186 /* enable audio irqs */
183 cx_set(PCI_INT_MSK, chip->dev->pci_irqmask | PCI_MSK_AUD_INT); 187 cx_set(PCI_INT_MSK, chip->dev->pci_irqmask | PCI_MSK_AUD_INT);
184 188
185 // Turn on audio downstream fifo and risc enable 0x101 189 /* Turn on audio downstream fifo and risc enable 0x101 */
186 tmp = cx_read(AUD_INT_DMA_CTL); 190 tmp = cx_read(AUD_INT_DMA_CTL);
187 cx_set(AUD_INT_DMA_CTL, 191 cx_set(AUD_INT_DMA_CTL,
188 tmp | (FLD_AUD_DST_A_RISC_EN | FLD_AUD_DST_A_FIFO_EN)); 192 tmp | (FLD_AUD_DST_A_RISC_EN | FLD_AUD_DST_A_FIFO_EN));
@@ -194,7 +198,7 @@ static int _cx25821_start_audio_dma(snd_cx25821_card_t * chip)
194/* 198/*
195 * BOARD Specific: Resets audio DMA 199 * BOARD Specific: Resets audio DMA
196 */ 200 */
197static int _cx25821_stop_audio_dma(snd_cx25821_card_t * chip) 201static int _cx25821_stop_audio_dma(struct cx25821_audio_dev *chip)
198{ 202{
199 struct cx25821_dev *dev = chip->dev; 203 struct cx25821_dev *dev = chip->dev;
200 204
@@ -232,13 +236,13 @@ static char *cx25821_aud_irqs[32] = {
232/* 236/*
233 * BOARD Specific: Threats IRQ audio specific calls 237 * BOARD Specific: Threats IRQ audio specific calls
234 */ 238 */
235static void cx25821_aud_irq(snd_cx25821_card_t * chip, u32 status, u32 mask) 239static void cx25821_aud_irq(struct cx25821_audio_dev *chip, u32 status,
240 u32 mask)
236{ 241{
237 struct cx25821_dev *dev = chip->dev; 242 struct cx25821_dev *dev = chip->dev;
238 243
239 if (0 == (status & mask)) { 244 if (0 == (status & mask))
240 return; 245 return;
241 }
242 246
243 cx_write(AUD_A_INT_STAT, status); 247 cx_write(AUD_A_INT_STAT, status);
244 if (debug > 1 || (status & mask & ~0xff)) 248 if (debug > 1 || (status & mask & ~0xff))
@@ -277,7 +281,7 @@ static void cx25821_aud_irq(snd_cx25821_card_t * chip, u32 status, u32 mask)
277 */ 281 */
278static irqreturn_t cx25821_irq(int irq, void *dev_id) 282static irqreturn_t cx25821_irq(int irq, void *dev_id)
279{ 283{
280 snd_cx25821_card_t *chip = dev_id; 284 struct cx25821_audio_dev *chip = dev_id;
281 struct cx25821_dev *dev = chip->dev; 285 struct cx25821_dev *dev = chip->dev;
282 u32 status, pci_status; 286 u32 status, pci_status;
283 u32 audint_status, audint_mask; 287 u32 audint_status, audint_mask;
@@ -318,11 +322,11 @@ static irqreturn_t cx25821_irq(int irq, void *dev_id)
318 if (handled) 322 if (handled)
319 cx_write(PCI_INT_STAT, pci_status); 323 cx_write(PCI_INT_STAT, pci_status);
320 324
321 out: 325out:
322 return IRQ_RETVAL(handled); 326 return IRQ_RETVAL(handled);
323} 327}
324 328
325static int dsp_buffer_free(snd_cx25821_card_t * chip) 329static int dsp_buffer_free(struct cx25821_audio_dev *chip)
326{ 330{
327 BUG_ON(!chip->dma_size); 331 BUG_ON(!chip->dma_size);
328 332
@@ -363,7 +367,8 @@ static struct snd_pcm_hardware snd_cx25821_digital_hw = {
363 .period_bytes_max = DEFAULT_FIFO_SIZE / 3, 367 .period_bytes_max = DEFAULT_FIFO_SIZE / 3,
364 .periods_min = 1, 368 .periods_min = 1,
365 .periods_max = AUDIO_LINE_SIZE, 369 .periods_max = AUDIO_LINE_SIZE,
366 .buffer_bytes_max = (AUDIO_LINE_SIZE * AUDIO_LINE_SIZE), //128*128 = 16384 = 1024 * 16 370 /* 128 * 128 = 16384 = 1024 * 16 */
371 .buffer_bytes_max = (AUDIO_LINE_SIZE * AUDIO_LINE_SIZE),
367}; 372};
368 373
369/* 374/*
@@ -371,7 +376,7 @@ static struct snd_pcm_hardware snd_cx25821_digital_hw = {
371 */ 376 */
372static int snd_cx25821_pcm_open(struct snd_pcm_substream *substream) 377static int snd_cx25821_pcm_open(struct snd_pcm_substream *substream)
373{ 378{
374 snd_cx25821_card_t *chip = snd_pcm_substream_chip(substream); 379 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
375 struct snd_pcm_runtime *runtime = substream->runtime; 380 struct snd_pcm_runtime *runtime = substream->runtime;
376 int err; 381 int err;
377 unsigned int bpl = 0; 382 unsigned int bpl = 0;
@@ -393,18 +398,19 @@ static int snd_cx25821_pcm_open(struct snd_pcm_substream *substream)
393 398
394 if (cx25821_sram_channels[AUDIO_SRAM_CHANNEL].fifo_size != 399 if (cx25821_sram_channels[AUDIO_SRAM_CHANNEL].fifo_size !=
395 DEFAULT_FIFO_SIZE) { 400 DEFAULT_FIFO_SIZE) {
396 bpl = cx25821_sram_channels[AUDIO_SRAM_CHANNEL].fifo_size / 3; //since there are 3 audio Clusters 401 /* since there are 3 audio Clusters */
402 bpl = cx25821_sram_channels[AUDIO_SRAM_CHANNEL].fifo_size / 3;
397 bpl &= ~7; /* must be multiple of 8 */ 403 bpl &= ~7; /* must be multiple of 8 */
398 404
399 if (bpl > AUDIO_LINE_SIZE) { 405 if (bpl > AUDIO_LINE_SIZE)
400 bpl = AUDIO_LINE_SIZE; 406 bpl = AUDIO_LINE_SIZE;
401 } 407
402 runtime->hw.period_bytes_min = bpl; 408 runtime->hw.period_bytes_min = bpl;
403 runtime->hw.period_bytes_max = bpl; 409 runtime->hw.period_bytes_max = bpl;
404 } 410 }
405 411
406 return 0; 412 return 0;
407 _error: 413_error:
408 dprintk(1, "Error opening PCM!\n"); 414 dprintk(1, "Error opening PCM!\n");
409 return err; 415 return err;
410} 416}
@@ -423,7 +429,7 @@ static int snd_cx25821_close(struct snd_pcm_substream *substream)
423static int snd_cx25821_hw_params(struct snd_pcm_substream *substream, 429static int snd_cx25821_hw_params(struct snd_pcm_substream *substream,
424 struct snd_pcm_hw_params *hw_params) 430 struct snd_pcm_hw_params *hw_params)
425{ 431{
426 snd_cx25821_card_t *chip = snd_pcm_substream_chip(substream); 432 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
427 struct videobuf_dmabuf *dma; 433 struct videobuf_dmabuf *dma;
428 434
429 struct cx25821_buffer *buf; 435 struct cx25821_buffer *buf;
@@ -445,9 +451,8 @@ static int snd_cx25821_hw_params(struct snd_pcm_substream *substream,
445 if (NULL == buf) 451 if (NULL == buf)
446 return -ENOMEM; 452 return -ENOMEM;
447 453
448 if (chip->period_size > AUDIO_LINE_SIZE) { 454 if (chip->period_size > AUDIO_LINE_SIZE)
449 chip->period_size = AUDIO_LINE_SIZE; 455 chip->period_size = AUDIO_LINE_SIZE;
450 }
451 456
452 buf->vb.memory = V4L2_MEMORY_MMAP; 457 buf->vb.memory = V4L2_MEMORY_MMAP;
453 buf->vb.field = V4L2_FIELD_NONE; 458 buf->vb.field = V4L2_FIELD_NONE;
@@ -474,7 +479,7 @@ static int snd_cx25821_hw_params(struct snd_pcm_substream *substream,
474 buf->vb.width, buf->vb.height, 1); 479 buf->vb.width, buf->vb.height, 1);
475 if (ret < 0) { 480 if (ret < 0) {
476 printk(KERN_INFO 481 printk(KERN_INFO
477 "DEBUG: ERROR after cx25821_risc_databuffer_audio() \n"); 482 "DEBUG: ERROR after cx25821_risc_databuffer_audio()\n");
478 goto error; 483 goto error;
479 } 484 }
480 485
@@ -494,7 +499,7 @@ static int snd_cx25821_hw_params(struct snd_pcm_substream *substream,
494 499
495 return 0; 500 return 0;
496 501
497 error: 502error:
498 kfree(buf); 503 kfree(buf);
499 return ret; 504 return ret;
500} 505}
@@ -504,7 +509,7 @@ static int snd_cx25821_hw_params(struct snd_pcm_substream *substream,
504 */ 509 */
505static int snd_cx25821_hw_free(struct snd_pcm_substream *substream) 510static int snd_cx25821_hw_free(struct snd_pcm_substream *substream)
506{ 511{
507 snd_cx25821_card_t *chip = snd_pcm_substream_chip(substream); 512 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
508 513
509 if (substream->runtime->dma_area) { 514 if (substream->runtime->dma_area) {
510 dsp_buffer_free(chip); 515 dsp_buffer_free(chip);
@@ -528,7 +533,7 @@ static int snd_cx25821_prepare(struct snd_pcm_substream *substream)
528static int snd_cx25821_card_trigger(struct snd_pcm_substream *substream, 533static int snd_cx25821_card_trigger(struct snd_pcm_substream *substream,
529 int cmd) 534 int cmd)
530{ 535{
531 snd_cx25821_card_t *chip = snd_pcm_substream_chip(substream); 536 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
532 int err = 0; 537 int err = 0;
533 538
534 /* Local interrupts are already disabled by ALSA */ 539 /* Local interrupts are already disabled by ALSA */
@@ -557,7 +562,7 @@ static int snd_cx25821_card_trigger(struct snd_pcm_substream *substream,
557static snd_pcm_uframes_t snd_cx25821_pointer(struct snd_pcm_substream 562static snd_pcm_uframes_t snd_cx25821_pointer(struct snd_pcm_substream
558 *substream) 563 *substream)
559{ 564{
560 snd_cx25821_card_t *chip = snd_pcm_substream_chip(substream); 565 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
561 struct snd_pcm_runtime *runtime = substream->runtime; 566 struct snd_pcm_runtime *runtime = substream->runtime;
562 u16 count; 567 u16 count;
563 568
@@ -593,10 +598,11 @@ static struct snd_pcm_ops snd_cx25821_pcm_ops = {
593}; 598};
594 599
595/* 600/*
596 * ALSA create a PCM device: Called when initializing the board. Sets up the name and hooks up 601 * ALSA create a PCM device: Called when initializing the board.
597 * the callbacks 602 * Sets up the name and hooks up the callbacks
598 */ 603 */
599static int snd_cx25821_pcm(snd_cx25821_card_t * chip, int device, char *name) 604static int snd_cx25821_pcm(struct cx25821_audio_dev *chip, int device,
605 char *name)
600{ 606{
601 struct snd_pcm *pcm; 607 struct snd_pcm *pcm;
602 int err; 608 int err;
@@ -636,7 +642,7 @@ MODULE_DEVICE_TABLE(pci, cx25821_audio_pci_tbl);
636 * from the file. 642 * from the file.
637 */ 643 */
638/* 644/*
639static int snd_cx25821_free(snd_cx25821_card_t *chip) 645static int snd_cx25821_free(struct cx25821_audio_dev *chip)
640{ 646{
641 if (chip->irq >= 0) 647 if (chip->irq >= 0)
642 free_irq(chip->irq, chip); 648 free_irq(chip->irq, chip);
@@ -653,9 +659,9 @@ static int snd_cx25821_free(snd_cx25821_card_t *chip)
653 */ 659 */
654static void snd_cx25821_dev_free(struct snd_card *card) 660static void snd_cx25821_dev_free(struct snd_card *card)
655{ 661{
656 snd_cx25821_card_t *chip = card->private_data; 662 struct cx25821_audio_dev *chip = card->private_data;
657 663
658 //snd_cx25821_free(chip); 664 /* snd_cx25821_free(chip); */
659 snd_card_free(chip->card); 665 snd_card_free(chip->card);
660} 666}
661 667
@@ -665,23 +671,23 @@ static void snd_cx25821_dev_free(struct snd_card *card)
665static int cx25821_audio_initdev(struct cx25821_dev *dev) 671static int cx25821_audio_initdev(struct cx25821_dev *dev)
666{ 672{
667 struct snd_card *card; 673 struct snd_card *card;
668 snd_cx25821_card_t *chip; 674 struct cx25821_audio_dev *chip;
669 int err; 675 int err;
670 676
671 if (devno >= SNDRV_CARDS) { 677 if (devno >= SNDRV_CARDS) {
672 printk(KERN_INFO "DEBUG ERROR: devno >= SNDRV_CARDS %s\n", 678 printk(KERN_INFO "DEBUG ERROR: devno >= SNDRV_CARDS %s\n",
673 __func__); 679 __func__);
674 return (-ENODEV); 680 return -ENODEV;
675 } 681 }
676 682
677 if (!enable[devno]) { 683 if (!enable[devno]) {
678 ++devno; 684 ++devno;
679 printk(KERN_INFO "DEBUG ERROR: !enable[devno] %s\n", __func__); 685 printk(KERN_INFO "DEBUG ERROR: !enable[devno] %s\n", __func__);
680 return (-ENOENT); 686 return -ENOENT;
681 } 687 }
682 688
683 err = snd_card_create(index[devno], id[devno], THIS_MODULE, 689 err = snd_card_create(index[devno], id[devno], THIS_MODULE,
684 sizeof(snd_cx25821_card_t), &card); 690 sizeof(struct cx25821_audio_dev), &card);
685 if (err < 0) { 691 if (err < 0) {
686 printk(KERN_INFO 692 printk(KERN_INFO
687 "DEBUG ERROR: cannot create snd_card_new in %s\n", 693 "DEBUG ERROR: cannot create snd_card_new in %s\n",
@@ -693,7 +699,7 @@ static int cx25821_audio_initdev(struct cx25821_dev *dev)
693 699
694 /* Card "creation" */ 700 /* Card "creation" */
695 card->private_free = snd_cx25821_dev_free; 701 card->private_free = snd_cx25821_dev_free;
696 chip = (snd_cx25821_card_t *) card->private_data; 702 chip = (struct cx25821_audio_dev *) card->private_data;
697 spin_lock_init(&chip->reg_lock); 703 spin_lock_init(&chip->reg_lock);
698 704
699 chip->dev = dev; 705 chip->dev = dev;
@@ -712,7 +718,7 @@ static int cx25821_audio_initdev(struct cx25821_dev *dev)
712 goto error; 718 goto error;
713 } 719 }
714 720
715 if ((err = snd_cx25821_pcm(chip, 0, "cx25821 Digital")) < 0) { 721 if ((err == snd_cx25821_pcm(chip, 0, "cx25821 Digital")) < 0) {
716 printk(KERN_INFO 722 printk(KERN_INFO
717 "DEBUG ERROR: cannot create snd_cx25821_pcm %s\n", 723 "DEBUG ERROR: cannot create snd_cx25821_pcm %s\n",
718 __func__); 724 __func__);
@@ -741,7 +747,7 @@ static int cx25821_audio_initdev(struct cx25821_dev *dev)
741 devno++; 747 devno++;
742 return 0; 748 return 0;
743 749
744 error: 750error:
745 snd_card_free(card); 751 snd_card_free(card);
746 return err; 752 return err;
747} 753}