LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Linux compatibility with Sony Vaio VGN-N350N? (https://www.linuxquestions.org/questions/linux-hardware-18/linux-compatibility-with-sony-vaio-vgn-n350n-634523/)

quanta 07-27-2010 09:16 AM

Quote:

Originally Posted by Peacedog (Post 4046334)
Hi quanta, Welcome to LQ. You may get more and better replies from your own thread on the subject. That said, post some specifics and we'll try to help.

Hi Peacedog,

Sorry for my unspecific post. Below is the info on my laptop:

Code:

$ /sbin/lspci -v
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
        Subsystem: Sony Corporation Device 8212
        Flags: bus master, fast devsel, latency 0, IRQ 22
        Memory at dc240000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

Code:

$ cat /proc/asound/card0/codec#* | grep Codec
Codec: Realtek ALC262
Codec: Conexant ID 2c06

Code:

$ /sbin/lsmod
Module                  Size  Used by
snd_seq_dummy          2380  0
snd_seq_oss            23548  0
snd_seq_midi_event      5460  1 snd_seq_oss
snd_seq                41520  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          5532  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            32688  0
snd_mixer_oss          12552  1 snd_pcm_oss
fuse                  50692  2
vboxnetadp            62544  0
vboxnetflt            67600  0
vboxdrv                97040  1 vboxnetflt
snd_hda_codec_realtek  184224  1
snd_hda_intel          22808  2
snd_hda_codec          49080  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              6184  1 snd_hda_codec
snd_pcm                58536  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
iwl3945                94952  0
snd_timer              16528  2 snd_seq,snd_pcm
snd                    44312  15 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
iwlcore              130348  1 iwl3945
soundcore              5372  1 snd
ehci_hcd              29236  0
uhci_hcd              18960  0
snd_page_alloc          7412  2 snd_hda_intel,snd_pcm

... and more details:
Code:

$ cat /etc/modprobe.d/alsa.conf
# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1

options snd-hda-intel model=toshiba-s06


Peacedog 07-27-2010 08:53 PM

First let's try cleaning up the alsa.conf file. Try something like this.

Code:

alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=toshiba-s06

See if that gets it going. If not, try some of the other options from the HD-Audio-Models.txt file.

Good luck. ;-)

quanta 07-28-2010 07:53 AM

Quote:

Originally Posted by Peacedog (Post 4047420)
First let's try cleaning up the alsa.conf file. Try something like this.

Code:

alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd-hda-intel model=toshiba-s06


I tried your suggestion and discovered that: when I scream near mic hole, Skype play back to me with a light voice.
Quote:

Originally Posted by Peacedog (Post 4047420)
See if that gets it going. If not, try some of the other options from the HD-Audio-Models.txt file.

The other options got same result.

Peacedog 07-28-2010 11:33 AM

Have you raised the mixer levels for the mic? Is there a "mic boost" or "amplifier" option for the mic? Do you have multiple options for the mic, I.E. Mic 1, Mic 2, Digital Mic, etc.?

Good luck. ;-)

quanta 07-28-2010 12:29 PM

Hi Peacedog,

Quote:

Originally Posted by Peacedog (Post 4048108)
Have you raised the mixer levels for the mic? Is there a "mic boost" or "amplifier" option for the mic? Do you have multiple options for the mic, I.E. Mic 1, Mic 2, Digital Mic, etc.?

Good luck. ;-)

You can see it from amixer output:
Code:

Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 30 [97%] [10.50dB] [on]
  Front Right: Playback 30 [97%] [10.50dB] [on]

Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 120 [100%] [30.00dB]
  Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Int DMic' 'Mic'
  Item0: 'Int DMic'

I have re-compiled alsa driver from source code on the realtek.com.tw, and now the amixer output like below:
Code:

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 19 [61%] [-18.00dB] [on]
  Front Right: Playback 18 [58%] [-19.50dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 30 [97%] [10.50dB] [on]
  Front Right: Playback 30 [97%] [10.50dB] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [34.50dB] [on]
  Front Right: Capture 31 [100%] [34.50dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [34.50dB] [on]
  Front Right: Capture 31 [100%] [34.50dB] [on]
Simple mixer control 'Capture',2
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [34.50dB] [on]
  Front Right: Capture 31 [100%] [34.50dB] [on]
Simple mixer control 'ATAPI Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 120 [100%] [30.00dB]
  Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',2
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Line' 'CD'
  Item0: 'Front Mic'

As you can see: there are 3 Input Source channels which are adjusted to Front Mic.

And... it still didn't work.

Thanks for your enthusiasm.

Peacedog 07-28-2010 02:35 PM

Have you tried alsamixer instead of amixer? It will give you a graphical look at all of the channels. Have you tried the "Mic" option in place of the "Front Mic" option? If not, give that a whirl as well. With the HDA cards, not all channels are always correctly identified.

Aside from that you could try the HDA Analyzer.

Good luck. ;-)

quanta 07-28-2010 10:28 PM

Quote:

Originally Posted by Peacedog (Post 4048282)
Have you tried alsamixer instead of amixer? It will give you a graphical look at all of the channels.

Yes, obviously. I always adjust by alsamixer but give amixer output to you.
Quote:

Originally Posted by Peacedog (Post 4048282)
Have you tried the "Mic" option in place of the "Front Mic" option? If not, give that a whirl as well.

I have tried and only hear the fingers knock with Front Mic and Mic, Line and CD has no.
Quote:

Originally Posted by Peacedog (Post 4048282)
With the HDA cards, not all channels are always correctly identified.

Aside from that you could try the HDA Analyzer.

Thank about HDA Analyzer. After Googling, I tried to change VREF from 80 to GRD or 50 in node 0x18, but no luck:
Code:

Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x0000173e: IN OUT HP Detect Trigger
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x04a15020: [Jack] Mic at Ext Right
    Conn = 1/8, Color = Red
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x22: IN VREF_GRD
  Unsolicited: tag=0x00, enabled=0
  Connection: 2
    0x0c* 0x0d


Peacedog 07-29-2010 06:06 PM

There are a couple of other helpful guides with suggestions here.

Alsa Mic FAQ, Alsa Recording FAQ.

Good luck. ;-)


All times are GMT -5. The time now is 01:43 AM.