Skip to content

Commit 6b3a7c0

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: pcm: add more format names sound: oss: fix uninitialized spinlock ALSA: asihpi - Return hw error directly from oustream_write. ASoC: soc-core: fix debugfs_pop_time file permissions ALSA: hda - Add Sony VAIO quirk for ALC269
2 parents 45b5bed + 9dde3f9 commit 6b3a7c0

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

sound/core/pcm.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,16 @@ static char *snd_pcm_format_names[] = {
203203
FORMAT(S18_3BE),
204204
FORMAT(U18_3LE),
205205
FORMAT(U18_3BE),
206+
FORMAT(G723_24),
207+
FORMAT(G723_24_1B),
208+
FORMAT(G723_40),
209+
FORMAT(G723_40_1B),
206210
};
207211

208212
const char *snd_pcm_format_name(snd_pcm_format_t format)
209213
{
214+
if (format >= ARRAY_SIZE(snd_pcm_format_names))
215+
return "Unknown";
210216
return snd_pcm_format_names[format];
211217
}
212218
EXPORT_SYMBOL_GPL(snd_pcm_format_name);

sound/oss/sound_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static unsigned long prev_event_time;
2626
static volatile unsigned long usecs_per_tmr; /* Length of the current interval */
2727

2828
static struct sound_lowlev_timer *tmr;
29-
static spinlock_t lock;
29+
static DEFINE_SPINLOCK(lock);
3030

3131
static unsigned long tmr2ticks(int tmr_value)
3232
{

sound/pci/asihpi/hpi6205.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,7 @@ static void outstream_host_buffer_free(struct hpi_adapter_obj *pao,
941941

942942
}
943943

944-
static u32 outstream_get_space_available(struct hpi_hostbuffer_status
945-
*status)
944+
static u32 outstream_get_space_available(struct hpi_hostbuffer_status *status)
946945
{
947946
return status->size_in_bytes - (status->host_index -
948947
status->dSP_index);
@@ -987,6 +986,10 @@ static void outstream_write(struct hpi_adapter_obj *pao,
987986
/* write it */
988987
phm->function = HPI_OSTREAM_WRITE;
989988
hw_message(pao, phm, phr);
989+
990+
if (phr->error)
991+
return;
992+
990993
/* update status information that the DSP would typically
991994
* update (and will update next time the DSP
992995
* buffer update task reads data from the host BBM buffer)

sound/pci/hda/patch_realtek.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14467,6 +14467,7 @@ static const struct alc_fixup alc269_fixups[] = {
1446714467

1446814468
static struct snd_pci_quirk alc269_fixup_tbl[] = {
1446914469
SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_FIXUP_SONY_VAIO),
14470+
SND_PCI_QUIRK(0x104d, 0x9077, "Sony VAIO", ALC269_FIXUP_SONY_VAIO),
1447014471
{}
1447114472
};
1447214473

sound/soc/soc-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static void soc_init_codec_debugfs(struct snd_soc_codec *codec)
251251
printk(KERN_WARNING
252252
"ASoC: Failed to create codec register debugfs file\n");
253253

254-
codec->debugfs_pop_time = debugfs_create_u32("dapm_pop_time", 0744,
254+
codec->debugfs_pop_time = debugfs_create_u32("dapm_pop_time", 0644,
255255
codec->debugfs_codec_root,
256256
&codec->pop_time);
257257
if (!codec->debugfs_pop_time)

0 commit comments

Comments
 (0)