Line & Mic In detected, but not working on MPG B650I EDGE WIFI (0db0:36e7)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



alsa-project/alsa-ucm-conf issue #281 was reopened from 13r0ck:

Seems to have been broken by 33b934c29d2911ef060d48b1a0ca9682645b68c8 , as it was completely functional in 1.2.7.2
  
  I did manage to find a patch that fixes the line in on 1.2.8:
  All it does is disable spdif for that usb id.
  ```
  Index: alsa-ucm-conf/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf
  ===================================================================
  --- alsa-ucm-conf.orig/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf
  +++ alsa-ucm-conf/ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf
  @@ -100,6 +100,17 @@ If.msi-meg-unify {
 	  }
   }
   
  +If.b650i {
  +	Condition {
  +		Type RegexMatch
  +		String "${CardComponents}"
  +		Regex "USB(0db0:36e7)"
  +	}
  +	True.Define {
  +		SpdifName ""
  +	}
  +}
  +
   If.asus-rog-strix {
 	  Condition {
 		  Type RegexMatch
  ```
  
  But I am struggling to find what is missing to make mic work. Jack detection is fine, and I can get recordings via `arecord`, but I am missing something with the ucm conf.
  
  ### Here are the config dumps for a few different situations
  
  #### Without the patch above
  
  `$ alsa-info` -> http://alsa-project.org/db/?f=ac8aa25f882540a20c95ee555491a498bd3a88a4
  
  <details>
  <summary> ` $ alsaucm dump -c hw:1 text ` </summary>
  <br>
  
  ```
  
  Verb.HiFi {
	  Comment "HiFi 2.0 channels"
	  Device.Speaker {
		  Comment Speakers
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Speaker - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackChannels 2
			  PlaybackMixerElem PCM,0
			  PlaybackPCM "_ucm0001.hw:Audio"
			  PlaybackPriority 200
			  TQ HiFi
		  }
	  }
	  Device.Headphones {
		  Comment "Front Headphones"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Headphone - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,1
			  PlaybackPCM "_ucm0001.hw:Audio,1"
			  PlaybackPriority 300
			  TQ HiFi
		  }
	  }
	  Device.SPDIF {
		  Comment "S/PDIF Output"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,2
			  PlaybackPCM "_ucm0001.hw:Audio,3"
			  PlaybackPriority 100
			  TQ HiFi
		  }
	  }
	  Device.Line1 {
		  Comment "Line Input"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Line,0
			  CapturePCM "_ucm0001.hw:Audio,1"
			  CapturePriority 100
			  JackControl "Line - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
	  Device.Mic1 {
		  Comment Microphone
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Mic,0
			  CapturePCM "_ucm0001.hw:Audio,2"
			  CapturePriority 300
			  JackControl "Mic - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
  }
  Verb."HiFi 5+1" {
	  Comment "HiFi 5.1 channels"
	  Device.Speaker {
		  Comment Speakers
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Speaker - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackChannels 6
			  PlaybackMixerElem PCM,0
			  PlaybackPCM "_ucm0001.hw:Audio"
			  PlaybackPriority 200
			  TQ HiFi
		  }
	  }
	  Device.Headphones {
		  Comment "Front Headphones"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Headphone - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,1
			  PlaybackPCM "_ucm0001.hw:Audio,1"
			  PlaybackPriority 300
			  TQ HiFi
		  }
	  }
	  Device.SPDIF {
		  Comment "S/PDIF Output"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,2
			  PlaybackPCM "_ucm0001.hw:Audio,3"
			  PlaybackPriority 100
			  TQ HiFi
		  }
	  }
	  Device.Line1 {
		  Comment "Line Input"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Line,0
			  CapturePCM "_ucm0001.hw:Audio,1"
			  CapturePriority 100
			  JackControl "Line - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
	  Device.Mic1 {
		  Comment Microphone
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Mic,0
			  CapturePCM "_ucm0001.hw:Audio,2"
			  CapturePriority 300
			  JackControl "Mic - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
  }
  Verb."HiFi 7+1" {
	  Comment "HiFi 7.1 channels"
	  Device.Speaker {
		  Comment Speakers
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Speaker - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackChannels 8
			  PlaybackMixerElem PCM,0
			  PlaybackPCM "_ucm0001.hw:Audio"
			  PlaybackPriority 200
			  TQ HiFi
		  }
	  }
	  Device.Headphones {
		  Comment "Front Headphones"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Headphone - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,1
			  PlaybackPCM "_ucm0001.hw:Audio,1"
			  PlaybackPriority 300
			  TQ HiFi
		  }
	  }
	  Device.SPDIF {
		  Comment "S/PDIF Output"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,2
			  PlaybackPCM "_ucm0001.hw:Audio,3"
			  PlaybackPriority 100
			  TQ HiFi
		  }
	  }
	  Device.Line1 {
		  Comment "Line Input"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Line,0
			  CapturePCM "_ucm0001.hw:Audio,1"
			  CapturePriority 100
			  JackControl "Line - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
	  Device.Mic1 {
		  Comment Microphone
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Mic,0
			  CapturePCM "_ucm0001.hw:Audio,2"
			  CapturePriority 300
			  JackControl "Mic - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
  }
  
  ```
  
  <br>
  </details>
  
  #### With the patch above 
  
  `$ alsa-info` -> http://alsa-project.org/db/?f=7b95b33ddf71324505c7dd696bcc7f24ca64ca52
  
  <details>
  <summary> ` $ alsaucm dump -c hw:1 text ` </summary>
  <br>
  
  ```
  
  Verb.HiFi {
	  Comment "HiFi 2.0 channels"
	  Device.Speaker {
		  Comment Speakers
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Speaker - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackChannels 2
			  PlaybackMixerElem PCM,0
			  PlaybackPCM "_ucm0001.hw:Audio"
			  PlaybackPriority 200
			  TQ HiFi
		  }
	  }
	  Device.Headphones {
		  Comment "Front Headphones"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Headphone - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,1
			  PlaybackPCM "_ucm0001.hw:Audio,1"
			  PlaybackPriority 300
			  TQ HiFi
		  }
	  }
	  Device.Line1 {
		  Comment "Line Input"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Line,0
			  CapturePCM "_ucm0001.hw:Audio,1"
			  CapturePriority 100
			  JackControl "Line - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
	  Device.Mic1 {
		  Comment Microphone
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Mic,0
			  CapturePCM "_ucm0001.hw:Audio,2"
			  CapturePriority 300
			  JackControl "Mic - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
  }
  Verb."HiFi 5+1" {
	  Comment "HiFi 5.1 channels"
	  Device.Speaker {
		  Comment Speakers
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Speaker - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackChannels 6
			  PlaybackMixerElem PCM,0
			  PlaybackPCM "_ucm0001.hw:Audio"
			  PlaybackPriority 200
			  TQ HiFi
		  }
	  }
	  Device.Headphones {
		  Comment "Front Headphones"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Headphone - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,1
			  PlaybackPCM "_ucm0001.hw:Audio,1"
			  PlaybackPriority 300
			  TQ HiFi
		  }
	  }
	  Device.Line1 {
		  Comment "Line Input"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Line,0
			  CapturePCM "_ucm0001.hw:Audio,1"
			  CapturePriority 100
			  JackControl "Line - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
	  Device.Mic1 {
		  Comment Microphone
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Mic,0
			  CapturePCM "_ucm0001.hw:Audio,2"
			  CapturePriority 300
			  JackControl "Mic - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
  }
  Verb."HiFi 7+1" {
	  Comment "HiFi 7.1 channels"
	  Device.Speaker {
		  Comment Speakers
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Speaker - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackChannels 8
			  PlaybackMixerElem PCM,0
			  PlaybackPCM "_ucm0001.hw:Audio"
			  PlaybackPriority 200
			  TQ HiFi
		  }
	  }
	  Device.Headphones {
		  Comment "Front Headphones"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  JackControl "Headphone - Output Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  PlaybackMixerElem PCM,1
			  PlaybackPCM "_ucm0001.hw:Audio,1"
			  PlaybackPriority 300
			  TQ HiFi
		  }
	  }
	  Device.Line1 {
		  Comment "Line Input"
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Line,0
			  CapturePCM "_ucm0001.hw:Audio,1"
			  CapturePriority 100
			  JackControl "Line - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
	  Device.Mic1 {
		  Comment Microphone
		  Values {
			  CaptureCTL "_ucm0001.hw:Audio"
			  CaptureMixerElem Mic,0
			  CapturePCM "_ucm0001.hw:Audio,2"
			  CapturePriority 300
			  JackControl "Mic - Input Jack"
			  PlaybackCTL "_ucm0001.hw:Audio"
			  TQ HiFi
		  }
	  }
  }
  
  ```
  
  <br>
  </details>


  #### On 1.2.7.2 ( with `USB-Audio.conf` quirk to add 0bd0:36e7 to Realtek ALC4080. See https://github.com/alsa-project/alsa-ucm-conf/commit/1923bd19c0bef947c085e2941dd8ed2d1310731e but for 1.2.7.2 )

  `$ alsa-info` -> http://alsa-project.org/db/?f=f148616a3e9b8c0dffffbe57a6bc9ede78c9d309

  <details>
  <summary> ` $ alsaucm dump -c hw:1 text ` </summary>
  <br>

  ```
  
  Verb.HiFi {
	Comment "Play HiFi quality Music"
	Device.Speaker {
		Comment Speakers
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			JackControl "Speaker - Output Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
			PlaybackChannels 2
			PlaybackMixerElem Speaker
			PlaybackPCM "_ucm0001.hw:Audio"
			PlaybackPriority 200
		}
	}
	Device.Line {
		Comment "Line In"
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			CaptureMixerElem Line
			CapturePCM "_ucm0001.hw:Audio,1"
			CapturePriority 100
			JackControl "Line - Input Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
		}
	}
	Device.Mic1 {
		Comment Microphone
		Values {
			CaptureCTL "_ucm0001.hw:Audio"
			CaptureMixerElem Mic
			CapturePCM "_ucm0001.hw:Audio,2"
			CapturePriority 200
			JackControl "Mic - Input Jack"
			PlaybackCTL "_ucm0001.hw:Audio"
		}
	}
}


  ```

  <br>

  </details>

Issue URL     : https://github.com/alsa-project/alsa-ucm-conf/issues/281
Repository URL: https://github.com/alsa-project/alsa-ucm-conf



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux