aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/ivtv/ivtv-alsa-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/pci/ivtv/ivtv-alsa-main.c')
-rw-r--r--drivers/media/pci/ivtv/ivtv-alsa-main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-alsa-main.c b/drivers/media/pci/ivtv/ivtv-alsa-main.c
index e970cface70e..39b52929755a 100644
--- a/drivers/media/pci/ivtv/ivtv-alsa-main.c
+++ b/drivers/media/pci/ivtv/ivtv-alsa-main.c
@@ -145,11 +145,12 @@ static int snd_ivtv_init(struct v4l2_device *v4l2_dev)
145 /* This is a no-op for us. We'll use the itv->instance */ 145 /* This is a no-op for us. We'll use the itv->instance */
146 146
147 /* (2) Create a card instance */ 147 /* (2) Create a card instance */
148 ret = snd_card_create(SNDRV_DEFAULT_IDX1, /* use first available id */ 148 ret = snd_card_new(&itv->pdev->dev,
149 SNDRV_DEFAULT_STR1, /* xid from end of shortname*/ 149 SNDRV_DEFAULT_IDX1, /* use first available id */
150 THIS_MODULE, 0, &sc); 150 SNDRV_DEFAULT_STR1, /* xid from end of shortname*/
151 THIS_MODULE, 0, &sc);
151 if (ret) { 152 if (ret) {
152 IVTV_ALSA_ERR("%s: snd_card_create() failed with err %d\n", 153 IVTV_ALSA_ERR("%s: snd_card_new() failed with err %d\n",
153 __func__, ret); 154 __func__, ret);
154 goto err_exit; 155 goto err_exit;
155 } 156 }