Realtek ALC268, Acer 4315 ?Use mic port as independent output?
Greetings,
I have acer 4315 laptop with realtek alc268 codec. (It also has hda modem which I don't use.)
Looking at the datasheet, the codec has 2 PCM outs, but alsa hda driver with model=acer shows only one.
I want to know if I can enable the 2nd output, and use the external mic jack as a second line out?
I can see that PCM2/LOUT2 connects to HP-OUT (widget 0x15), while PCM1/LOUT1 connects to several pins 0x[14,15,16,18,1A]
How do I go about testing this. Does the hda model=test enable *every* widget and PCM and allow change of pin direction etc?
BTW I want to use the 2nd output as the secondar "preview" (prelisten?) headphone output for my audio player (pytone), while main output is going to speakers.
TIA for any advice
--
Eliot
!!PCI Soundcards installed in the system
!!--------------------------------------
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------
00:1b.0 0403: 8086:284b (rev 03)
Subsystem: 1025:0133
!!Modprobe options (Sound related)
!!--------------------------------
snd-hda-intel: enable=1 index=0 model=acer
snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-usb-audio: index=-2
snd-usb-usx2y: index=-2
snd-usb-caiaq: index=-2
snd-cmipci: mpu_port=0x330 fm_port=0x388
!!Loaded sound module options
!!--------------------------
!!Module: snd_hda_intel
enable : Y,Y,Y,Y,Y,Y,Y,Yenable_msi : 0
id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> index : 0,-1,-1,-1,-1,-1,-1,-1
model : acer,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> position_fix : 0,0,0,0,0,0,0,0power_save : 0power_save_controller : Yprobe_mask : -1,-1,-1,-1,-1,-1,-1,-1single_cmd : N
!!HDA-Intel Codec information
!!---------------------------
--startcollapse--
Codec: Realtek ALC268
Address: 0
Vendor Id: 0x10ec0268
Subsystem Id: 0x10250133
Revision Id: 0x100003
No Modem Function Group found
!!Aplay/Arecord output
!!------------
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC268 Analog [ALC268 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
At Fri, 31 Oct 2008 21:55:43 +1300,
Quoted 15 lines · Eliot Blennerhassett
Greetings,
I have acer 4315 laptop with realtek alc268 codec. (It also has hda modem which I don't use.)
Looking at the datasheet, the codec has 2 PCM outs, but alsa hda driver with model=acer shows only one.
I want to know if I can enable the 2nd output, and use the external mic jack as a second line out?
I can see that PCM2/LOUT2 connects to HP-OUT (widget
0x15), while PCM1/LOUT1 connects to several pins 0x[14,15,16,18,1A]
Quoted 6 lines
How do I go about testing this. Does the hda model=test enable *every* widget and PCM and allow change of pin direction etc?
BTW I want to use the 2nd output as the secondar "preview" (prelisten?) headphone output for my audio player (pytone), while main output is going to speakers.
The multi streams (not multi channels) aren't supported yet for Realtek codec support codes. So it won't work as is. It's on my TODO list.
A basic framework was already prepared. spec->stream_analog_alt_playback can store the stream setup. But it's not used yet in the codec setup code.
Takashi
Thanks Takashi,
Quoted 3 lines
The multi streams (not multi channels) aren't supported yet for Realtek codec support codes. So it won't work as is. It's on my TODO list.
I'm certainly prepared to help with coding or testing (as a personal project - no coding style arguments in this case ;)
Quoted 3 lines
A basic framework was already prepared.
spec->stream_analog_alt_playbackcan store the stream setup. But it's not used yet in the codec setup code.
Is there much missing before it can be used?
BTW do you have any idea about all the vendor-defined NIDs that aren't described in the datasheet? 0x[04,05,09,0a,0b,0c,0d,11,17,1b,1f,20,21,22]
--
Eliot
At Sat, 01 Nov 2008 11:08:38 +1300,
Quoted 10 lines · Eliot Blennerhassett
Thanks Takashi,
Quoted 3 lines
The multi streams (not multi channels) aren't supported yet for Realtek codec support codes. So it won't work as is. It's on my TODO list.
I'm certainly prepared to help with coding or testing (as a personal project - no coding style arguments in this case ;)
OK, I'll ask you testing if I change the code for this purpose.
Quoted 5 lines
Quoted 3 lines
A basic framework was already prepared.
spec->stream_analog_alt_playbackcan store the stream setup. But it's not used yet in the codec setup code.Is there much missing before it can be used?
The PCM (hd-audio) callbacks have to be created. To co-exist with the multi-channel setup, we'd need a sort of dynamic channel assignment, and this also requires some mutex.
It wouldn't be that hard, though.
Quoted 3 lines
BTW do you have any idea about all the vendor-defined NIDs that aren't described in the datasheet? 0x[04,05,09,0a,0b,0c,0d,11,17,1b,1f,20,21,22]
Most of them are for compatibility with other Realtek codecs, I guess, so that the standard pins and audio widgets are assigned to the same numbers.
thanks,
Takashi