Skip to contentSkip to conversation

Samsung P50 Heaphone Jack-Sense not working with latest ALSA

DISCUSSION Martin Egge 2 participants 8 messages Jun 23, 2009 – Jun 29, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

last year Takashi did help me to get the digital output and the internal/external mic up and running on my Samsung P50 notebook with an integrated Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller.

Some time ago I switched from Ubuntu 7.10 to 8.10 and a new problem with the soundcard occurred. The Headphone/Line-Out Jack-Sense is not working. When I plug in my Headphones the internal speakers of the notebook aren't switched off. I've ignored that problem for a long time but now I'm willing to change this.

I've already upgraded my system to ALSA 1.0.20 with a script provided in the Ubuntu Forums [2]. I've used the build-in support for the latest snapshots provided at [3] of the script. But the problem still exists.

Can anyone (perhaps Takashi again) help me?

You can find all ALSA related information about my system at [4].

Regards,
Martin

[1] http://tinyurl.com/mkw8mz
[2] http://ubuntuforums.org/showthread.php?p=6589810#post6589810
[3] http://tinyurl.com/5ux2nf
[4] http://pastebin.ca/1471032

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#1 lore raw

At Tue, 23 Jun 2009 14:25:39 +0200,

Quoted 14 lines · Martin Egge

Hi,

last year Takashi did help me to get the digital output and the internal/external mic up and running on my Samsung P50 notebook with an integrated Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller.

Some time ago I switched from Ubuntu 7.10 to 8.10 and a new problem with the soundcard occurred. The Headphone/Line-Out Jack-Sense is not working. When I plug in my Headphones the internal speakers of the notebook aren't switched off. I've ignored that problem for a long time but now I'm willing to change this.

Quoted 5 lines

I've already upgraded my system to ALSA 1.0.20 with a script provided in the Ubuntu Forums [2]. I've used the build-in support for the latest snapshots provided at [3] of the script. But the problem still exists.

Can anyone (perhaps Takashi again) help me?

Does the patch below work? It's against the latest alsa-driver, not
1.0.20 nor 2.6.30.
ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz

Takashi

---

Documentation/sound/alsa/HD-Audio-Models.txt +1 -0
index 0d8d235..939a3dd 100644
@@ -240,6 +240,7 @@ AD1986A
   laptop-automute 2-channel with EAPD and HP-automute (Lenovo N100)
   ultra		2-channel with EAPD (Samsung Ultra tablet PC)
   samsung	2-channel with EAPD (Samsung R65)
+  samsung-p50	2-channel with HP-automute (Samsung P50)
 
 AD1988/AD1988B/AD1989A/AD1989B
 ==============================
sound/pci/hda/patch_analog.c +70 -58

221 lines not on this page · raw message

#2 lore raw

Hi Takashi,

Am Mittwoch 24 Juni 2009 schrieb Takashi Iwai:

Quoted 5 lines

Does the patch below work? It's against the latest alsa-driver, not 1.0.20 nor 2.6.30.

ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-sna pshot.tar.gz

The patch could not be applied.

patching file sound/pci/hda/patch_analog.c Hunk #1 FAILED at 72.
Hunk #2 FAILED at 670.
Hunk #3 succeeded at 702 with fuzz 1.
Hunk #4 FAILED at 757.
Hunk #5 FAILED at 798.
Hunk #6 FAILED at 808.
Hunk #7 succeeded at 940 with fuzz 1.
Hunk #8 FAILED at 971.
Hunk #9 FAILED at 983.
Hunk #10 FAILED at 1006.
Hunk #11 FAILED at 1094.
Hunk #12 FAILED at 1108.
Hunk #13 FAILED at 1123.
Hunk #14 FAILED at 1156.
12 out of 14 hunks FAILED -- saving rejects to file sound/pci/hda/patch_analog.c.rej

Regards
Martin

P.S.: See [1] for patch_analog.c.rej

[1] http://pastebin.ca/1472677

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#3 lore raw

At Wed, 24 Jun 2009 17:14:38 +0200,

Quoted 11 lines · Martin Egge

Hi Takashi,

Am Mittwoch 24 Juni 2009 schrieb Takashi Iwai:

Quoted 5 lines

Does the patch below work? It's against the latest alsa-driver, not 1.0.20 nor 2.6.30.

ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-sna pshot.tar.gz

The patch could not be applied.

It's a patch to the kernel tree.
Apply it on alsa-kernel directory with -p2.

Takashi

#4 lore raw

Hi Takashi,

Am Mittwoch 24 Juni 2009 schrieb Takashi Iwai:

Quoted 6 lines

At Wed, 24 Jun 2009 17:14:38 +0200,

Quoted 4 lines · Martin Egge

Am Mittwoch 24 Juni 2009 schrieb Takashi Iwai:

Quoted 3 lines

Does the patch below work? It's against the latest alsa-driver, not 1.0.20 nor 2.6.30.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver -sna pshot.tar.gz

The patch could not be applied.

It's a patch to the kernel tree.
Apply it on alsa-kernel directory with -p2.

That's what I did some minutes ago:

$> wget --no-cache -nd ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver- snapshot.tar.gz
$> tar xzf alsa-driver-snapshot.tar.gz
$> cd alsa-driver/alsa-kernel/
$> patch -p2 < ../../patch.txt

That's what I get:

patching file pci/hda/patch_analog.c
Hunk #1 FAILED at 72.
Hunk #2 FAILED at 670.
Hunk #3 succeeded at 702 with fuzz 1.
Hunk #4 FAILED at 757.
Hunk #5 FAILED at 798.
Hunk #6 FAILED at 808.
Hunk #7 succeeded at 940 with fuzz 1.
Hunk #8 FAILED at 971.
Hunk #9 FAILED at 983.
Hunk #10 FAILED at 1006.
Hunk #11 FAILED at 1094.
Hunk #12 FAILED at 1108.
Hunk #13 FAILED at 1123.
Hunk #14 FAILED at 1156.
12 out of 14 hunks FAILED -- saving rejects to file pci/hda/patch_analog.c.rej

So, what went wrong?

Martin

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#5 lore raw

At Thu, 25 Jun 2009 08:35:08 +0200,

Quoted 46 lines · Martin Egge

Hi Takashi,

Am Mittwoch 24 Juni 2009 schrieb Takashi Iwai:

Quoted 6 lines

At Wed, 24 Jun 2009 17:14:38 +0200,

Quoted 4 lines · Martin Egge

Am Mittwoch 24 Juni 2009 schrieb Takashi Iwai:

Quoted 3 lines

Does the patch below work? It's against the latest alsa-driver, not 1.0.20 nor 2.6.30.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver -sna pshot.tar.gz

The patch could not be applied.

It's a patch to the kernel tree.
Apply it on alsa-kernel directory with -p2.

That's what I did some minutes ago:

$> wget --no-cache -nd ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver- snapshot.tar.gz
$> tar xzf alsa-driver-snapshot.tar.gz
$> cd alsa-driver/alsa-kernel/
$> patch -p2 < ../../patch.txt

That's what I get:

patching file pci/hda/patch_analog.c
Hunk #1 FAILED at 72.
Hunk #2 FAILED at 670.
Hunk #3 succeeded at 702 with fuzz 1.
Hunk #4 FAILED at 757.
Hunk #5 FAILED at 798.
Hunk #6 FAILED at 808.
Hunk #7 succeeded at 940 with fuzz 1.
Hunk #8 FAILED at 971.
Hunk #9 FAILED at 983.
Hunk #10 FAILED at 1006.
Hunk #11 FAILED at 1094.
Hunk #12 FAILED at 1108.
Hunk #13 FAILED at 1123.
Hunk #14 FAILED at 1156.
12 out of 14 hunks FAILED -- saving rejects to file pci/hda/patch_analog.c.rej

Quoted 1 line

So, what went wrong?

You must have saved the patch file wrongly. Maybe your MUA broke text lines badly.

I checked your procedure above and it works for me well. (patch gives an error regarding sound/alsa/HD-Audio-Model.txt, but it
doesn't matter.)

Below is an attachment of the same patch. Try this again.

Takashi

Documentation/sound/alsa/HD-Audio-Models.txt +1 -0
index 0d8d235..939a3dd 100644
@@ -240,6 +240,7 @@ AD1986A
   laptop-automute 2-channel with EAPD and HP-automute (Lenovo N100)
   ultra		2-channel with EAPD (Samsung Ultra tablet PC)
   samsung	2-channel with EAPD (Samsung R65)
+  samsung-p50	2-channel with HP-automute (Samsung P50)
 
 AD1988/AD1988B/AD1989A/AD1989B
 ==============================
sound/pci/hda/patch_analog.c +70 -58

221 lines not on this page · raw message

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#6 lore raw

Hi Takashi,

Am Donnerstag 25 Juni 2009 schrieb Takashi Iwai:

Quoted 8 lines

At Thu, 25 Jun 2009 08:35:08 +0200,

Martin Egge wrote:
[...]

Quoted 1 line

So, what went wrong?

You must have saved the patch file wrongly. Maybe your MUA broke text lines badly.

It seems that my webmail interface (Squirrelmail) has messed up spaces and tabulators.

Quoted 1 line

Below is an attachment of the same patch. Try this again.

Great Thanks. This time I could apply the patch. The patch has solved my problem.

Martin

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#7 lore raw

At Mon, 29 Jun 2009 08:43:05 +0200,

Quoted 13 lines · Martin Egge

Hi Takashi,

Am Donnerstag 25 Juni 2009 schrieb Takashi Iwai:

Quoted 8 lines

At Thu, 25 Jun 2009 08:35:08 +0200,

Martin Egge wrote:
[...]

Quoted 1 line

So, what went wrong?

You must have saved the patch file wrongly. Maybe your MUA broke text lines badly.

Quoted 7 lines

It seems that my webmail interface (Squirrelmail) has messed up spaces and tabulators.

Quoted 1 line

Below is an attachment of the same patch. Try this again.

Great Thanks. This time I could apply the patch. The patch has solved my problem.

Thanks for checking.
Now I merged back to the main sound git repository.

Takashi