Microphone Input VIA vt1708s

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, kodachi, cesium

Microphone Input VIA vt1708s

Postby Webhostbudd » Thu Apr 07, 2011 12:45 am

I'm currently running OSSv4.2_2004 under archlinux on an ASUS M4A785TD-V EVO motherboard which runs VIA vt1708s sound. Output is working flawlessly without static and other noises that ALSA was giving me. The issue though reside in the fact that I am not able to get an input from my microphone, and some of the mic jacks on the computer are actually outputting audio. Here is my ossinfo and ossmix.
ossmix:
Code: Select all
Selected mixer 0/High Definition Audio 0x11060397
Known controls are:
jack.jack1c.mute ON|OFF (currently OFF)
jack.jack1c.pcm11 [<leftvol>:<rightvol>] (currently 62.9:62.9 dB)
jack.jack1c.pcm12 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
jack.jack1c.int-cd [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
jack.jack1c.pcm3 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
jack.jack1c.pcm2 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
jack.jack1c.jack6 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
jack.jack1c.jack5 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
jack.jack1c.pcm4 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
jack.jack1d.mute ON|OFF (currently OFF)
jack.jack1e.mute ON|OFF (currently OFF)
record.select1.select1 <int-cd|pcm3|pcm2|jack6|jack5|mix> (currently pcm3)
record.select1 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
record.jack6 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
misc.pcm2 [<leftvol>:<rightvol>] (currently 62.9:62.9 dB)
misc.mute1 ON|OFF (currently OFF)
misc.pcm3 [<leftvol>:<rightvol>] (currently 62.9:62.9 dB)
misc.pcm4 [<leftvol>:<rightvol>] (currently 62.9:62.9 dB)
misc.mute2 ON|OFF (currently OFF)
misc.mute3 ON|OFF (currently OFF)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 22.0 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm8 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)


ossinfo
Code: Select all
Version info: OSS 4.2 (b 2004/201101052228) (0x00040100) GPL
Platform: Linux/x86_64 2.6.38-ARCH #1 SMP PREEMPT Wed Mar 30 08:47:36 CEST 2011 (William-Desktop)

Number of audio devices:   9
Number of audio engines:   13
Number of MIDI devices:      0
Number of mixer devices:   2


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 ATI HD Audio interrupts=65018 (93677)
    HD Audio controller ATI HD Audio
    Vendor ID    0x10024383
    Subvendor ID 0x1043836c
     Codec  0: Unknown (0x11060397/0x1043836c)
2: oss_usb0 USB audio core services
3: usb046d0809-0 USB sound device
4: usb046d0809-1 USB sound device

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio 0x1106039 (Mixer 0 of device object 1)
    Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer0
    Priority: 10
    Caps:
    Device handle: PCI836c1043-0000:00:14.2-mx01
    Device priority: 10

1: USB sound device (Mixer 0 of device object 3)
    Device file /dev/oss/usb046d0809-0/mix0, Legacy device /dev/mixer1
    Priority: 0
    Caps:
    Device handle: USB-usb046d0809-0-mx01
    Device priority: 0


Audio devices
HD Audio play pcm1                /dev/oss/oss_hdaudio0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Out engine  1: 0/HD Audio play pcm1
                     Available for use
      Engine      2: 8/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      3: 9/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      4: 10/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      5: 11/HD Audio play pcm1 (vmix)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI836c1043-0000:00:14.2-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 8
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm2                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 1/HD Audio play pcm2
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI836c1043-0000:00:14.2-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm3                /dev/oss/oss_hdaudio0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 2/HD Audio play pcm3
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI836c1043-0000:00:14.2-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 3/HD Audio play pcm4
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI836c1043-0000:00:14.2-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play spdifout1           /dev/oss/oss_hdaudio0/spdout0  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 4/HD Audio play spdifout1
                     Available for use
    Input formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI836c1043-0000:00:14.2-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio play spdifout2           /dev/oss/oss_hdaudio0/spdout1  (device index 5)
    Legacy device /dev/dsp5
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 5/HD Audio play spdifout2
                     Available for use
    Input formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001410):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI836c1043-0000:00:14.2-au06
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,88200,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec select1              /dev/oss/oss_hdaudio0/pcmin0  (device index 6)
    Legacy device /dev/dsp6
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      In engine   1: 6/HD Audio rec select1
                     Available for use
      Engine      2: 8/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      3: 9/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      4: 10/HD Audio play pcm1 (vmix)
                     Available for use
      Engine      5: 11/HD Audio play pcm1 (vmix)
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI836c1043-0000:00:14.2-au07
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

HD Audio rec jack6                /dev/oss/oss_hdaudio0/pcmin1  (device index 7)
    Legacy device /dev/dsp7
    Caps: TRIGGER MMAP
    Modes: INPUT 
      In engine   1: 7/HD Audio rec jack6
                     Available for use
    Input formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Output formats (0x00001010):
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_S32_LE   - 32 bit signed little endian
    Device handle: PCI836c1043-0000:00:14.2-au08
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 2
    Native sample rates (min - max): 44100 - 192000 (44100,48000,96000,192000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

(USB sound device rec              /dev/oss/usb046d0809-1/pcmin0 ) (device index 8)
    Legacy device /dev/dsp8
    Caps: TRIGGER MMAP
    Modes: INPUT 
   ******* DEVICE NOT PLUGGED IN *******
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Device handle: USB-usb046d0809-1-au01
    Related mixer dev: 1
    Sample rate source: 12
    Preferred channel configuration: MONO
    Supported number of channels (min - max): 1 - 1
    Native sample rates (min - max): 16000 - 16000 (16000)
    HW Type: Not indicated.
    Minimum latency: Not indicated


Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
Webhostbudd
 
Posts: 6
Joined: Wed Apr 06, 2011 5:20 pm

Re: Microphone Input VIA vt1708s

Postby igorzwx » Thu Apr 07, 2011 8:28 am

Webhostbudd wrote:The issue though reside in the fact that... some of the mic jacks on the computer are actually outputting audio.


It is not a bug. It is a special feature of HDA. Mic jacks should be able to output audio. Otherwise, it is a bug in the driver.

It makes sense to test your soundcard with Arch LiveCD viewtopic.php?f=3&t=3933#p16711

For certain soundcards, mic works only on LiveCD. More exactly, mic works before the first reboot. To resurrect mic, you have to re-install OSS4 and set the immutable bit (before the next first reboot). However, the immutable bit is not a universal solution (sometimes it does not fix the problem).
It helped me to fix mic on Intel HDA ICH6 with Arch.
It fails to fix mic on Intel HDA ICH7 with Ubuntu.
igorzwx
 
Posts: 966
Joined: Sun Jun 28, 2009 9:31 pm

Re: Microphone Input VIA vt1708s

Postby Webhostbudd » Thu Apr 07, 2011 4:27 pm

No Dice, It still detects my soundcard with the same settings. This is after a clean install of oss on archlive.
Webhostbudd
 
Posts: 6
Joined: Wed Apr 06, 2011 5:20 pm

Re: Microphone Input VIA vt1708s

Postby igorzwx » Thu Apr 07, 2011 8:30 pm

Webhostbudd wrote:No Dice, It still detects my soundcard with the same settings. This is after a clean install of oss on archlive.


That problem is not in hw detection.

This might be wrong:

Code: Select all
record.select1.select1 <int-cd|pcm3|pcm2|jack6|jack5|mix> (currently pcm3)


You may try "mix" or "jack6".

Try different settings. The guide is here: https://wiki.archlinux.org/index.php/OS ... leshooting

Code: Select all
$ man ossrecord


Your ossmix + ossinfo:

Code: Select all
(mix) /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0

(mix) record.select1 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
HD Audio rec select1              /dev/oss/oss_hdaudio0/pcmin0  (device index 6)

(jack6) record.jack6 [<leftvol>:<rightvol>] (currently 46.4:46.4 dB)
HD Audio rec jack6                /dev/oss/oss_hdaudio0/pcmin1  (device index 7)


Your microphone devices (for "ossrecord"):

Code: Select all
/dev/oss/oss_hdaudio0/pcmin0  (device index 6)
/dev/oss/oss_hdaudio0/pcmin1  (device index 7)


mic1:
Code: Select all
/dev/oss/oss_hdaudio0/pcm0 -> /dev/oss/oss_hdaudio0/pcmin0


mic2:
Code: Select all
/dev/oss/oss_hdaudio0/pcmin1
igorzwx
 
Posts: 966
Joined: Sun Jun 28, 2009 9:31 pm

Re: Microphone Input VIA vt1708s

Postby Webhostbudd » Fri Apr 08, 2011 12:32 am

I have already tried what you suggested in the past and it does not work. I've tried all the possible selections in the select1 as well as doing a straight record from pcmin1 and pcmin0. None of these produce output.
Webhostbudd
 
Posts: 6
Joined: Wed Apr 06, 2011 5:20 pm

Re: Microphone Input VIA vt1708s

Postby cesium » Fri Apr 08, 2011 1:27 am

Try adding "hdaudio_noskip=7" line to /usr/lib/oss/conf/oss_hdaudio.conf and restarting OSS. See if there any new mixer controls in ossmix output, and if so, try changing them.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: Microphone Input VIA vt1708s

Postby Webhostbudd » Fri Apr 08, 2011 5:32 pm

Tried this as well, it doesn't add anything to the list of devices. Well, at least nothing useful as the one new pcm that it adds doesn't work for recording.
Webhostbudd
 
Posts: 6
Joined: Wed Apr 06, 2011 5:20 pm

Re: Microphone Input VIA vt1708s

Postby Webhostbudd » Sun Apr 10, 2011 4:34 am

Is there any way I can reconfigure the way oss maps the device to input and outputs? I'd really like to get this working so that I can finally switch away from windows. Recording is important.
Webhostbudd
 
Posts: 6
Joined: Wed Apr 06, 2011 5:20 pm

Re: Microphone Input VIA vt1708s

Postby cesium » Tue Apr 12, 2011 2:57 pm

There's a complicated procedure which a program called 'mixgen' and making a custom mixer. The first part is easy, but not sure about the second one... We can try though:
A) Get the OSS source tree via mercurial (See here)
B) chdir to utils/ and compile mixgen.c with 'make' command.
C) Edit /usr/lib/oss/conf/oss_hdaudio.conf and add the line "hdaudio_snoopy=1".
D) run "sudo mixgen" and paste the output somewhere.
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Re: Microphone Input VIA vt1708s

Postby Webhostbudd » Sat Apr 16, 2011 7:21 pm

Sorry it took so long to get back to you. Here is my output from mixgen.
Code: Select all
#define COPYING Copyright (C) 4Front Technologies 2007. All rights reserved.
/* Codec index is 0 */
/* Codec vendor 1106:0397 */
/* HD codec revision 1.0 (0.0) (0x00100000) */
/* Subsystem ID 1043836c */
/* Default amplifier caps: in=00000000, out=00000000 */
#include "oss_hdaudio_cfg.h"
#include "hdaudio.h"
#include "hdaudio_codec.h"
#include "hdaudio_dedicated.h"

int
hdaudio_subdevice1043836c_mixer_init (int dev, hdaudio_mixer_t * mixer, int cad, int top_group)
{
  int ctl=0;

  DDB(cmn_err(CE_CONT, "hdaudio_subdevice1043836c_mixer_init got called.\n"));

  /* Handle PIN widgets */
  {
   int n, group, pin_group;

   n=0;

   HDA_GROUP(pin_group, top_group, "jack");

   if (HDA_PIN_GROUP(0x19, group, pin_group, "", n, "jack", 4))   /* Pin widget 0x19 */
      {
      /* Src 0x18=pcm2 */
      if (HDA_PINSELECT(0x19, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "pcm2-out input");
      }

   if (HDA_PIN_GROUP(0x1a, group, pin_group, "", n, "jack", 4))   /* Pin widget 0x1a */
      {
      /* Src 0x26=pcm3 */
      if (HDA_PINSELECT(0x1a, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "pcm3-out input");
      }

   if (HDA_PIN_GROUP(0x1b, group, pin_group, "", n, "jack", 4))   /* Pin widget 0x1b */
      {
      /* Src 0x18=pcm2 */
      if (HDA_PINSELECT(0x1b, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "pcm2-out input");
      }

   if (HDA_PIN_GROUP(0x1c, group, pin_group, "jack1c", n, "jack", 4))   /* Pin widget 0x1c */
      {
      /* Src 0x16=mix */
      if (HDA_PINSELECT(0x1c, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "mix-out input");
      HDA_OUTMUTE(0x1c, group, "inmute", UNMUTE);
      }

   if (HDA_PIN_GROUP(0x1d, group, pin_group, "jack1d", n, "jack", 4))   /* Pin widget 0x1d */
      {
      /* Src 0x16=mix */
      /* Src 0x25=pcm4:0:37 */
      if (HDA_PINSELECT(0x1d, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "mix-out pcm4:0:37-out input");
      HDA_OUTMUTE(0x1d, group, "inmute", UNMUTE);
      }

   if (HDA_PIN_GROUP(0x1e, group, pin_group, "jack1e", n, "jack", 4))   /* Pin widget 0x1e */
      {
      /* Src 0x16=mix */
      /* Src 0x25=pcm4:0:37 */
      if (HDA_PINSELECT(0x1e, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "mix-out pcm4:0:37-out input");
      HDA_OUTMUTE(0x1e, group, "inmute", UNMUTE);
      }

   if (HDA_PIN_GROUP(0x1f, group, pin_group, "int-cd", n, "jack", 4))   /* Pin widget 0x1f */
      {
      if (HDA_PINSELECT(0x1f, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "input");
      }

   if (HDA_PIN_GROUP(0x22, group, pin_group, "", n, "jack", 4))   /* Pin widget 0x22 */
      {
      /* Src 0x26=pcm3 */
      if (HDA_PINSELECT(0x22, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "pcm3-out input");
      }

   if (HDA_PIN_GROUP(0x23, group, pin_group, "", n, "jack", 4))   /* Pin widget 0x23 */
      {
      /* Src 0x27=pcm4 */
      if (HDA_PINSELECT(0x23, ctl, group, "mode", -1))
         HDA_CHOICES(ctl, "pcm4-out input");

      /* Widget 0x27 (pcm4) */
      /* Src 0x25=pcm4:0:37 */
      HDA_OUTMUTE(0x27, group, "mute", UNMUTE);
      }
  }
  /* Handle ADC widgets */
  {
   int n, group, rec_group;

   n=0;

   HDA_GROUP(rec_group, top_group, "record");

   if (HDA_ADC_GROUP(0x13, group, rec_group, "select1:0:19", n, "record", 4))   /* ADC widget 0x13 */
      {
      /* Src 0x17=select1 */
      HDA_INAMP(0x13, 0, group, "select1", 90);   /* From widget 0x17 */

      /* Widget 0x17 (select1) */
      /* Src 0x1f=int-cd */
      /* Src 0x1a= */
      /* Src 0x1b= */
      /* Src 0x1e=jack1e */
      /* Src 0x1d=jack1d */
      /* Src 0x16=mix */
      if (HDA_SELECT(0x17, "src", ctl, group, -1))
         {
         HDA_CHOICES(ctl, "int-cd pcm3 pcm2 jack6 jack5 mix");
         }
      }

   if (HDA_ADC_GROUP(0x14, group, rec_group, "jack6:0:20", n, "record", 4))   /* ADC widget 0x14 */
      {
      /* Src 0x1e=jack6 */
      HDA_INAMP(0x14, 0, group, "jack1e", 90);   /* From widget 0x1e */
      }
  }
  /* Handle misc widgets */
  {
   int n, group, misc_group;

   n=0;

   HDA_GROUP(misc_group, top_group, "misc");

   if (HDA_MISC_GROUP(0x10, group, misc_group, "pcm1:0:16", n, "misc", 8))   /* Misc widget 0x10 */
      {
      HDA_OUTAMP(0x10, group, "-", 90);
      }

   if (HDA_MISC_GROUP(0x11, group, misc_group, "pcm2:0:17", n, "misc", 8))   /* Misc widget 0x11 */
      {
      HDA_OUTAMP(0x11, group, "-", 90);
      }

   if (HDA_MISC_GROUP(0x16, group, misc_group, "mix", n, "misc", 8))   /* Misc widget 0x16 */
      {
      /* Src 0x10=pcm1:0:16 */
      /* Src 0x1f=int-cd */
      /* Src 0x1a=pcm3 */
      /* Src 0x1b=pcm2 */
      /* Src 0x1e=jack6 */
      /* Src 0x1d=jack5 */
      /* Src 0x25=pcm4:0:37 */
      HDA_INAMP(0x16, 0, group, "pcm1:0:16", 90);   /* From widget 0x10 */
      HDA_INAMP(0x16, 1, group, "int-cd", 90);   /* From widget 0x1f */
      HDA_INAMP(0x16, 2, group, "", 90);   /* From widget 0x1a */
      HDA_INAMP(0x16, 3, group, "", 90);   /* From widget 0x1b */
      HDA_INAMP(0x16, 4, group, "jack1e", 90);   /* From widget 0x1e */
      HDA_INAMP(0x16, 5, group, "jack1d", 90);   /* From widget 0x1d */
      HDA_INAMP(0x16, 6, group, "pcm4:0:37", 90);   /* From widget 0x25 */

      /* Widget 0x25 (pcm4:0:37) */
      HDA_OUTAMP(0x25, group, "-", 90);
      }

   if (HDA_MISC_GROUP(0x18, group, misc_group, "pcm2", n, "misc", 8))   /* Misc widget 0x18 */
      {
      /* Src 0x11=pcm2:0:17 */
      HDA_OUTMUTE(0x18, group, "mute", UNMUTE);
      }

   if (HDA_MISC_GROUP(0x24, group, misc_group, "pcm3:0:36", n, "misc", 8))   /* Misc widget 0x24 */
      {
      HDA_OUTAMP(0x24, group, "-", 90);
      }

   if (HDA_MISC_GROUP(0x26, group, misc_group, "pcm3", n, "misc", 8))   /* Misc widget 0x26 */
      {
      /* Src 0x24=pcm3:0:36 */
      HDA_OUTMUTE(0x26, group, "mute", UNMUTE);
      }
  }
  return 0;
}
Webhostbudd
 
Posts: 6
Joined: Wed Apr 06, 2011 5:20 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 5 guests