Message ID | 44ee7ac5c0ddb4d25ac1bd4f189d328f8205e4a0.1459431292.git.jsarha@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, 31 Mar 2016 15:35:59 +0200, Jyri Sarha wrote: > > 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> Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/sound/core/pcm_iec958.c b/sound/core/pcm_iec958.c index e016871..5e6aed6 100644 --- a/sound/core/pcm_iec958.c +++ b/sound/core/pcm_iec958.c @@ -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;
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> --- sound/core/pcm_iec958.c | 1 + 1 file changed, 1 insertion(+)