Changeset 7a0a0f5 in mainline


Ignore:
Timestamp:
2011-09-25T12:37:07Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0687e1b
Parents:
01282fc
Message:

sb16: Mixer chip selection.

Location:
uspace/drv/audio/sb16
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/mixer.h

    r01282fc r7a0a0f5  
    3838
    3939typedef enum mixer_type {
     40        SB_MIXER_NONE,
    4041        SB_MIXER_CT1335,
    4142        SB_MIXER_CT1345,
  • uspace/drv/audio/sb16/sb16.c

    r01282fc r7a0a0f5  
    4444static mixer_type_t mixer_type_by_dsp_version(unsigned major, unsigned minor)
    4545{
    46         return SB_MIXER_UNKNOWN;
     46        switch (major)
     47        {
     48        case 1: return SB_MIXER_NONE; /* SB 1.5 and early 2.0 = no mixer chip */
     49        case 2: return (minor == 0) ? SB_MIXER_NONE : SB_MIXER_CT1335;
     50        case 3: return SB_MIXER_CT1345; /* SB Pro */
     51        case 4: return SB_MIXER_CT1745; /* SB 16  */
     52        default: return SB_MIXER_UNKNOWN;
     53        }
    4754}
    4855/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.