All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Line In for Acer Inspire 6530G model
@ 2009-06-26  8:27 Tony Vroon
  2009-06-29  7:19 ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Tony Vroon @ 2009-06-26  8:27 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Emilio López

The Line In connector is set up as PIN_IN by default, using 
VREF_HIZ. It is connected to both ADCs, so add it to both 
input selectors.
Also add the ability to use the input mix (on a SoundBlaster 
one would call this "What You Hear").

Signed-off-by: Tony Vroon <tony@linx.net>

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 3345331..67dd883 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -1560,18 +1560,22 @@ static struct hda_input_mux alc888_2_capture_sources[2] = {
 static struct hda_input_mux alc888_acer_aspire_6530_sources[2] = {
 	/* Interal mic only available on one ADC */
 	{
-		.num_items = 3,
+		.num_items = 5,
 		.items = {
 			{ "Ext Mic", 0x0 },
+			{ "Line In", 0x2 },
 			{ "CD", 0x4 },
+			{ "Input Mix", 0xa },
 			{ "Int Mic", 0xb },
 		},
 	},
 	{
-		.num_items = 2,
+		.num_items = 4,
 		.items = {
 			{ "Ext Mic", 0x0 },
+			{ "Line In", 0x2 },
 			{ "CD", 0x4 },
+			{ "Input Mix", 0xa },
 		},
 	}
 };
@@ -8189,6 +8193,8 @@ static struct snd_kcontrol_new alc888_acer_aspire_6530_mixer[] = {
 	HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT),
 	HDA_CODEC_VOLUME("LFE Playback Volume", 0x0f, 0x0, HDA_OUTPUT),
 	HDA_BIND_MUTE("LFE Playback Switch", 0x0f, 2, HDA_INPUT),
+	HDA_CODEC_VOLUME("Line Playback Volume", 0x0b, 0x02, HDA_INPUT),
+	HDA_CODEC_MUTE("Line Playback Switch", 0x0b, 0x02, HDA_INPUT),
 	HDA_CODEC_VOLUME("CD Playback Volume", 0x0b, 0x04, HDA_INPUT),
 	HDA_CODEC_MUTE("CD Playback Switch", 0x0b, 0x04, HDA_INPUT),
 	HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT),

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] Line In for Acer Inspire 6530G model
  2009-06-26  8:27 [PATCH] Line In for Acer Inspire 6530G model Tony Vroon
@ 2009-06-29  7:19 ` Takashi Iwai
  2009-06-30  3:54   ` Emilio López
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2009-06-29  7:19 UTC (permalink / raw)
  To: Tony Vroon; +Cc: alsa-devel, Emilio López

At Fri, 26 Jun 2009 09:27:50 +0100 (BST),
Tony Vroon wrote:
> 
> The Line In connector is set up as PIN_IN by default, using 
> VREF_HIZ. It is connected to both ADCs, so add it to both 
> input selectors.
> Also add the ability to use the input mix (on a SoundBlaster 
> one would call this "What You Hear").
> 
> Signed-off-by: Tony Vroon <tony@linx.net>

I applied this as this appears safe.
Emilio, could you check whether this works?


thanks,

Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Line In for Acer Inspire 6530G model
  2009-06-29  7:19 ` Takashi Iwai
@ 2009-06-30  3:54   ` Emilio López
  2009-06-30  6:07     ` Juan Jesús García de Soria Lucena
  0 siblings, 1 reply; 8+ messages in thread
From: Emilio López @ 2009-06-30  3:54 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Tony Vroon, alsa-devel

2009/6/29 Takashi Iwai <tiwai@suse.de>:
> At Fri, 26 Jun 2009 09:27:50 +0100 (BST),
> Tony Vroon wrote:
>>
>> The Line In connector is set up as PIN_IN by default, using
>> VREF_HIZ. It is connected to both ADCs, so add it to both
>> input selectors.
>> Also add the ability to use the input mix (on a SoundBlaster
>> one would call this "What You Hear").
>>
>> Signed-off-by: Tony Vroon <tony@linx.net>
>
> I applied this as this appears safe.
> Emilio, could you check whether this works?

I don't have the necessary cable to connect my MP3/CD Player to line
in, sorry. Unless I can use a normal mic on line in (I guess not,
because mics don't have any power supply), I won't be able to test.

>
>
> thanks,
>
> Takashi
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Line In for Acer Inspire 6530G model
  2009-06-30  3:54   ` Emilio López
@ 2009-06-30  6:07     ` Juan Jesús García de Soria Lucena
  2009-06-30  6:35       ` Takashi Iwai
  0 siblings, 1 reply; 8+ messages in thread
From: Juan Jesús García de Soria Lucena @ 2009-06-30  6:07 UTC (permalink / raw)
  To: Emilio López; +Cc: Takashi Iwai, Tony Vroon, alsa-devel

Hi.

2009/6/30 Emilio López <buhitoescolar@gmail.com>:
> 2009/6/29 Takashi Iwai <tiwai@suse.de>:
>> I applied this as this appears safe.
>> Emilio, could you check whether this works?
>
> I don't have the necessary cable to connect my MP3/CD Player to line
> in, sorry. Unless I can use a normal mic on line in (I guess not,
> because mics don't have any power supply), I won't be able to test.

Some time ago I was the one to (wrongly, it seems) report the 6530G to
work with the 4930 model. My problem was not being able to use the
internal mic for audioconference, which that model fixed. I didn't put
any attention into the "tuba" thing (I suspected it to be a marketing
thing, with the bass speaker tied to one of the two stereo channels).

I've been reading the thread, and I think I'll be able to test the
line-in issue. But I'm a bit confused about where to get the latest
driver snapshot package. Could you please provide a link to it, so
that I can get it running on my Ubuntu 9.04 installation?


Best regards,

   Juan Jesus.


-- 
Dream small if success is enough for you; dream big if you need to
change the world.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Line In for Acer Inspire 6530G model
  2009-06-30  6:07     ` Juan Jesús García de Soria Lucena
@ 2009-06-30  6:35       ` Takashi Iwai
  2009-06-30 19:56         ` Juan Jesús García de Soria Lucena
  0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2009-06-30  6:35 UTC (permalink / raw)
  To: Juan Jesús García de Soria Lucena
  Cc: Tony Vroon, alsa-devel, Emilio López

At Tue, 30 Jun 2009 08:07:21 +0200,
Juan Jesús García de Soria Lucena wrote:
> 
> Hi.
> 
> 2009/6/30 Emilio López <buhitoescolar@gmail.com>:
> > 2009/6/29 Takashi Iwai <tiwai@suse.de>:
> >> I applied this as this appears safe.
> >> Emilio, could you check whether this works?
> >
> > I don't have the necessary cable to connect my MP3/CD Player to line
> > in, sorry. Unless I can use a normal mic on line in (I guess not,
> > because mics don't have any power supply), I won't be able to test.
> 
> Some time ago I was the one to (wrongly, it seems) report the 6530G to
> work with the 4930 model. My problem was not being able to use the
> internal mic for audioconference, which that model fixed. I didn't put
> any attention into the "tuba" thing (I suspected it to be a marketing
> thing, with the bass speaker tied to one of the two stereo channels).
> 
> I've been reading the thread, and I think I'll be able to test the
> line-in issue. But I'm a bit confused about where to get the latest
> driver snapshot package. Could you please provide a link to it, so
> that I can get it running on my Ubuntu 9.04 installation?

The alsa-driver snapshot tarball can be found at
  ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

There seems some script for Ubuntu to adapt that tree automatically,
but I don't remember exactly as I'm no Ubuntu user :)


HTH,

Takashi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] Line In for Acer Inspire 6530G model
  2009-06-30  6:35       ` Takashi Iwai
@ 2009-06-30 19:56         ` Juan Jesús García de Soria Lucena
       [not found]           ` <1246392149.11792.8.camel@localhost>
  0 siblings, 1 reply; 8+ messages in thread
From: Juan Jesús García de Soria Lucena @ 2009-06-30 19:56 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Tony Vroon, alsa-devel, Emilio López

Wow!

El 30 de junio de 2009 08:35, Takashi Iwai<tiwai@suse.de> escribió:
> The alsa-driver snapshot tarball can be found at
>  ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

I installed the snapshot, rebooted, plugged in both a CD player into
the line in and an external mic, launched

   (arecord | aplay) &

and then started playing with the alsamixer controls.

I can confirm that pluggin in headphones mute all the speakers. Also
the LFE level controls the bass speaker correctly.

I played with the "Capture" / "Input Source" pair of controls, and can
confirm that "Internal Mic", "External Mic" and "Line In" work ok. I'm
not sure about how to test the "CD" and "Input Mix" options.

I couldn't do anything about "Capture 1" / "Input Source 1". Has it
anything to do with the second capture device I get from arecord -l?


skandalfo@rimmer:~$ arecord -l
**** Lista de CAPTURE Dispositivos Hardware ****
tarjeta 0: SB [HDA ATI SB], dispositivo 0: ALC888 Analog [ALC888 Analog]
  Subdispositivos: 1/1
  Subdispositivo #0: subdevice #0
tarjeta 0: SB [HDA ATI SB], dispositivo 2: ALC888 Analog [ALC888 Analog]
  Subdispositivos: 1/1
  Subdispositivo #0: subdevice #0


I tried to perform the same tests with arecord -Dhw:0,2 but it
complained about no appropriate sample format, so I suppose I was
trying something stupid.


In any case, congratulations, and lots of thanks for your good work.
My laptop now sounds much better :-D


Best regards,

   Juan Jesus.


-- 
Dream small if success is enough for you; dream big if you need to
change the world.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* can't find snd_card_next!
       [not found]           ` <1246392149.11792.8.camel@localhost>
@ 2009-07-01 14:33             ` Guilherme
  2009-07-01 14:53               ` Clemens Ladisch
  0 siblings, 1 reply; 8+ messages in thread
From: Guilherme @ 2009-07-01 14:33 UTC (permalink / raw)
  To: alsa-devel

Hi all!

I studing the aplay program and there is a function that I can't find in 
any header.
Ive tried asound.h and asoundlib.h among other but without success!

This is the code:

    card = -1;
    if (snd_card_next(&card) < 0 || card < 0) {
        error(_("no soundcards found..."));
        return;
    }

Where is the snd_card_next() function?

Thanks all!

Tks!

-------------------

Guilherme Longo
Dept. Eng. da Computação
Unaerp

Linux User - #484927

*Before Asking
http://www.istf.com.br/?page=perguntas

!- I'd rather die on my feet than live on my knees -!

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: can't find snd_card_next!
  2009-07-01 14:33             ` can't find snd_card_next! Guilherme
@ 2009-07-01 14:53               ` Clemens Ladisch
  0 siblings, 0 replies; 8+ messages in thread
From: Clemens Ladisch @ 2009-07-01 14:53 UTC (permalink / raw)
  To: Guilherme; +Cc: alsa-devel

Guilherme wrote:
> I studing the aplay program and there is a function that I can't find in 
> any header.
> Ive tried asound.h and asoundlib.h among other but without success!
> [...]
> Where is the snd_card_next() function?

$ grep snd_card_next /usr/include/alsa/*
/usr/include/alsa/control.h:int snd_card_next(int *card);


HTH
Clemens

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-07-01 14:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-26  8:27 [PATCH] Line In for Acer Inspire 6530G model Tony Vroon
2009-06-29  7:19 ` Takashi Iwai
2009-06-30  3:54   ` Emilio López
2009-06-30  6:07     ` Juan Jesús García de Soria Lucena
2009-06-30  6:35       ` Takashi Iwai
2009-06-30 19:56         ` Juan Jesús García de Soria Lucena
     [not found]           ` <1246392149.11792.8.camel@localhost>
2009-07-01 14:33             ` can't find snd_card_next! Guilherme
2009-07-01 14:53               ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.