LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-12-2019, 11:04 AM   #1
SandaruLJ
LQ Newbie
 
Registered: Oct 2019
Location: Kurunegala, Sri Lanka
Distribution: Fedora
Posts: 7

Rep: Reputation: Disabled
How to get combo headphone/microphone port to act as line in?


My laptop has a 'HDA Intel PCH' soundcard with a 'Realtek ALC255' chip. There are no separate audio out, mic or line in ports; only a single headphone/microphone combo port.

In Windows 10, when I plug my guitar cable into the combo port, a popup appears and I can select which method to use ('Line in', 'Headphone', 'Headset', 'Mic' and 'Speaker out').

But in Linux, I can't seem to find a way to use the port as line in. When the guitar cable is plugged in, Gnome only shows two options: 'Headphone' and 'Headset'. No line in. What should I do to make the combo port act as line in?
 
Old 10-13-2019, 07:10 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I'm not sure if 'hda-jack-restask' may be needed here, but review the following to start with...

https://www.omgubuntu.co.uk/2013/12/...ne-jack-ubuntu
https://unix.stackexchange.com/quest...hones-for-outp

Last edited by ferrari; 10-13-2019 at 07:20 PM.
 
Old 10-14-2019, 11:35 AM   #3
SandaruLJ
LQ Newbie
 
Registered: Oct 2019
Location: Kurunegala, Sri Lanka
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
I'm not sure if 'hda-jack-restask' may be needed here, but review the following to start with...

https://www.omgubuntu.co.uk/2013/12/...ne-jack-ubuntu
https://unix.stackexchange.com/quest...hones-for-outp
Thanks for the links. I tried using hda-jack-retask but apparently it didn't work. Pavucontrol still displayed Headphone as output and Headphone Mic as input. No mention of Line-in anywhere. There should be right?
Nonetheless, I couldn't capture my guitar's signal in any programme. Is hda-jack-retask the only way to do this?
 
Old 10-14-2019, 02:52 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
As far as I know it is a jack restasking issue, and will ultimately also come down to the support offered by the Linux driver for your hardware. The 'alsa-info.sh' script can be used to gain indepth information about your audio hardware and configuration, so that is a good place to start...

https://www.alsa-project.org/wiki/Help_To_Debug
https://wiki.ubuntu.com/Audio/AlsaInfo

Most distros include it as part of alsa-utils or similar.

It may be that a bug report is required to help progress this.
 
Old 10-14-2019, 03:47 PM   #5
Samsonite2010
Member
 
Registered: Apr 2015
Distribution: Debian
Posts: 267
Blog Entries: 1

Rep: Reputation: 117Reputation: 117
I had a similar issue and ended up getting a USB sound card (external) for not much money - works a treat.
 
Old 10-15-2019, 01:40 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I'm not sure, but jackaudio might be helpful, esp. combined with a graphical connection manager like qjackctl.

It is also unclear - do you want to
a) plug the line in into that special combo port
b) separate out the mic and use it as line in, while still being able to use the headphones?

If a), you are using a plug that is not necessarily compatible with that jack, no?
 
Old 10-15-2019, 11:07 AM   #7
SandaruLJ
LQ Newbie
 
Registered: Oct 2019
Location: Kurunegala, Sri Lanka
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
As far as I know it is a jack restasking issue, and will ultimately also come down to the support offered by the Linux driver for your hardware. The 'alsa-info.sh' script can be used to gain indepth information about your audio hardware and configuration, so that is a good place to start...

https://www.alsa-project.org/wiki/Help_To_Debug
https://wiki.ubuntu.com/Audio/AlsaInfo

Most distros include it as part of alsa-utils or similar.

It may be that a bug report is required to help progress this.
Thanks for the valuable information. I'll try submitting a bug report as soon as I get more free time (It's finals week ).

Quote:
Originally Posted by Samsonite2010 View Post
I had a similar issue and ended up getting a USB sound card (external) for not much money - works a treat.
Actually I'm going to buy one tomorrow. Seems to be the best solution. I just hope it'll have low latency.
 
Old 10-15-2019, 11:26 AM   #8
SandaruLJ
LQ Newbie
 
Registered: Oct 2019
Location: Kurunegala, Sri Lanka
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
I'm not sure, but jackaudio might be helpful, esp. combined with a graphical connection manager like qjackctl.
I have both jack and qjackctl installed. But I don't know how to use them for this.
Quote:
It is also unclear - do you want to
a) plug the line in into that special combo port
b) separate out the mic and use it as line in, while still being able to use the headphones?
I want to do a)
Quote:
If a), you are using a plug that is not necessarily compatible with that jack, no?
I don't think so. It works perfectly in Windows. I just have to select 'Line-in' from the popup that the Realtek software display when I plug my guitar in. I think that port is meant to be used that way. Why would it even have a 'Line-in' option if it's not compatible?
 
Old 10-17-2019, 01:10 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by SandaruLJ View Post
I have both jack and qjackctl installed. But I don't know how to use them for this.
jackaudio is more than just an application and you'll need to set it up properly, and probably remove or disable pulseaudio.
 
Old 10-19-2019, 01:03 AM   #10
SandaruLJ
LQ Newbie
 
Registered: Oct 2019
Location: Kurunegala, Sri Lanka
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
jackaudio is more than just an application and you'll need to set it up properly, and probably remove or disable pulseaudio.
I got jack to work side-by-side with pulseaudio and now it's working fine with reaper and some other audio applications. But I don't think jack can do anything about the combo port. Now, buying an external sound card could solve my problem, but the original issue here is not solved. And like ferrari said, I think it's best to figure this out with alsa devs. I was wondering if I should mark the thread as SOLVED or not...
 
Old 10-19-2019, 02:14 AM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Yes, if hda-Jack-retask can’t do the job it’s time to file a bug report I think. The alsa-info.sh script will provide verbose output, including the pin mapping for the combo port exposed by the driver. If ‘line in’ is not present then that would indicate a possible issue that requires addressing with the driver (or firmware) itself IMHO.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] binary discord app mix up steam game channel headphone channel with microphone _roman_ Gentoo 0 05-11-2018 02:45 AM
Headphone and microphone 23.0 4m linux Edward4m 4MLinux 15 11-19-2017 02:36 PM
headphone microphone not detected linux mint mia_tech Linux - General 4 04-17-2015 07:01 PM
virtual microphone: FILE ---> MICROPHONE ---> APPLICATION jamal_mohammadi Linux - Hardware 1 02-13-2011 03:10 PM
Combo,combo box and combo entry box diff santhosh.linux Programming 4 02-27-2006 12:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration