diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-01-28 02:08:32 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-28 02:08:32 -0500 |
commit | 67fcdead3c7424d51e7108c220c9ab1a5e752ed3 (patch) | |
tree | 3c48fabced8e519ef3f83209a793dfea48dbbfa8 /sound/soc/soc-core.c | |
parent | 006f367e38fb45e2f161c0f500c74449ae63e866 (diff) | |
parent | b1a0aac05f044e78a589bfd7a9e2334aa640eb45 (diff) |
Merge branch 'topic/snd_card_new-err' into topic/asoc
Conflicts:
sound/soc/soc-core.c
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index f18c7a3e36d1..580a1a534ad0 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1308,17 +1308,17 @@ int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid) | |||
1308 | { | 1308 | { |
1309 | struct snd_soc_card *card = socdev->card; | 1309 | struct snd_soc_card *card = socdev->card; |
1310 | struct snd_soc_codec *codec = card->codec; | 1310 | struct snd_soc_codec *codec = card->codec; |
1311 | int ret = 0, i; | 1311 | int ret, i; |
1312 | 1312 | ||
1313 | mutex_lock(&codec->mutex); | 1313 | mutex_lock(&codec->mutex); |
1314 | 1314 | ||
1315 | /* register a sound card */ | 1315 | /* register a sound card */ |
1316 | codec->card = snd_card_new(idx, xid, codec->owner, 0); | 1316 | ret = snd_card_create(idx, xid, codec->owner, 0, &codec->card); |
1317 | if (!codec->card) { | 1317 | if (ret < 0) { |
1318 | printk(KERN_ERR "asoc: can't create sound card for codec %s\n", | 1318 | printk(KERN_ERR "asoc: can't create sound card for codec %s\n", |
1319 | codec->name); | 1319 | codec->name); |
1320 | mutex_unlock(&codec->mutex); | 1320 | mutex_unlock(&codec->mutex); |
1321 | return -ENODEV; | 1321 | return ret; |
1322 | } | 1322 | } |
1323 | 1323 | ||
1324 | codec->card->dev = socdev->dev; | 1324 | codec->card->dev = socdev->dev; |