snd_ps3.c (f01387d2693813eb5271a3448e6a082322c7d75d) snd_ps3.c (a14e7eb59bb7ce10766d4778d382ca52b235147f)
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

--- 1030 unchanged lines hidden (view full) ---

1039 the_card.null_buffer_start_vaddr =
1040 dma_alloc_coherent(&the_card.ps3_dev->core,
1041 PAGE_SIZE,
1042 &the_card.null_buffer_start_dma_addr,
1043 GFP_KERNEL);
1044 if (!the_card.null_buffer_start_vaddr) {
1045 pr_info("%s: nullbuffer alloc failed\n", __func__);
1046 ret = -ENOMEM;
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

--- 1030 unchanged lines hidden (view full) ---

1039 the_card.null_buffer_start_vaddr =
1040 dma_alloc_coherent(&the_card.ps3_dev->core,
1041 PAGE_SIZE,
1042 &the_card.null_buffer_start_dma_addr,
1043 GFP_KERNEL);
1044 if (!the_card.null_buffer_start_vaddr) {
1045 pr_info("%s: nullbuffer alloc failed\n", __func__);
1046 ret = -ENOMEM;
1047 goto clean_preallocate;
1047 goto clean_card;
1048 }
1049 pr_debug("%s: null vaddr=%p dma=%#llx\n", __func__,
1050 the_card.null_buffer_start_vaddr,
1051 the_card.null_buffer_start_dma_addr);
1052 /* set default sample rate/word width */
1053 snd_ps3_init_avsetting(&the_card);
1054
1055 /* register the card */

--- 5 unchanged lines hidden (view full) ---

1061 the_card.card->longname, the_card.start_delay);
1062 return 0;
1063
1064clean_dma_map:
1065 dma_free_coherent(&the_card.ps3_dev->core,
1066 PAGE_SIZE,
1067 the_card.null_buffer_start_vaddr,
1068 the_card.null_buffer_start_dma_addr);
1048 }
1049 pr_debug("%s: null vaddr=%p dma=%#llx\n", __func__,
1050 the_card.null_buffer_start_vaddr,
1051 the_card.null_buffer_start_dma_addr);
1052 /* set default sample rate/word width */
1053 snd_ps3_init_avsetting(&the_card);
1054
1055 /* register the card */

--- 5 unchanged lines hidden (view full) ---

1061 the_card.card->longname, the_card.start_delay);
1062 return 0;
1063
1064clean_dma_map:
1065 dma_free_coherent(&the_card.ps3_dev->core,
1066 PAGE_SIZE,
1067 the_card.null_buffer_start_vaddr,
1068 the_card.null_buffer_start_dma_addr);
1069clean_preallocate:
1070 snd_pcm_lib_preallocate_free_for_all(the_card.pcm);
1071clean_card:
1072 snd_card_free(the_card.card);
1073clean_irq:
1074 snd_ps3_free_irq();
1075clean_dma_region:
1076 ps3_dma_region_free(dev->d_region);
1077clean_mmio:
1078 snd_ps3_unmap_mmio();

--- 85 unchanged lines hidden ---
1069clean_card:
1070 snd_card_free(the_card.card);
1071clean_irq:
1072 snd_ps3_free_irq();
1073clean_dma_region:
1074 ps3_dma_region_free(dev->d_region);
1075clean_mmio:
1076 snd_ps3_unmap_mmio();

--- 85 unchanged lines hidden ---