Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223103
b: refs/heads/master
c: 0bbaee3
h: refs/heads/master
i:
  223101: a655384
  223099: 820cd36
  223095: 3e9cff0
  223087: 381ba68
  223071: 938ce5d
  223039: 37c8645
  222975: 0f17f93
v: v3
  • Loading branch information
Anssi Hannula authored and Takashi Iwai committed Dec 8, 2010
1 parent 324c267 commit eb98a01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 3dc86429032910bdf762adeb2969112bb303924c
refs/heads/master: 0bbaee3a58c379c4f7bab9635c71d7bad9c422a2
4 changes: 3 additions & 1 deletion trunk/sound/pci/hda/hda_eld.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ static void hdmi_update_short_audio_desc(struct cea_sad *a,
a->channels = GRAB_BITS(buf, 0, 0, 3);
a->channels++;

a->sample_bits = 0;
a->max_bitrate = 0;

a->format = GRAB_BITS(buf, 0, 3, 4);
switch (a->format) {
case AUDIO_CODING_TYPE_REF_STREAM_HEADER:
Expand All @@ -198,7 +201,6 @@ static void hdmi_update_short_audio_desc(struct cea_sad *a,

case AUDIO_CODING_TYPE_LPCM:
val = GRAB_BITS(buf, 2, 0, 3);
a->sample_bits = 0;
for (i = 0; i < 3; i++)
if (val & (1 << i))
a->sample_bits |= cea_sample_sizes[i + 1];
Expand Down

0 comments on commit eb98a01

Please sign in to comment.