Commit ec8fbd54 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

codec: dts: fix custom channel mapping detection/tautology

(cherry picked from commit 7e19ed8b7c7a833b091f9127bac38d7c4a6e958c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 92a48138
...@@ -548,18 +548,20 @@ static int SyncInfo( const uint8_t *p_buf, ...@@ -548,18 +548,20 @@ static int SyncInfo( const uint8_t *p_buf,
AOUT_CHAN_REARRIGHT | AOUT_CHAN_LFE; AOUT_CHAN_REARRIGHT | AOUT_CHAN_LFE;
break; break;
case 0xF:
default: default:
if( i_audio_mode <= 63 ) if( (i_audio_mode & 0xFFFF) >= 0x10 )
{ {
/* User defined */ /* User defined */
*pi_channels = 0; *pi_channels = 0;
*pi_channels_conf = 0; *pi_channels_conf = 0;
} }
else return 0; else return 0;
break; break;
} }
if( i_audio_mode & 0x10000 ) if( *pi_channels && (i_audio_mode & 0x10000) )
{ {
(*pi_channels)++; (*pi_channels)++;
*pi_channels_conf |= AOUT_CHAN_LFE; *pi_channels_conf |= AOUT_CHAN_LFE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment