snd_ps3.c (a9de18eb761f7c1c860964b2e5addc1a35c7e861) | snd_ps3.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52) |
---|---|
1/* 2 * Audio support for PS3 3 * Copyright (C) 2007 Sony Computer Entertainment Inc. 4 * All rights reserved. 5 * Copyright 2006, 2007 Sony Corporation 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License --- 955 unchanged lines hidden (view full) --- 964 965 /* irq */ 966 if (snd_ps3_allocate_irq()) { 967 ret = -ENXIO; 968 goto clean_dma_region; 969 } 970 971 /* create card instance */ | 1/* 2 * Audio support for PS3 3 * Copyright (C) 2007 Sony Computer Entertainment Inc. 4 * All rights reserved. 5 * Copyright 2006, 2007 Sony Corporation 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License --- 955 unchanged lines hidden (view full) --- 964 965 /* irq */ 966 if (snd_ps3_allocate_irq()) { 967 ret = -ENXIO; 968 goto clean_dma_region; 969 } 970 971 /* create card instance */ |
972 the_card.card = snd_card_new(index, id, THIS_MODULE, 0); 973 if (!the_card.card) { 974 ret = -ENXIO; | 972 ret = snd_card_create(index, id, THIS_MODULE, 0, &the_card.card); 973 if (ret < 0) |
975 goto clean_irq; | 974 goto clean_irq; |
976 } | |
977 978 strcpy(the_card.card->driver, "PS3"); 979 strcpy(the_card.card->shortname, "PS3"); 980 strcpy(the_card.card->longname, "PS3 sound"); 981 982 /* create control elements */ 983 for (i = 0; i < ARRAY_SIZE(spdif_ctls); i++) { 984 ret = snd_ctl_add(the_card.card, --- 224 unchanged lines hidden --- | 975 976 strcpy(the_card.card->driver, "PS3"); 977 strcpy(the_card.card->shortname, "PS3"); 978 strcpy(the_card.card->longname, "PS3 sound"); 979 980 /* create control elements */ 981 for (i = 0; i < ARRAY_SIZE(spdif_ctls); i++) { 982 ret = snd_ctl_add(the_card.card, --- 224 unchanged lines hidden --- |