Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2f6b916 in mainline


Ignore:
Timestamp:
2014-08-26T21:36:07Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
dda5848
Parents:
9bae8b8
Message:

Hounds needs stereo sound device.

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

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/codec.c

    r9bae8b8 r2f6b916  
    459459                uint32_t fmt;
    460460                /* 48 kHz, 16-bits, 1 channel */
    461                 fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l);
     461                fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l) | 1;
    462462
    463463                /* Configure converter */
  • uspace/drv/audio/hdaudio/pcm_iface.c

    r9bae8b8 r2f6b916  
    128128
    129129        if (*channels != 1) {
    130                 *channels = 1;
     130                *channels = 2;
    131131                rc = ELIMIT;
    132132        }
     
    137137        }
    138138
    139         if (*rate != 48000) {
    140                 *rate = 48000;
     139        if (*rate != 44100) {
     140                *rate = 44100;
    141141                rc = ELIMIT;
    142142        }
     
    156156        uint32_t fmt;
    157157        /* 48 kHz, 16-bits, 1 channel */
    158         fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l);
     158        fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l) | 1;
    159159
    160160        ddf_msg(LVL_NOTE, "hda_get_buffer() - create stream");
Note: See TracChangeset for help on using the changeset viewer.