diff options
-rw-r--r-- | sound/core/oss/pcm_oss.c | 4 | ||||
-rw-r--r-- | sound/core/pcm_native.c | 2 | ||||
-rw-r--r-- | sound/usb/quirks.c | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c index 02298c9c6020..441405081195 100644 --- a/sound/core/oss/pcm_oss.c +++ b/sound/core/oss/pcm_oss.c | |||
@@ -1326,7 +1326,7 @@ static ssize_t snd_pcm_oss_write2(struct snd_pcm_substream *substream, const cha | |||
1326 | static ssize_t snd_pcm_oss_write1(struct snd_pcm_substream *substream, const char __user *buf, size_t bytes) | 1326 | static ssize_t snd_pcm_oss_write1(struct snd_pcm_substream *substream, const char __user *buf, size_t bytes) |
1327 | { | 1327 | { |
1328 | size_t xfer = 0; | 1328 | size_t xfer = 0; |
1329 | ssize_t tmp; | 1329 | ssize_t tmp = 0; |
1330 | struct snd_pcm_runtime *runtime = substream->runtime; | 1330 | struct snd_pcm_runtime *runtime = substream->runtime; |
1331 | 1331 | ||
1332 | if (atomic_read(&substream->mmap_count)) | 1332 | if (atomic_read(&substream->mmap_count)) |
@@ -1433,7 +1433,7 @@ static ssize_t snd_pcm_oss_read2(struct snd_pcm_substream *substream, char *buf, | |||
1433 | static ssize_t snd_pcm_oss_read1(struct snd_pcm_substream *substream, char __user *buf, size_t bytes) | 1433 | static ssize_t snd_pcm_oss_read1(struct snd_pcm_substream *substream, char __user *buf, size_t bytes) |
1434 | { | 1434 | { |
1435 | size_t xfer = 0; | 1435 | size_t xfer = 0; |
1436 | ssize_t tmp; | 1436 | ssize_t tmp = 0; |
1437 | struct snd_pcm_runtime *runtime = substream->runtime; | 1437 | struct snd_pcm_runtime *runtime = substream->runtime; |
1438 | 1438 | ||
1439 | if (atomic_read(&substream->mmap_count)) | 1439 | if (atomic_read(&substream->mmap_count)) |
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 77ba50ddcf9e..d18b3982548b 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -3422,7 +3422,7 @@ int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream, | |||
3422 | area, | 3422 | area, |
3423 | substream->runtime->dma_area, | 3423 | substream->runtime->dma_area, |
3424 | substream->runtime->dma_addr, | 3424 | substream->runtime->dma_addr, |
3425 | area->vm_end - area->vm_start); | 3425 | substream->runtime->dma_bytes); |
3426 | #endif /* CONFIG_X86 */ | 3426 | #endif /* CONFIG_X86 */ |
3427 | /* mmap with fault handler */ | 3427 | /* mmap with fault handler */ |
3428 | area->vm_ops = &snd_pcm_vm_ops_data_fault; | 3428 | area->vm_ops = &snd_pcm_vm_ops_data_fault; |
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index ea8f3de92fa4..794224e1d6df 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c | |||
@@ -1171,6 +1171,7 @@ static bool is_teac_dsd_dac(unsigned int id) | |||
1171 | switch (id) { | 1171 | switch (id) { |
1172 | case USB_ID(0x0644, 0x8043): /* TEAC UD-501/UD-503/NT-503 */ | 1172 | case USB_ID(0x0644, 0x8043): /* TEAC UD-501/UD-503/NT-503 */ |
1173 | case USB_ID(0x0644, 0x8044): /* Esoteric D-05X */ | 1173 | case USB_ID(0x0644, 0x8044): /* Esoteric D-05X */ |
1174 | case USB_ID(0x0644, 0x804a): /* TEAC UD-301 */ | ||
1174 | return true; | 1175 | return true; |
1175 | } | 1176 | } |
1176 | return false; | 1177 | return false; |