Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120464
b: refs/heads/master
c: 903b21d
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang authored and Takashi Iwai committed Nov 19, 2008
1 parent a370604 commit 6ce83db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5457a98039cebf20b564b5c3d73a50615e2b2696
refs/heads/master: 903b21d8b7bb49d3438abdd7b9d4145511e1cba2
11 changes: 5 additions & 6 deletions trunk/sound/pci/hda/hda_eld.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,7 @@ static void hdmi_show_short_audio_desc(struct cea_sad *a)
printk(KERN_INFO "profile: %d\n", a->profile);
}

#define HDMI_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE 80
static void hdmi_print_channel_allocation(int spk_alloc, char *buf, int buflen)
void snd_print_channel_allocation(int spk_alloc, char *buf, int buflen)
{
int i, j;

Expand All @@ -425,7 +424,7 @@ static void hdmi_print_channel_allocation(int spk_alloc, char *buf, int buflen)
void snd_hdmi_show_eld(struct sink_eld *e)
{
int i;
char buf[HDMI_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE];
char buf[SND_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE];

printk(KERN_INFO "ELD buffer size is %d\n", e->eld_size);
printk(KERN_INFO "ELD baseline len is %d*4\n", e->baseline_len);
Expand All @@ -446,7 +445,7 @@ void snd_hdmi_show_eld(struct sink_eld *e)
eld_connection_type_names[e->conn_type]);
printk(KERN_INFO "monitor name is %s\n", e->monitor_name);

hdmi_print_channel_allocation(e->spk_alloc, buf, sizeof(buf));
snd_print_channel_allocation(e->spk_alloc, buf, sizeof(buf));
printk(KERN_INFO "speaker allocations: (0x%x)%s\n", e->spk_alloc, buf);

for (i = 0; i < e->sad_count; i++)
Expand Down Expand Up @@ -484,7 +483,7 @@ static void hdmi_print_eld_info(struct snd_info_entry *entry,
struct snd_info_buffer *buffer)
{
struct sink_eld *e = entry->private_data;
char buf[HDMI_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE];
char buf[SND_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE];
int i;

snd_iprintf(buffer, "monitor name\t\t%s\n", e->monitor_name);
Expand All @@ -501,7 +500,7 @@ static void hdmi_print_eld_info(struct snd_info_entry *entry,
snd_iprintf(buffer, "support_ai\t\t%d\n", e->support_ai);
snd_iprintf(buffer, "audio_sync_delay\t%d\n", e->aud_synch_delay);

hdmi_print_channel_allocation(e->spk_alloc, buf, sizeof(buf));
snd_print_channel_allocation(e->spk_alloc, buf, sizeof(buf));
snd_iprintf(buffer, "speakers\t\t[0x%x] %s\n", e->spk_alloc, buf);

snd_iprintf(buffer, "sad_count\t\t%d\n", e->sad_count);
Expand Down
3 changes: 3 additions & 0 deletions trunk/sound/pci/hda/hda_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -493,4 +493,7 @@ inline int snd_hda_eld_proc_new(struct hda_codec *codec, struct sink_eld *eld)
}
#endif

#define SND_PRINT_CHANNEL_ALLOCATION_ADVISED_BUFSIZE 80
void snd_print_channel_allocation(int spk_alloc, char *buf, int buflen);

#endif /* __SOUND_HDA_LOCAL_H */

0 comments on commit 6ce83db

Please sign in to comment.