Skip to content

Commit

Permalink
ALSA: pcm: Allow 32 bit sample format in IEC958 channel status helper
Browse files Browse the repository at this point in the history
Treat 32 bit sample width as if it was 24 bits when generating IEC958
channel status bits. On some platforms 24 sample width is problematic
and to get full 24 bit precision a 32 bit format, using only the 24
most significant bits, may have to be used.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jyri Sarha authored and Mark Brown committed Apr 6, 2016
1 parent 4a44365 commit 4a462ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/core/pcm_iec958.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ static int create_iec958_consumer(uint rate, uint sample_width,
IEC958_AES4_CON_MAX_WORDLEN_24;
break;
case 24:
case 32: /* Assume 24-bit width for 32-bit samples. */
ws = IEC958_AES4_CON_WORDLEN_24_20 |
IEC958_AES4_CON_MAX_WORDLEN_24;
break;
Expand Down

0 comments on commit 4a462ce

Please sign in to comment.