Michał Lipski wrote: > Hello, I'm trying to get to work Asus Xonar Essence STX with OSSv4. So > far I've got basic playback.
> +#define GPIO_INPUT_ROUTE (devc->base+0x0100) > +#define GPIO_ST_OUTPUT_ENABLE (devc->base+0x0001) > +#define GPIO_ST_HP_REAR (devc->base+0x0002) > +#define GPIO_ST_HP (devc->base+0x0080) These are bit masks, not port addresses. > + OUTW(devc->osdev, gpio, GPIO_CONTROL); > + OUTW(devc->osdev, gpio, GPIO_DATA); The GPIO_CONTROL/DATA registers have different semantics, you cannot simply write the same value to both. In the control register, set any bit to be used as output, i.e., whose value is to be controlled by the driver. > Although I can't communicate with DAC. I can't change volume etc. Can > someone please have a look? > + /* setup for 2wire communication mode */ > + OUTB(devc->osdev, INB (devc->osdev, FUNCTION) | 0x40, FUNCTION); > + OUTW(devc->osdev, 0x0100, TWO_WIRE_CTRL); In theory, these look OK. (Should be the same as the other models that use 2-wire/I²C mode.) > + two_wire_write(devc, XONAR_STX_DAC, 18, PCM1796_DMF_DISABLED | > PCM1796_FMT_24_LJUST | PCM1796_ATLD);// | PCM1796_MUTE); > + two_wire_write(devc, XONAR_STX_DAC, 16, mix_scale(75,8)); // > left default vol > + two_wire_write(devc, XONAR_STX_DAC, 17, mix_scale(75,8)); // > right default vol > + two_wire_write(devc, XONAR_STX_DAC, 19, PCM1796_FLT_SHARP | > PCM1796_ATS_1); > + two_wire_write(devc, XONAR_STX_DAC, 20, PCM1796_OS_64); > + two_wire_write(devc, XONAR_STX_DAC, 21, 0); Are these executed correctly? Does changing the volume here have any effect? BTW: If you're writing code that is intended to be included into OSS, make sure that you actually have all the rights that you're going to assign to 4Front. Regards, Clemens _______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel