diff options
| -rw-r--r-- | sound/core/pcm.c | 6 | ||||
| -rw-r--r-- | sound/oss/sound_timer.c | 2 | ||||
| -rw-r--r-- | sound/pci/asihpi/hpi6205.c | 7 | ||||
| -rw-r--r-- | sound/pci/hda/patch_realtek.c | 1 | ||||
| -rw-r--r-- | sound/soc/soc-core.c | 2 |
5 files changed, 14 insertions, 4 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index cbe815dfbdc8..204af48c5cc1 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
| @@ -203,10 +203,16 @@ static char *snd_pcm_format_names[] = { | |||
| 203 | FORMAT(S18_3BE), | 203 | FORMAT(S18_3BE), |
| 204 | FORMAT(U18_3LE), | 204 | FORMAT(U18_3LE), |
| 205 | FORMAT(U18_3BE), | 205 | FORMAT(U18_3BE), |
| 206 | FORMAT(G723_24), | ||
| 207 | FORMAT(G723_24_1B), | ||
| 208 | FORMAT(G723_40), | ||
| 209 | FORMAT(G723_40_1B), | ||
| 206 | }; | 210 | }; |
| 207 | 211 | ||
| 208 | const char *snd_pcm_format_name(snd_pcm_format_t format) | 212 | const char *snd_pcm_format_name(snd_pcm_format_t format) |
| 209 | { | 213 | { |
| 214 | if (format >= ARRAY_SIZE(snd_pcm_format_names)) | ||
| 215 | return "Unknown"; | ||
| 210 | return snd_pcm_format_names[format]; | 216 | return snd_pcm_format_names[format]; |
| 211 | } | 217 | } |
| 212 | EXPORT_SYMBOL_GPL(snd_pcm_format_name); | 218 | EXPORT_SYMBOL_GPL(snd_pcm_format_name); |
diff --git a/sound/oss/sound_timer.c b/sound/oss/sound_timer.c index f0f0c19fbff7..48cda6c4c257 100644 --- a/sound/oss/sound_timer.c +++ b/sound/oss/sound_timer.c | |||
| @@ -26,7 +26,7 @@ static unsigned long prev_event_time; | |||
| 26 | static volatile unsigned long usecs_per_tmr; /* Length of the current interval */ | 26 | static volatile unsigned long usecs_per_tmr; /* Length of the current interval */ |
| 27 | 27 | ||
| 28 | static struct sound_lowlev_timer *tmr; | 28 | static struct sound_lowlev_timer *tmr; |
| 29 | static spinlock_t lock; | 29 | static DEFINE_SPINLOCK(lock); |
| 30 | 30 | ||
| 31 | static unsigned long tmr2ticks(int tmr_value) | 31 | static unsigned long tmr2ticks(int tmr_value) |
| 32 | { | 32 | { |
diff --git a/sound/pci/asihpi/hpi6205.c b/sound/pci/asihpi/hpi6205.c index 3b4413448226..22c5fc625533 100644 --- a/sound/pci/asihpi/hpi6205.c +++ b/sound/pci/asihpi/hpi6205.c | |||
| @@ -941,8 +941,7 @@ static void outstream_host_buffer_free(struct hpi_adapter_obj *pao, | |||
| 941 | 941 | ||
| 942 | } | 942 | } |
| 943 | 943 | ||
| 944 | static u32 outstream_get_space_available(struct hpi_hostbuffer_status | 944 | static u32 outstream_get_space_available(struct hpi_hostbuffer_status *status) |
| 945 | *status) | ||
| 946 | { | 945 | { |
| 947 | return status->size_in_bytes - (status->host_index - | 946 | return status->size_in_bytes - (status->host_index - |
| 948 | status->dSP_index); | 947 | status->dSP_index); |
| @@ -987,6 +986,10 @@ static void outstream_write(struct hpi_adapter_obj *pao, | |||
| 987 | /* write it */ | 986 | /* write it */ |
| 988 | phm->function = HPI_OSTREAM_WRITE; | 987 | phm->function = HPI_OSTREAM_WRITE; |
| 989 | hw_message(pao, phm, phr); | 988 | hw_message(pao, phm, phr); |
| 989 | |||
| 990 | if (phr->error) | ||
| 991 | return; | ||
| 992 | |||
| 990 | /* update status information that the DSP would typically | 993 | /* update status information that the DSP would typically |
| 991 | * update (and will update next time the DSP | 994 | * update (and will update next time the DSP |
| 992 | * buffer update task reads data from the host BBM buffer) | 995 | * buffer update task reads data from the host BBM buffer) |
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a4dd04524e43..627bf9963368 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
| @@ -14467,6 +14467,7 @@ static const struct alc_fixup alc269_fixups[] = { | |||
| 14467 | 14467 | ||
| 14468 | static struct snd_pci_quirk alc269_fixup_tbl[] = { | 14468 | static struct snd_pci_quirk alc269_fixup_tbl[] = { |
| 14469 | SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), | 14469 | SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), |
| 14470 | SND_PCI_QUIRK(0x104d, 0x9077, "Sony VAIO", ALC269_FIXUP_SONY_VAIO), | ||
| 14470 | {} | 14471 | {} |
| 14471 | }; | 14472 | }; |
| 14472 | 14473 | ||
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 844ae8221a3a..acc91daa1c55 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
| @@ -251,7 +251,7 @@ static void soc_init_codec_debugfs(struct snd_soc_codec *codec) | |||
| 251 | printk(KERN_WARNING | 251 | printk(KERN_WARNING |
| 252 | "ASoC: Failed to create codec register debugfs file\n"); | 252 | "ASoC: Failed to create codec register debugfs file\n"); |
| 253 | 253 | ||
| 254 | codec->debugfs_pop_time = debugfs_create_u32("dapm_pop_time", 0744, | 254 | codec->debugfs_pop_time = debugfs_create_u32("dapm_pop_time", 0644, |
| 255 | codec->debugfs_codec_root, | 255 | codec->debugfs_codec_root, |
| 256 | &codec->pop_time); | 256 | &codec->pop_time); |
| 257 | if (!codec->debugfs_pop_time) | 257 | if (!codec->debugfs_pop_time) |
