motu-stream.c (f2ac3b839540ec9203debac034003d0663db1e18) | motu-stream.c (ce9f50e7ac807b7651903c44f1b14a4f97725daa) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * motu-stream.c - a part of driver for MOTU FireWire series 4 * 5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp> 6 */ 7 8#include "motu.h" --- 177 unchanged lines hidden (view full) --- 186 } 187 188 motu->cache.size = motu->tx_stream.syt_interval * frames_per_buffer; 189 motu->cache.event_offsets = kcalloc(motu->cache.size, sizeof(*motu->cache.event_offsets), 190 GFP_KERNEL); 191 if (!motu->cache.event_offsets) { 192 fw_iso_resources_free(&motu->tx_resources); 193 fw_iso_resources_free(&motu->rx_resources); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * motu-stream.c - a part of driver for MOTU FireWire series 4 * 5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp> 6 */ 7 8#include "motu.h" --- 177 unchanged lines hidden (view full) --- 186 } 187 188 motu->cache.size = motu->tx_stream.syt_interval * frames_per_buffer; 189 motu->cache.event_offsets = kcalloc(motu->cache.size, sizeof(*motu->cache.event_offsets), 190 GFP_KERNEL); 191 if (!motu->cache.event_offsets) { 192 fw_iso_resources_free(&motu->tx_resources); 193 fw_iso_resources_free(&motu->rx_resources); |
194 return err; | 194 return -ENOMEM; |
195 } 196 } 197 198 return 0; 199} 200 201static int ensure_packet_formats(struct snd_motu *motu) 202{ --- 226 unchanged lines hidden --- | 195 } 196 } 197 198 return 0; 199} 200 201static int ensure_packet_formats(struct snd_motu *motu) 202{ --- 226 unchanged lines hidden --- |