Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-16 Thread Oliver Pinter
On 10/16/18, Oliver Pinter  wrote:
> On 10/6/18, David Wolfskill  wrote:
>> On Wed, Oct 03, 2018 at 03:28:45PM +0200, Jakob Alvermark wrote:
>>> ...
>>> This is probably not a proper fix, but it helps to understand the
>>> problem.
>>>
>>> Could you post the output of 'sysctl dev.hdaa' with and without the
>>> patch so we can see what's different?
>>> .
>>
>> I have run:
>>
>>  uname -a && sysctl dev.pcm dev.hdaa
>>
>> for each of stable/11 and head, both unpatched and patched.  (The
>> "unpatched" versions were a bit older -- almost a week, for stable/11;
>> from back in August, for head -- but that does not appear to be
>> significant in the present case.)
>>
>> The files are accessible from
>> .
>>
>> The sysctl output is the same for stable/11 & head:
>>
>> g1-215(11.2-S)[9] foreach f ( sound_info_* )
>> foreach? echo -n "${f}: " && tail +2 $f | md5
>> foreach? end
>> sound_info_11_patched: 90c26fbae2031174656207f66e1a39ec
>> sound_info_11_unpatched: cb9239fb33901086f56527c22576097f
>> sound_info_12_patched: 90c26fbae2031174656207f66e1a39ec
>> sound_info_12_unpatched: cb9239fb33901086f56527c22576097f
>> g1-215(11.2-S)[12]
>>
>> A unidiff for the "head" versions:
>>
>> g1-215(11.2-S)[12] diff -u sound_info_12_{un,}patched
>> --- sound_info_12_unpatched 2018-10-06 04:04:36.041741000 -0700
>> +++ sound_info_12_patched   2018-10-06 04:00:26.68135 -0700
>> @@ -1,4 +1,4 @@
>> -FreeBSD g1-215.catwhisker.org 12.0-ALPHA2 FreeBSD 12.0-ALPHA2 #276
>> r338043M/338043:1200078: Sun Aug 19 04:32:07 PDT 2018
>> r...@g1-215.catwhisker.org:/common/S3/obj/usr/src/amd64.amd64/sys/CANARY
>> amd64
>> +FreeBSD g1-215.catwhisker.org 12.0-ALPHA8 FreeBSD 12.0-ALPHA8 #131
>> r339212M/339212: Sat Oct  6 03:52:20 PDT 2018
>> r...@g1-215.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY
>> amd64
>>  dev.pcm.3.bitperfect: 0
>>  dev.pcm.3.buffersize: 65536
>>  dev.pcm.3.rec.vchanformat: s16le:2.0
>> @@ -111,7 +111,7 @@
>>   Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
>>  Pin cap: 0x0014 PDC OUT
>>   Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None
>> ctype=1/8
>> loc=Rear color=Black misc=1
>> -Pin control: 0x
>> +Pin control: 0x0040 OUT
>>  Connections: 1
>>+ <- nid=6 [audio output] [DISABLED]
>>
>> @@ -134,7 +134,7 @@
>>   Widget cap: 0x0040058f PWR UNSOL STEREO
>>  Pin cap: 0x3734 PDC OUT IN VREF[ 50 80 100 GROUND HIZ ]
>>   Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None
>> ctype=1/8
>> loc=Rear color=Black misc=1
>> -Pin control: 0x
>> +Pin control: 0x0020 IN
>>   Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
>>Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>>  Connections: 2
>> @@ -147,7 +147,7 @@
>>   Widget cap: 0x0040048b PWR UNSOL STEREO
>>  Pin cap: 0x3724 PDC IN VREF[ 50 80 100 GROUND HIZ ]
>>   Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None
>> ctype=1/8
>> loc=Rear color=Black misc=1
>> -Pin control: 0x
>> +Pin control: 0x0020 IN
>>Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>>
>>  dev.hdaa.1.nid25_original: 0x01a1903e as=3 seq=14 device=Mic conn=Jack
>> ctype=1/8 loc=Rear color=Pink misc=0
>> g1-215(11.2-S)[13]
>>
>> Peace,
>> david
>
> Is there any chance to get these workarounds / fixes for dell machines
> in the main tree?

With Jakob's workaround - to comment out the cleaning of hda pin
states - my laptop's sound started to work.
It's a Dell E5440. So thanks Jakob! :)

>
>
>> --
>> David H. Wolfskill   da...@catwhisker.org
>> Women (and decent men): vote against supporters of Trump's misogyny!
>>
>> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>>
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-16 Thread Oliver Pinter
On 10/6/18, David Wolfskill  wrote:
> On Wed, Oct 03, 2018 at 03:28:45PM +0200, Jakob Alvermark wrote:
>> ...
>> This is probably not a proper fix, but it helps to understand the
>> problem.
>>
>> Could you post the output of 'sysctl dev.hdaa' with and without the
>> patch so we can see what's different?
>> .
>
> I have run:
>
>   uname -a && sysctl dev.pcm dev.hdaa
>
> for each of stable/11 and head, both unpatched and patched.  (The
> "unpatched" versions were a bit older -- almost a week, for stable/11;
> from back in August, for head -- but that does not appear to be
> significant in the present case.)
>
> The files are accessible from
> .
>
> The sysctl output is the same for stable/11 & head:
>
> g1-215(11.2-S)[9] foreach f ( sound_info_* )
> foreach? echo -n "${f}: " && tail +2 $f | md5
> foreach? end
> sound_info_11_patched: 90c26fbae2031174656207f66e1a39ec
> sound_info_11_unpatched: cb9239fb33901086f56527c22576097f
> sound_info_12_patched: 90c26fbae2031174656207f66e1a39ec
> sound_info_12_unpatched: cb9239fb33901086f56527c22576097f
> g1-215(11.2-S)[12]
>
> A unidiff for the "head" versions:
>
> g1-215(11.2-S)[12] diff -u sound_info_12_{un,}patched
> --- sound_info_12_unpatched 2018-10-06 04:04:36.041741000 -0700
> +++ sound_info_12_patched   2018-10-06 04:00:26.68135 -0700
> @@ -1,4 +1,4 @@
> -FreeBSD g1-215.catwhisker.org 12.0-ALPHA2 FreeBSD 12.0-ALPHA2 #276
> r338043M/338043:1200078: Sun Aug 19 04:32:07 PDT 2018
> r...@g1-215.catwhisker.org:/common/S3/obj/usr/src/amd64.amd64/sys/CANARY
> amd64
> +FreeBSD g1-215.catwhisker.org 12.0-ALPHA8 FreeBSD 12.0-ALPHA8 #131
> r339212M/339212: Sat Oct  6 03:52:20 PDT 2018
> r...@g1-215.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY
> amd64
>  dev.pcm.3.bitperfect: 0
>  dev.pcm.3.buffersize: 65536
>  dev.pcm.3.rec.vchanformat: s16le:2.0
> @@ -111,7 +111,7 @@
>   Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
>  Pin cap: 0x0014 PDC OUT
>   Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8
> loc=Rear color=Black misc=1
> -Pin control: 0x
> +Pin control: 0x0040 OUT
>  Connections: 1
>+ <- nid=6 [audio output] [DISABLED]
>
> @@ -134,7 +134,7 @@
>   Widget cap: 0x0040058f PWR UNSOL STEREO
>  Pin cap: 0x3734 PDC OUT IN VREF[ 50 80 100 GROUND HIZ ]
>   Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8
> loc=Rear color=Black misc=1
> -Pin control: 0x
> +Pin control: 0x0020 IN
>   Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
>Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>  Connections: 2
> @@ -147,7 +147,7 @@
>   Widget cap: 0x0040048b PWR UNSOL STEREO
>  Pin cap: 0x3724 PDC IN VREF[ 50 80 100 GROUND HIZ ]
>   Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8
> loc=Rear color=Black misc=1
> -Pin control: 0x
> +Pin control: 0x0020 IN
>Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>
>  dev.hdaa.1.nid25_original: 0x01a1903e as=3 seq=14 device=Mic conn=Jack
> ctype=1/8 loc=Rear color=Pink misc=0
> g1-215(11.2-S)[13]
>
> Peace,
> david

Is there any chance to get these workarounds / fixes for dell machines
in the main tree?


> --
> David H. Wolfskillda...@catwhisker.org
> Women (and decent men): vote against supporters of Trump's misogyny!
>
> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-06 Thread David Wolfskill
On Wed, Oct 03, 2018 at 03:28:45PM +0200, Jakob Alvermark wrote:
> ...
> This is probably not a proper fix, but it helps to understand the problem.
> 
> Could you post the output of 'sysctl dev.hdaa' with and without the 
> patch so we can see what's different?
> .

I have run:

uname -a && sysctl dev.pcm dev.hdaa

for each of stable/11 and head, both unpatched and patched.  (The
"unpatched" versions were a bit older -- almost a week, for stable/11;
from back in August, for head -- but that does not appear to be
significant in the present case.)

The files are accessible from
.

The sysctl output is the same for stable/11 & head:

g1-215(11.2-S)[9] foreach f ( sound_info_* )
foreach? echo -n "${f}: " && tail +2 $f | md5
foreach? end
sound_info_11_patched: 90c26fbae2031174656207f66e1a39ec
sound_info_11_unpatched: cb9239fb33901086f56527c22576097f
sound_info_12_patched: 90c26fbae2031174656207f66e1a39ec
sound_info_12_unpatched: cb9239fb33901086f56527c22576097f
g1-215(11.2-S)[12]

A unidiff for the "head" versions:

g1-215(11.2-S)[12] diff -u sound_info_12_{un,}patched
--- sound_info_12_unpatched 2018-10-06 04:04:36.041741000 -0700
+++ sound_info_12_patched   2018-10-06 04:00:26.68135 -0700
@@ -1,4 +1,4 @@
-FreeBSD g1-215.catwhisker.org 12.0-ALPHA2 FreeBSD 12.0-ALPHA2 #276  
r338043M/338043:1200078: Sun Aug 19 04:32:07 PDT 2018 
r...@g1-215.catwhisker.org:/common/S3/obj/usr/src/amd64.amd64/sys/CANARY  amd64
+FreeBSD g1-215.catwhisker.org 12.0-ALPHA8 FreeBSD 12.0-ALPHA8 #131 
r339212M/339212: Sat Oct  6 03:52:20 PDT 2018 
r...@g1-215.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY  amd64
 dev.pcm.3.bitperfect: 0
 dev.pcm.3.buffersize: 65536
 dev.pcm.3.rec.vchanformat: s16le:2.0
@@ -111,7 +111,7 @@
  Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
 Pin cap: 0x0014 PDC OUT
  Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 
loc=Rear color=Black misc=1
-Pin control: 0x
+Pin control: 0x0040 OUT
 Connections: 1
   + <- nid=6 [audio output] [DISABLED]
 
@@ -134,7 +134,7 @@
  Widget cap: 0x0040058f PWR UNSOL STEREO
 Pin cap: 0x3734 PDC OUT IN VREF[ 50 80 100 GROUND HIZ ]
  Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 
loc=Rear color=Black misc=1
-Pin control: 0x
+Pin control: 0x0020 IN
  Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
   Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
 Connections: 2
@@ -147,7 +147,7 @@
  Widget cap: 0x0040048b PWR UNSOL STEREO
 Pin cap: 0x3724 PDC IN VREF[ 50 80 100 GROUND HIZ ]
  Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 
loc=Rear color=Black misc=1
-Pin control: 0x
+Pin control: 0x0020 IN
   Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
 
 dev.hdaa.1.nid25_original: 0x01a1903e as=3 seq=14 device=Mic conn=Jack 
ctype=1/8 loc=Rear color=Pink misc=0
g1-215(11.2-S)[13] 

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Women (and decent men): vote against supporters of Trump's misogyny!

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


signature.asc
Description: PGP signature


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-04 Thread Mario Lobo
Em qui, 4 de out de 2018 às 10:27, Jakob Alvermark 
escreveu:

>
> On 10/4/18 2:24 PM, Mario Lobo wrote:
>
> Sorry for the delay, Jakob.  Here it is:
>
> [~]>sysctl dev.pcm
> Em qua, 3 de out de 2018 às 18:32, Jakob Alvermark 
> escreveu:
>
>> On 10/3/18 7:39 PM, Mario Lobo wrote:
>> > Em qua, 3 de out de 2018 às 14:03, Jakob Alvermark > >
>> > escreveu:
>> >
>> >> On 10/3/18 6:19 PM, Mario Lobo wrote:
>> >>
>> >> Em qua, 3 de out de 2018 às 10:10, David Wolfskill <
>> da...@catwhisker.org>
>> >> escreveu:
>> >>
>> >>> On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
>>  
>>  Do the headphones work with this patch?
>> 
>>  Index: sys/dev/sound/pci/hda/hdaa.c
>>  ===
>>  --- sys/dev/sound/pci/hda/hdaa.c(revision 339076)
>>  +++ sys/dev/sound/pci/hda/hdaa.c(working copy)
>>  @@ -5034,11 +5034,13 @@
>> pincap = w->wclass.pin.cap;
>> 
>> /* Disable everything. */
>>  +/*
>> w->wclass.pin.ctrl &= ~(
>> HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
>> HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
>> HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
>> HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
>>  +*/
>> 
>> if (w->enable == 0) {
>> /* Pin is unused so left it disabled. */
>>  
>> >>> Thank you!  This addressed the long-standing (Reported:  2015-05-29
>> >>> 21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
>> >>> documented in
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
>> >>> -- now updated to reflect the fix.
>> >>>
>> >>> Peace,
>> >>> david
>> >>> --
>> >>> David H. Wolfskill  da...@catwhisker.org
>> >>> Trump is gaslighting us:
>> >>> https://www.bbc.com/news/world-us-canada-44959300
>> >>>
>> >>> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>> >>>
>> >> Thank you #2 !! The patch fixed my weird headphone sound too on
>> >> 11.2-STABLE!
>> >>
>> >> I still can't make the plugging-in switch work but it's ok. I created
>> >> scripts for that with
>> >>
>> >>
>> >> Can you send the output from 'sysctl dev.hdaa'?
>> >>
>> >>
>> >> Jakob
>> >>
>> > By the way, my note is ACER Aspire 5 A515-51G
>> >
>> > Here it is:
>> >
>> > [~]>sysctl dev.hdaa
>> > dev.hdaa.1.reconfig: 0
>>
>>
>> Could you send me the output of 'sysctl dev.pcm' as well?
>>
>> Thanks,
>>
>> Jakob
>>
>>
> Ok, try this:
>
> sysctl dev.hdaa.0.nid33_config="as=2 seq=15"
> sysctl dev.hdaa.0.reconfig=1
>
> It should make it auto-switch when you plug in headphones.
>
> If it works put this in /boot/loader.conf to make it default on boot:
>
> hint.hdaa.0.nid33.config="as=2 seq=15"
>
> Jakob
>

YES!! Thanks a million, Jakob!
Based on your previous answers, I tried to figure it out for myself and
tried this:

dev.hdaa.0.nid18_config="as=4 seq=15"
dev.hdaa.0.nid33_config="as=1 seq=15"

which obviously didn't work.

When you can (and if you wish to), could you elaborate on what
as=  and seq= do?

Again, thank you for your time to solve this for all of us!!

Count on a free beer here in Brasil from me!!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!]
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-04 Thread Jakob Alvermark


On 10/4/18 2:24 PM, Mario Lobo wrote:

Sorry for the delay, Jakob.  Here it is:

[~]>sysctl dev.pcm
Em qua, 3 de out de 2018 às 18:32, Jakob Alvermark 
mailto:ja...@alvermark.net>> escreveu:


On 10/3/18 7:39 PM, Mario Lobo wrote:
> Em qua, 3 de out de 2018 às 14:03, Jakob Alvermark
mailto:ja...@alvermark.net>>
> escreveu:
>
>> On 10/3/18 6:19 PM, Mario Lobo wrote:
>>
>> Em qua, 3 de out de 2018 às 10:10, David Wolfskill
mailto:da...@catwhisker.org>>
>> escreveu:
>>
>>> On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
 
 Do the headphones work with this patch?

 Index: sys/dev/sound/pci/hda/hdaa.c

===
 --- sys/dev/sound/pci/hda/hdaa.c (revision 339076)
 +++ sys/dev/sound/pci/hda/hdaa.c (working copy)
 @@ -5034,11 +5034,13 @@
            pincap = w->wclass.pin.cap;

            /* Disable everything. */
 +        /*
            w->wclass.pin.ctrl &= ~(
 HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
 HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
 HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
 HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
 +        */

            if (w->enable == 0) {
                /* Pin is unused so left it disabled. */
 
>>> Thank you!  This addressed the long-standing (Reported: 
2015-05-29
>>> 21:15 UTC) issue I have had with my laptop (Dell Precision
M4800), as
>>> documented in
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
>>> -- now updated to reflect the fix.
>>>
>>> Peace,
>>> david
>>> --
>>> David H. Wolfskill da...@catwhisker.org

>>> Trump is gaslighting us:
>>> https://www.bbc.com/news/world-us-canada-44959300
>>>
>>> See http://www.catwhisker.org/~david/publickey.gpg for my
public key.
>>>
>> Thank you #2 !! The patch fixed my weird headphone sound too on
>> 11.2-STABLE!
>>
>> I still can't make the plugging-in switch work but it's ok. I
created
>> scripts for that with
>>
>>
>> Can you send the output from 'sysctl dev.hdaa'?
>>
>>
>> Jakob
>>
> By the way, my note is ACER Aspire 5 A515-51G
>
> Here it is:
>
> [~]>sysctl dev.hdaa
> dev.hdaa.1.reconfig: 0


Could you send me the output of 'sysctl dev.pcm' as well?

Thanks,

Jakob



Ok, try this:

sysctl dev.hdaa.0.nid33_config="as=2 seq=15"
sysctl dev.hdaa.0.reconfig=1

It should make it auto-switch when you plug in headphones.

If it works put this in /boot/loader.conf to make it default on boot:

hint.hdaa.0.nid33.config="as=2 seq=15"

Jakob

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-04 Thread Mario Lobo
Sorry for the delay, Jakob.  Here it is:

[~]>sysctl dev.pcm
dev.pcm.2.bitperfect: 0
dev.pcm.2.buffersize: 65536
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.2.play.vchanrate: 48000
dev.pcm.2.play.vchanmode: passthrough
dev.pcm.2.play.vchans: 1
dev.pcm.2.play.32bit: 24
dev.pcm.2.%parent: hdaa1
dev.pcm.2.%pnpinfo:
dev.pcm.2.%location: nid=3
dev.pcm.2.%driver: pcm
dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 65536
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.play.vchanrate: 48000
dev.pcm.1.play.vchanmode: fixed
dev.pcm.1.play.vchans: 1
dev.pcm.1.play.32bit: 24
dev.pcm.1.%parent: hdaa0
dev.pcm.1.%pnpinfo:
dev.pcm.1.%location: nid=33
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Realtek ALC255 (Front Analog Headphones)
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 65536
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.autosrc: 2
dev.pcm.0.rec.32bit: 24
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate:
48000

dev.pcm.0.play.vchanmode:
fixed

dev.pcm.0.play.vchans:
1

dev.pcm.0.play.32bit: 24
dev.pcm.0.%parent: hdaa0
dev.pcm.0.%pnpinfo:
dev.pcm.0.%location: nid=20,18
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: Realtek ALC255 (Internal Analog)
dev.pcm.%parent:

Em qua, 3 de out de 2018 às 18:32, Jakob Alvermark 
escreveu:

> On 10/3/18 7:39 PM, Mario Lobo wrote:
> > Em qua, 3 de out de 2018 às 14:03, Jakob Alvermark 
> > escreveu:
> >
> >> On 10/3/18 6:19 PM, Mario Lobo wrote:
> >>
> >> Em qua, 3 de out de 2018 às 10:10, David Wolfskill <
> da...@catwhisker.org>
> >> escreveu:
> >>
> >>> On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
>  
>  Do the headphones work with this patch?
> 
>  Index: sys/dev/sound/pci/hda/hdaa.c
>  ===
>  --- sys/dev/sound/pci/hda/hdaa.c(revision 339076)
>  +++ sys/dev/sound/pci/hda/hdaa.c(working copy)
>  @@ -5034,11 +5034,13 @@
> pincap = w->wclass.pin.cap;
> 
> /* Disable everything. */
>  +/*
> w->wclass.pin.ctrl &= ~(
> HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
> HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
> HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
> HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
>  +*/
> 
> if (w->enable == 0) {
> /* Pin is unused so left it disabled. */
>  
> >>> Thank you!  This addressed the long-standing (Reported:  2015-05-29
> >>> 21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
> >>> documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
> >>> -- now updated to reflect the fix.
> >>>
> >>> Peace,
> >>> david
> >>> --
> >>> David H. Wolfskill  da...@catwhisker.org
> >>> Trump is gaslighting us:
> >>> https://www.bbc.com/news/world-us-canada-44959300
> >>>
> >>> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
> >>>
> >> Thank you #2 !! The patch fixed my weird headphone sound too on
> >> 11.2-STABLE!
> >>
> >> I still can't make the plugging-in switch work but it's ok. I created
> >> scripts for that with
> >>
> >>
> >> Can you send the output from 'sysctl dev.hdaa'?
> >>
> >>
> >> Jakob
> >>
> > By the way, my note is ACER Aspire 5 A515-51G
> >
> > Here it is:
> >
> > [~]>sysctl dev.hdaa
> > dev.hdaa.1.reconfig: 0
>
>
> Could you send me the output of 'sysctl dev.pcm' as well?
>
> Thanks,
>
> Jakob
>
>

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!]
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-03 Thread Jakob Alvermark

On 10/3/18 7:39 PM, Mario Lobo wrote:

Em qua, 3 de out de 2018 às 14:03, Jakob Alvermark 
escreveu:


On 10/3/18 6:19 PM, Mario Lobo wrote:

Em qua, 3 de out de 2018 às 10:10, David Wolfskill 
escreveu:


On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:


Do the headphones work with this patch?

Index: sys/dev/sound/pci/hda/hdaa.c
===
--- sys/dev/sound/pci/hda/hdaa.c(revision 339076)
+++ sys/dev/sound/pci/hda/hdaa.c(working copy)
@@ -5034,11 +5034,13 @@
   pincap = w->wclass.pin.cap;

   /* Disable everything. */
+/*
   w->wclass.pin.ctrl &= ~(
   HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
   HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
   HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
   HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
+*/

   if (w->enable == 0) {
   /* Pin is unused so left it disabled. */


Thank you!  This addressed the long-standing (Reported:  2015-05-29
21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
-- now updated to reflect the fix.

Peace,
david
--
David H. Wolfskill  da...@catwhisker.org
Trump is gaslighting us:
https://www.bbc.com/news/world-us-canada-44959300

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


Thank you #2 !! The patch fixed my weird headphone sound too on
11.2-STABLE!

I still can't make the plugging-in switch work but it's ok. I created
scripts for that with


Can you send the output from 'sysctl dev.hdaa'?


Jakob


By the way, my note is ACER Aspire 5 A515-51G

Here it is:

[~]>sysctl dev.hdaa
dev.hdaa.1.reconfig: 0



Could you send me the output of 'sysctl dev.pcm' as well?

Thanks,

Jakob

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-03 Thread Mario Lobo
Em qua, 3 de out de 2018 às 14:03, Jakob Alvermark 
escreveu:

> On 10/3/18 6:19 PM, Mario Lobo wrote:
>
> Em qua, 3 de out de 2018 às 10:10, David Wolfskill 
> escreveu:
>
>> On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
>> > 
>> > Do the headphones work with this patch?
>> >
>> > Index: sys/dev/sound/pci/hda/hdaa.c
>> > ===
>> > --- sys/dev/sound/pci/hda/hdaa.c(revision 339076)
>> > +++ sys/dev/sound/pci/hda/hdaa.c(working copy)
>> > @@ -5034,11 +5034,13 @@
>> >   pincap = w->wclass.pin.cap;
>> >
>> >   /* Disable everything. */
>> > +/*
>> >   w->wclass.pin.ctrl &= ~(
>> >   HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
>> >   HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
>> >   HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
>> >   HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
>> > +*/
>> >
>> >   if (w->enable == 0) {
>> >   /* Pin is unused so left it disabled. */
>> > 
>>
>> Thank you!  This addressed the long-standing (Reported:  2015-05-29
>> 21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
>> documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
>> -- now updated to reflect the fix.
>>
>> Peace,
>> david
>> --
>> David H. Wolfskill  da...@catwhisker.org
>> Trump is gaslighting us:
>> https://www.bbc.com/news/world-us-canada-44959300
>>
>> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>>
>
> Thank you #2 !! The patch fixed my weird headphone sound too on
> 11.2-STABLE!
>
> I still can't make the plugging-in switch work but it's ok. I created
> scripts for that with
>
>
> Can you send the output from 'sysctl dev.hdaa'?
>
>
> Jakob
>
By the way, my note is ACER Aspire 5 A515-51G

Here it is:

[~]>sysctl dev.hdaa
dev.hdaa.1.reconfig: 0
dev.hdaa.1.gpo_config:
dev.hdaa.1.gpo_state:
dev.hdaa.1.gpio_config:
dev.hdaa.1.gpio_state:
dev.hdaa.1.gpi_state:
dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.1.nid3_original: 0x18560010 as=1 seq=0 device=Digital-out
conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid3_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid3: pin: Digital-out (Jack)
 Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
Association: 0 (0x0001)
Pin cap: 0x0994 PDC OUT HDMI DP HBR
 Pin config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack
ctype=Digital loc=0x18 color=Unknown misc=0
Pin control: 0x0040 OUT
 Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 1
  + <- nid=2 [audio output]

dev.hdaa.1.nid2: audio output
 Widget cap: 0x6611 PWR DIGITAL 8CH
Association: 0 (0x0001)
OSS: pcm (pcm)
 Stream cap: 0x0005 AC3 PCM
PCM cap: 0x001a07f0 16 24 32 bits, 32 44 48 88 96 176 192 KHz

dev.hdaa.1.%parent: hdacc1
dev.hdaa.1.%pnpinfo: type=0x01 subsystem=0x80860101
dev.hdaa.1.%location: nid=1
dev.hdaa.1.%driver: hdaa
dev.hdaa.1.%desc: Intel Kabylake Audio Function Group
dev.hdaa.0.reconfig: 0
dev.hdaa.0.gpo_config:
dev.hdaa.0.gpo_state:
dev.hdaa.0.gpio_config: 0=set 1=keep 2=keep
dev.hdaa.0.gpio_state: 0=output(1) 1=disabled 2=disabled
dev.hdaa.0.gpi_state:
dev.hdaa.0.config:
forcestereo,ivref50,ivref80,ivref100,ivref,vref

dev.hdaa.0.nid35: audio
mixer

 Widget cap: 0x0020010b
STEREO

Association: 2 (0x0001)
OSS: speaker, monitor
  Input amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 7
  + [DISABLED] <- nid=24 [pin: Speaker (None)] [DISABLED]
  + [DISABLED] <- nid=25 [pin: Speaker (None)] [DISABLED]
  + [DISABLED] <- nid=26 [pin: Speaker (None)] [DISABLED]
  + [DISABLED] <- nid=27 [pin: Speaker (None)] [DISABLED]
  + <- nid=29 [beep widget]
  + <- nid=11 [audio mixer]
  + <- nid=18 [pin: Mic (Fixed)]

dev.hdaa.0.nid34: audio mixer [DISABLED]
 Widget cap: 0x0020010b STEREO
  Input amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 6
  + [DISABLED] <- nid=24 [pin: Speaker (None)] [DISABLED]
  + [DISABLED] <- nid=25 [pin: Speaker (None)] [DISABLED]
  + [DISABLED] <- nid=26 [pin: Speaker (None)] [DISABLED]
  + [DISABLED] <- nid=27 [pin: Speaker (None)] [DISABLED]
  + [DISABLED] <- nid=29 [beep widget]
  + [DISABLED] <- nid=11 [audio mixer]

dev.hdaa.0.nid33_original: 0x02211030 as=3 seq=0 device=Headphones
conn=Jack ctype=1/8 loc=Front color=Black misc=0
dev.hdaa.0.nid33_config: 0x02211030 as=3 seq=0 device=Headphones conn=Jack
ctype=1/8 loc=Front color=Black misc=0
dev.hdaa.0.nid33: pin: Headphones (Black Jack)
 Widget cap: 0x0040058d PWR UNSOL STEREO
Association: 1 (0x0001)
Pin cap: 0x0001001c PDC HP OUT EAPD
 

Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-03 Thread Jakob Alvermark

On 10/3/18 6:19 PM, Mario Lobo wrote:
Em qua, 3 de out de 2018 às 10:10, David Wolfskill 
mailto:da...@catwhisker.org>> escreveu:


On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
> 
> Do the headphones work with this patch?
>
> Index: sys/dev/sound/pci/hda/hdaa.c
> ===
> --- sys/dev/sound/pci/hda/hdaa.c    (revision 339076)
> +++ sys/dev/sound/pci/hda/hdaa.c    (working copy)
> @@ -5034,11 +5034,13 @@
>       pincap = w->wclass.pin.cap;
>
>       /* Disable everything. */
> +        /*
>       w->wclass.pin.ctrl &= ~(
> HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
> HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
> HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
> HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
> +        */
>
>       if (w->enable == 0) {
>           /* Pin is unused so left it disabled. */
> 

Thank you!  This addressed the long-standing (Reported:  2015-05-29
21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
-- now updated to reflect the fix.

Peace,
david
-- 
David H. Wolfskill da...@catwhisker.org 

Trump is gaslighting us:
https://www.bbc.com/news/world-us-canada-44959300

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


Thank you #2 !! The patch fixed my weird headphone sound too on 
11.2-STABLE!


I still can't make the plugging-in switch work but it's ok. I created 
scripts for that with



Can you send the output from 'sysctl dev.hdaa'?


Jakob

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-03 Thread Mario Lobo
Em qua, 3 de out de 2018 às 10:10, David Wolfskill 
escreveu:

> On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
> > 
> > Do the headphones work with this patch?
> >
> > Index: sys/dev/sound/pci/hda/hdaa.c
> > ===
> > --- sys/dev/sound/pci/hda/hdaa.c(revision 339076)
> > +++ sys/dev/sound/pci/hda/hdaa.c(working copy)
> > @@ -5034,11 +5034,13 @@
> >   pincap = w->wclass.pin.cap;
> >
> >   /* Disable everything. */
> > +/*
> >   w->wclass.pin.ctrl &= ~(
> >   HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
> >   HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
> >   HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
> >   HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
> > +*/
> >
> >   if (w->enable == 0) {
> >   /* Pin is unused so left it disabled. */
> > 
>
> Thank you!  This addressed the long-standing (Reported:  2015-05-29
> 21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
> documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
> -- now updated to reflect the fix.
>
> Peace,
> david
> --
> David H. Wolfskill  da...@catwhisker.org
> Trump is gaslighting us: https://www.bbc.com/news/world-us-canada-44959300
>
> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>

Thank you #2 !! The patch fixed my weird headphone sound too on 11.2-STABLE!

I still can't make the plugging-in switch work but it's ok. I created
scripts for that with

/sbin/sysctl hw.snd.default_unit=1 (headphones) or 0 speakers.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!]
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-03 Thread Johannes Lundberg
On Wed, Oct 3, 2018 at 2:30 PM Jakob Alvermark  wrote:

> On 10/3/18 3:06 PM, David Wolfskill wrote:
> > On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
> >> 
> >> Do the headphones work with this patch?
> >>
> >> Index: sys/dev/sound/pci/hda/hdaa.c
> >> ===
> >> --- sys/dev/sound/pci/hda/hdaa.c(revision 339076)
> >> +++ sys/dev/sound/pci/hda/hdaa.c(working copy)
> >> @@ -5034,11 +5034,13 @@
> >>pincap = w->wclass.pin.cap;
> >>
> >>/* Disable everything. */
> >> +/*
> >>w->wclass.pin.ctrl &= ~(
> >>HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
> >>HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
> >>HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
> >>HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
> >> +*/
> >>
> >>if (w->enable == 0) {
> >>/* Pin is unused so left it disabled. */
> >> 
> > Thank you!  This addressed the long-standing (Reported:  2015-05-29
> > 21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
> > documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
> > -- now updated to reflect the fix.
>
>
> That's great! Glad to hear it helped.
>
> This is probably not a proper fix, but it helps to understand the problem.
>
> Could you post the output of 'sysctl dev.hdaa' with and without the
> patch so we can see what's different?
>
>
Hi Jakob

Here's my diff from orig to patched (full output zipped and attached)

johannes@jm:~ % diff -u -U5 tmp/dev_hdaa_0_orig.txt
tmp/dev_hdaa_0_patched.txt
--- tmp/dev_hdaa_0_orig.txt2018-10-03 14:32:31.264778000 +0100
+++ tmp/dev_hdaa_0_patched.txt2018-10-03 14:28:18.767561000 +0100
@@ -58,11 +58,11 @@
 dev.hdaa.0.nid30_config: 0x421212f2 as=15 seq=2 device=Speaker conn=None
ctype=1/4 loc=Front color=Black misc=2
 dev.hdaa.0.nid30: pin: Speaker (None) [DISABLED]
  Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
 Pin cap: 0x0014 PDC OUT
  Pin config: 0x421212f2 as=15 seq=2 device=Speaker conn=None ctype=1/4
loc=Front color=Black misc=2
-Pin control: 0x
+Pin control: 0x0040 OUT
 Connections: 1
   + <- nid=6 [audio output] [DISABLED]

 dev.hdaa.0.nid29_original: 0x4071 as=0 seq=1 device=Modem-handset
conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
 dev.hdaa.0.nid29_config: 0x4071 as=0 seq=1 device=Modem-handset
conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
@@ -81,11 +81,11 @@
 dev.hdaa.0.nid27_config: 0x41f0 as=15 seq=0 device=Speaker conn=None
ctype=1/8 loc=Rear color=Black misc=1
 dev.hdaa.0.nid27: pin: Speaker (None) [DISABLED]
  Widget cap: 0x0040058f PWR UNSOL STEREO
 Pin cap: 0x00013734 PDC OUT IN VREF[ 50 80 100 GROUND HIZ ] EAPD
  Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8
loc=Rear color=Black misc=1
-Pin control: 0x
+Pin control: 0x0020 IN
EAPD: 0x0002 EAPD
  Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
   Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
 Connections: 2
   + [DISABLED] <- nid=2 [audio output] (selected)
@@ -104,20 +104,20 @@
 dev.hdaa.0.nid25_config: 0x41f0 as=15 seq=0 device=Speaker conn=None
ctype=1/8 loc=Rear color=Black misc=1
 dev.hdaa.0.nid25: pin: Speaker (None) [DISABLED]
  Widget cap: 0x0040048b PWR UNSOL STEREO
 Pin cap: 0x3724 PDC IN VREF[ 50 80 100 GROUND HIZ ]
  Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8
loc=Rear color=Black misc=1
-Pin control: 0x
+Pin control: 0x0020 IN
   Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)

 dev.hdaa.0.nid24_original: 0x41f0 as=15 seq=0 device=Speaker conn=None
ctype=1/8 loc=Rear color=Black misc=1
 dev.hdaa.0.nid24_config: 0x41f0 as=15 seq=0 device=Speaker conn=None
ctype=1/8 loc=Rear color=Black misc=1
 dev.hdaa.0.nid24: pin: Speaker (None) [DISABLED]
  Widget cap: 0x0040048b PWR UNSOL STEREO
 Pin cap: 0x3724 PDC IN VREF[ 50 80 100 GROUND HIZ ]
  Pin config: 0x41f0 as=15 seq=0 device=Speaker conn=None ctype=1/8
loc=Rear color=Black misc=1
-Pin control: 0x
+Pin control: 0x0020 IN
   Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)

 dev.hdaa.0.nid23: vendor widget [DISABLED]
  Widget cap: 0x00f0




> Jakob
>
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
<>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-03 Thread Jakob Alvermark

On 10/3/18 3:06 PM, David Wolfskill wrote:

On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:


Do the headphones work with this patch?

Index: sys/dev/sound/pci/hda/hdaa.c
===
--- sys/dev/sound/pci/hda/hdaa.c    (revision 339076)
+++ sys/dev/sound/pci/hda/hdaa.c    (working copy)
@@ -5034,11 +5034,13 @@
       pincap = w->wclass.pin.cap;

       /* Disable everything. */
+        /*
       w->wclass.pin.ctrl &= ~(
           HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
           HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
           HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
           HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
+        */

       if (w->enable == 0) {
           /* Pin is unused so left it disabled. */


Thank you!  This addressed the long-standing (Reported:  2015-05-29
21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
-- now updated to reflect the fix.



That's great! Glad to hear it helped.

This is probably not a proper fix, but it helps to understand the problem.

Could you post the output of 'sysctl dev.hdaa' with and without the 
patch so we can see what's different?



Jakob

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-03 Thread David Wolfskill
On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
> 
> Do the headphones work with this patch?
> 
> Index: sys/dev/sound/pci/hda/hdaa.c
> ===
> --- sys/dev/sound/pci/hda/hdaa.c    (revision 339076)
> +++ sys/dev/sound/pci/hda/hdaa.c    (working copy)
> @@ -5034,11 +5034,13 @@
>       pincap = w->wclass.pin.cap;
> 
>       /* Disable everything. */
> +        /*
>       w->wclass.pin.ctrl &= ~(
>           HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
>           HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
>           HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
>           HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
> +        */
> 
>       if (w->enable == 0) {
>           /* Pin is unused so left it disabled. */
> 

Thank you!  This addressed the long-standing (Reported:  2015-05-29
21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200526
-- now updated to reflect the fix.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Trump is gaslighting us: https://www.bbc.com/news/world-us-canada-44959300

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


signature.asc
Description: PGP signature


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Johannes Lundberg
On Tue, Oct 2, 2018 at 9:36 PM Johannes Lundberg  wrote:

>
>
> On Tue, Oct 2, 2018 at 9:32 PM Jakob Alvermark 
> wrote:
>
>> On 10/2/18 9:56 PM, Johannes Lundberg wrote:
>>
>>
>>
>> On Mon, Oct 1, 2018 at 10:12 PM Jakob Alvermark 
>> wrote:
>>
>>> On 10/1/18 10:56 PM, Johannes Lundberg wrote:
>>> > On Mon, Oct 1, 2018 at 8:37 PM Jakob Alvermark 
>>> wrote:
>>> >
>>> >> On 10/1/18 5:57 PM, Johannes Lundberg wrote:
>>> >>> Hi
>>> >>>
>>> >>> While sound work out of the box (with headphone switching) on the 1-2
>>> >> year
>>> >>> older Latitude 7270, it does not on my new machine.
>>> >>>
>>> >>> The internal speaker works fine. If I plug in external speakers in
>>> the
>>> >>> headphone jack, sound still goes to the internal speaker while a very
>>> >> load
>>> >>> buzz comes from the external speakers.
>>> >>>
>>> >>> Do we have a solution for this?
>>> >>>
>>> >>> # cat /dev/sndstat
>>> >>> Installed devices:
>>> >>> pcm0:  (play/rec) default
>>> >>> pcm1:  (play)
>>> >>> pcm2:  (play)
>>> >>> No devices installed from userspace.
>>> >>>
>>> >>> # sysctl hw.snd
>>> >>> hw.snd.maxautovchans: 16
>>> >>> hw.snd.default_unit: 0
>>> >>> hw.snd.version: 2009061500/amd64
>>> >>> hw.snd.default_auto: 1
>>> >>> hw.snd.verbose: 0
>>> >>> hw.snd.vpc_mixer_bypass: 1
>>> >>> hw.snd.feeder_rate_quality: 1
>>> >>> hw.snd.feeder_rate_round: 25
>>> >>> hw.snd.feeder_rate_max: 2016000
>>> >>> hw.snd.feeder_rate_min: 1
>>> >>> hw.snd.feeder_rate_polyphase_max: 183040
>>> >>> hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
>>> >>> hw.snd.feeder_eq_exact_rate: 0
>>> >>> hw.snd.feeder_eq_presets:
>>> >>>
>>> PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
>>> >>> hw.snd.basename_clone: 1
>>> >>> hw.snd.compat_linux_mmap: 0
>>> >>> hw.snd.syncdelay: -1
>>> >>> hw.snd.usefrags: 0
>>> >>> hw.snd.vpc_reset: 0
>>> >>> hw.snd.vpc_0db: 45
>>> >>> hw.snd.vpc_autoreset: 1
>>> >>> hw.snd.timeout: 5
>>> >>> hw.snd.latency_profile: 1
>>> >>> hw.snd.latency: 5
>>> >>> hw.snd.report_soft_matrix: 1
>>> >>> hw.snd.report_soft_formats: 1
>>> >>>
>>> >>> # sysctl dev.pcm
>>> >>> dev.pcm.2.bitperfect: 0
>>> >>> dev.pcm.2.buffersize: 65536
>>> >>> dev.pcm.2.play.vchanformat: s16le:2.0
>>> >>> dev.pcm.2.play.vchanrate: 48000
>>> >>> dev.pcm.2.play.vchanmode: passthrough
>>> >>> dev.pcm.2.play.vchans: 1
>>> >>> dev.pcm.2.play.32bit: 24
>>> >>> dev.pcm.2.%parent: hdaa1
>>> >>> dev.pcm.2.%pnpinfo:
>>> >>> dev.pcm.2.%location: nid=3
>>> >>> dev.pcm.2.%driver: pcm
>>> >>> dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
>>> >>> dev.pcm.1.bitperfect: 0
>>> >>> dev.pcm.1.buffersize: 65536
>>> >>> dev.pcm.1.play.vchanformat: s16le:2.0
>>> >>> dev.pcm.1.play.vchanrate: 48000
>>> >>> dev.pcm.1.play.vchanmode: fixed
>>> >>> dev.pcm.1.play.vchans: 1
>>> >>> dev.pcm.1.play.32bit: 24
>>> >>> dev.pcm.1.%parent: hdaa0
>>> >>> dev.pcm.1.%pnpinfo:
>>> >>> dev.pcm.1.%location: nid=33
>>> >>> dev.pcm.1.%driver: pcm
>>> >>> dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
>>> >>> dev.pcm.0.bitperfect: 0
>>> >>> dev.pcm.0.buffersize: 65536
>>> >>> dev.pcm.0.rec.vchanformat: s16le:2.0
>>> >>> dev.pcm.0.rec.vchanrate: 48000
>>> >>> dev.pcm.0.rec.vchanmode: fixed
>>> >>> dev.pcm.0.rec.vchans: 1
>>> >>> dev.pcm.0.rec.autosrc: 2
>>> >>> dev.pcm.0.rec.32bit: 24
>>> >>> dev.pcm.0.play.vchanformat: s16le:2.0
>>> >>> dev.pcm.0.play.vchanrate: 48000
>>> >>> dev.pcm.0.play.vchanmode: fixed
>>> >>> dev.pcm.0.play.vchans: 2
>>> >>> dev.pcm.0.play.32bit: 24
>>> >>> dev.pcm.0.%parent: hdaa0
>>> >>> dev.pcm.0.%pnpinfo:
>>> >>> dev.pcm.0.%location: nid=20,18
>>> >>> dev.pcm.0.%driver: pcm
>>> >>> dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
>>> >>> dev.pcm.%parent:
>>> >>
>>> >> You could try
>>> >>
>>> >> sysctl dev.hdaa.0.nid33_config="as=1 seq=15 device=Headphones"
>>> >>
>>> >> sysctl dev.hdaa.0.reconfig=1
>>> >>
>>> >>
>>> >> It should result in you having only one pcm device for the two outputs
>>> >> and it should switch from
>>> >>
>>> >> internal to external when you plug in the external speakers and vice
>>> versa.
>>> >>
>>> >> To make it permanent put 'hint.hdaa.0.nid33.config="as=1 seq=15
>>> >> device=Headphones"' in your loader.conf
>>> >>
>>> >>
>>> >> The loud buzz is a bit worrying, it could be related to the problem I
>>> >> have been having, where I got strange sound
>>> >>
>>> >> when using headphones on my laptop. I have worked around it by
>>> patching
>>> >> the sound driver, I have kept my local
>>> >>
>>> >> patch for years.
>>> >>
>>> >>
>>> > With that hint it does turn off the internal speakers but I can hear
>>> > nothing in my headphones. Turning the volume to 100% I can hear the
>>> > playback in my internal speakers at very low volume (with headphones
>>> > connected).
>>> > The headphones has no buzzing sound, that is only my external speakers
>>> and
>>> > they only act like that when connect to this laptop (kind of like the
>>> buzz
>>> > noise you get when the connector touches something 

Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Johannes Lundberg
On Tue, Oct 2, 2018 at 9:32 PM Jakob Alvermark  wrote:

> On 10/2/18 9:56 PM, Johannes Lundberg wrote:
>
>
>
> On Mon, Oct 1, 2018 at 10:12 PM Jakob Alvermark 
> wrote:
>
>> On 10/1/18 10:56 PM, Johannes Lundberg wrote:
>> > On Mon, Oct 1, 2018 at 8:37 PM Jakob Alvermark 
>> wrote:
>> >
>> >> On 10/1/18 5:57 PM, Johannes Lundberg wrote:
>> >>> Hi
>> >>>
>> >>> While sound work out of the box (with headphone switching) on the 1-2
>> >> year
>> >>> older Latitude 7270, it does not on my new machine.
>> >>>
>> >>> The internal speaker works fine. If I plug in external speakers in the
>> >>> headphone jack, sound still goes to the internal speaker while a very
>> >> load
>> >>> buzz comes from the external speakers.
>> >>>
>> >>> Do we have a solution for this?
>> >>>
>> >>> # cat /dev/sndstat
>> >>> Installed devices:
>> >>> pcm0:  (play/rec) default
>> >>> pcm1:  (play)
>> >>> pcm2:  (play)
>> >>> No devices installed from userspace.
>> >>>
>> >>> # sysctl hw.snd
>> >>> hw.snd.maxautovchans: 16
>> >>> hw.snd.default_unit: 0
>> >>> hw.snd.version: 2009061500/amd64
>> >>> hw.snd.default_auto: 1
>> >>> hw.snd.verbose: 0
>> >>> hw.snd.vpc_mixer_bypass: 1
>> >>> hw.snd.feeder_rate_quality: 1
>> >>> hw.snd.feeder_rate_round: 25
>> >>> hw.snd.feeder_rate_max: 2016000
>> >>> hw.snd.feeder_rate_min: 1
>> >>> hw.snd.feeder_rate_polyphase_max: 183040
>> >>> hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
>> >>> hw.snd.feeder_eq_exact_rate: 0
>> >>> hw.snd.feeder_eq_presets:
>> >>>
>> PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
>> >>> hw.snd.basename_clone: 1
>> >>> hw.snd.compat_linux_mmap: 0
>> >>> hw.snd.syncdelay: -1
>> >>> hw.snd.usefrags: 0
>> >>> hw.snd.vpc_reset: 0
>> >>> hw.snd.vpc_0db: 45
>> >>> hw.snd.vpc_autoreset: 1
>> >>> hw.snd.timeout: 5
>> >>> hw.snd.latency_profile: 1
>> >>> hw.snd.latency: 5
>> >>> hw.snd.report_soft_matrix: 1
>> >>> hw.snd.report_soft_formats: 1
>> >>>
>> >>> # sysctl dev.pcm
>> >>> dev.pcm.2.bitperfect: 0
>> >>> dev.pcm.2.buffersize: 65536
>> >>> dev.pcm.2.play.vchanformat: s16le:2.0
>> >>> dev.pcm.2.play.vchanrate: 48000
>> >>> dev.pcm.2.play.vchanmode: passthrough
>> >>> dev.pcm.2.play.vchans: 1
>> >>> dev.pcm.2.play.32bit: 24
>> >>> dev.pcm.2.%parent: hdaa1
>> >>> dev.pcm.2.%pnpinfo:
>> >>> dev.pcm.2.%location: nid=3
>> >>> dev.pcm.2.%driver: pcm
>> >>> dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
>> >>> dev.pcm.1.bitperfect: 0
>> >>> dev.pcm.1.buffersize: 65536
>> >>> dev.pcm.1.play.vchanformat: s16le:2.0
>> >>> dev.pcm.1.play.vchanrate: 48000
>> >>> dev.pcm.1.play.vchanmode: fixed
>> >>> dev.pcm.1.play.vchans: 1
>> >>> dev.pcm.1.play.32bit: 24
>> >>> dev.pcm.1.%parent: hdaa0
>> >>> dev.pcm.1.%pnpinfo:
>> >>> dev.pcm.1.%location: nid=33
>> >>> dev.pcm.1.%driver: pcm
>> >>> dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
>> >>> dev.pcm.0.bitperfect: 0
>> >>> dev.pcm.0.buffersize: 65536
>> >>> dev.pcm.0.rec.vchanformat: s16le:2.0
>> >>> dev.pcm.0.rec.vchanrate: 48000
>> >>> dev.pcm.0.rec.vchanmode: fixed
>> >>> dev.pcm.0.rec.vchans: 1
>> >>> dev.pcm.0.rec.autosrc: 2
>> >>> dev.pcm.0.rec.32bit: 24
>> >>> dev.pcm.0.play.vchanformat: s16le:2.0
>> >>> dev.pcm.0.play.vchanrate: 48000
>> >>> dev.pcm.0.play.vchanmode: fixed
>> >>> dev.pcm.0.play.vchans: 2
>> >>> dev.pcm.0.play.32bit: 24
>> >>> dev.pcm.0.%parent: hdaa0
>> >>> dev.pcm.0.%pnpinfo:
>> >>> dev.pcm.0.%location: nid=20,18
>> >>> dev.pcm.0.%driver: pcm
>> >>> dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
>> >>> dev.pcm.%parent:
>> >>
>> >> You could try
>> >>
>> >> sysctl dev.hdaa.0.nid33_config="as=1 seq=15 device=Headphones"
>> >>
>> >> sysctl dev.hdaa.0.reconfig=1
>> >>
>> >>
>> >> It should result in you having only one pcm device for the two outputs
>> >> and it should switch from
>> >>
>> >> internal to external when you plug in the external speakers and vice
>> versa.
>> >>
>> >> To make it permanent put 'hint.hdaa.0.nid33.config="as=1 seq=15
>> >> device=Headphones"' in your loader.conf
>> >>
>> >>
>> >> The loud buzz is a bit worrying, it could be related to the problem I
>> >> have been having, where I got strange sound
>> >>
>> >> when using headphones on my laptop. I have worked around it by patching
>> >> the sound driver, I have kept my local
>> >>
>> >> patch for years.
>> >>
>> >>
>> > With that hint it does turn off the internal speakers but I can hear
>> > nothing in my headphones. Turning the volume to 100% I can hear the
>> > playback in my internal speakers at very low volume (with headphones
>> > connected).
>> > The headphones has no buzzing sound, that is only my external speakers
>> and
>> > they only act like that when connect to this laptop (kind of like the
>> buzz
>> > noise you get when the connector touches something (ground?))...
>>
>>
>> Do the headphones work with this patch?
>>
>> Index: sys/dev/sound/pci/hda/hdaa.c
>> ===
>> --- sys/dev/sound/pci/hda/hdaa.c(revision 

Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Jakob Alvermark

On 10/2/18 9:56 PM, Johannes Lundberg wrote:



On Mon, Oct 1, 2018 at 10:12 PM Jakob Alvermark > wrote:


On 10/1/18 10:56 PM, Johannes Lundberg wrote:
> On Mon, Oct 1, 2018 at 8:37 PM Jakob Alvermark
mailto:ja...@alvermark.net>> wrote:
>
>> On 10/1/18 5:57 PM, Johannes Lundberg wrote:
>>> Hi
>>>
>>> While sound work out of the box (with headphone switching) on
the 1-2
>> year
>>> older Latitude 7270, it does not on my new machine.
>>>
>>> The internal speaker works fine. If I plug in external
speakers in the
>>> headphone jack, sound still goes to the internal speaker while
a very
>> load
>>> buzz comes from the external speakers.
>>>
>>> Do we have a solution for this?
>>>
>>> # cat /dev/sndstat
>>> Installed devices:
>>> pcm0:  (play/rec) default
>>> pcm1:  (play)
>>> pcm2:  (play)
>>> No devices installed from userspace.
>>>
>>> # sysctl hw.snd
>>> hw.snd.maxautovchans: 16
>>> hw.snd.default_unit: 0
>>> hw.snd.version: 2009061500/amd64
>>> hw.snd.default_auto: 1
>>> hw.snd.verbose: 0
>>> hw.snd.vpc_mixer_bypass: 1
>>> hw.snd.feeder_rate_quality: 1
>>> hw.snd.feeder_rate_round: 25
>>> hw.snd.feeder_rate_max: 2016000
>>> hw.snd.feeder_rate_min: 1
>>> hw.snd.feeder_rate_polyphase_max: 183040
>>> hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
>>> hw.snd.feeder_eq_exact_rate: 0
>>> hw.snd.feeder_eq_presets:
>>>
PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
>>> hw.snd.basename_clone: 1
>>> hw.snd.compat_linux_mmap: 0
>>> hw.snd.syncdelay: -1
>>> hw.snd.usefrags: 0
>>> hw.snd.vpc_reset: 0
>>> hw.snd.vpc_0db: 45
>>> hw.snd.vpc_autoreset: 1
>>> hw.snd.timeout: 5
>>> hw.snd.latency_profile: 1
>>> hw.snd.latency: 5
>>> hw.snd.report_soft_matrix: 1
>>> hw.snd.report_soft_formats: 1
>>>
>>> # sysctl dev.pcm
>>> dev.pcm.2.bitperfect: 0
>>> dev.pcm.2.buffersize: 65536
>>> dev.pcm.2.play.vchanformat: s16le:2.0
>>> dev.pcm.2.play.vchanrate: 48000
>>> dev.pcm.2.play.vchanmode: passthrough
>>> dev.pcm.2.play.vchans: 1
>>> dev.pcm.2.play.32bit: 24
>>> dev.pcm.2.%parent: hdaa1
>>> dev.pcm.2.%pnpinfo:
>>> dev.pcm.2.%location: nid=3
>>> dev.pcm.2.%driver: pcm
>>> dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
>>> dev.pcm.1.bitperfect: 0
>>> dev.pcm.1.buffersize: 65536
>>> dev.pcm.1.play.vchanformat: s16le:2.0
>>> dev.pcm.1.play.vchanrate: 48000
>>> dev.pcm.1.play.vchanmode: fixed
>>> dev.pcm.1.play.vchans: 1
>>> dev.pcm.1.play.32bit: 24
>>> dev.pcm.1.%parent: hdaa0
>>> dev.pcm.1.%pnpinfo:
>>> dev.pcm.1.%location: nid=33
>>> dev.pcm.1.%driver: pcm
>>> dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
>>> dev.pcm.0.bitperfect: 0
>>> dev.pcm.0.buffersize: 65536
>>> dev.pcm.0.rec.vchanformat: s16le:2.0
>>> dev.pcm.0.rec.vchanrate: 48000
>>> dev.pcm.0.rec.vchanmode: fixed
>>> dev.pcm.0.rec.vchans: 1
>>> dev.pcm.0.rec.autosrc: 2
>>> dev.pcm.0.rec.32bit: 24
>>> dev.pcm.0.play.vchanformat: s16le:2.0
>>> dev.pcm.0.play.vchanrate: 48000
>>> dev.pcm.0.play.vchanmode: fixed
>>> dev.pcm.0.play.vchans: 2
>>> dev.pcm.0.play.32bit: 24
>>> dev.pcm.0.%parent: hdaa0
>>> dev.pcm.0.%pnpinfo:
>>> dev.pcm.0.%location: nid=20,18
>>> dev.pcm.0.%driver: pcm
>>> dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
>>> dev.pcm.%parent:
>>
>> You could try
>>
>> sysctl dev.hdaa.0.nid33_config="as=1 seq=15 device=Headphones"
>>
>> sysctl dev.hdaa.0.reconfig=1
>>
>>
>> It should result in you having only one pcm device for the two
outputs
>> and it should switch from
>>
>> internal to external when you plug in the external speakers and
vice versa.
>>
>> To make it permanent put 'hint.hdaa.0.nid33.config="as=1 seq=15
>> device=Headphones"' in your loader.conf
>>
>>
>> The loud buzz is a bit worrying, it could be related to the
problem I
>> have been having, where I got strange sound
>>
>> when using headphones on my laptop. I have worked around it by
patching
>> the sound driver, I have kept my local
>>
>> patch for years.
>>
>>
> With that hint it does turn off the internal speakers but I can hear
> nothing in my headphones. Turning the volume to 100% I can hear the
> playback in my internal speakers at very low volume (with headphones
> connected).
> The headphones has no buzzing sound, that is only my external
speakers and
> they only act like that when connect to this laptop (kind of
like the buzz
> noise you get when the connector touches something (ground?))...


Do the headphones work with this patch?

Index: 

Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Jakob Alvermark

On 10/2/18 9:48 PM, Emmanuel Vadot wrote:

On Tue, 2 Oct 2018 14:29:39 -0500
Eric van Gyzen  wrote:


Thanks. So if you try this:

sysctl dev.hdaa.0.nid24_config="as=4 seq=15"
sysctl dev.hdaa.0.nid21_config="as=1 seq=15"
sysctl dev.hdaa.0.reconfig=1

Works, thank you!

   Dude that's some serious shit !
   Jacob, is this documented somewhere ?
   I haven't read the driver code but what does as/seq etc represent
there ?

snd_hda(4) is very helpful.

  Indeed it is but I'm not sure that everyone (me included) can produce
what Jacob did to have headphone re-routed and muting the other outputs
just by reading the manual.



I learned this the hard way. snd_hda(4) is a lot of help, but it took me 
a long time


to understand it. snd_hda is quite complicated!

hdaa.c by itself is 7000+ lines. On top of that is hdaa_patches.c with 
~700 lines of added quirks


for some hardware.




   What could we do to make this
easier for users ?

We can commit similar changes to the kernel driver.  kstaring on github
has ported many such changes from Linux to FreeBSD:

https://github.com/freebsd/freebsd/pull/139
https://github.com/freebsd/freebsd/pull/144

I don't know if his port includes the changes Rod needs.

I was planning to commit these when life calms down enough to test them.
   If anyone beats me to it, I would be delighted.  I was also waiting
until after 12.0, but in hindsight, I wish I had just committed them.

  Please do as soon as 13-CURRENT branches and let people
test/complain :)


Eric
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"



___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Johannes Lundberg
On Mon, Oct 1, 2018 at 10:12 PM Jakob Alvermark  wrote:

> On 10/1/18 10:56 PM, Johannes Lundberg wrote:
> > On Mon, Oct 1, 2018 at 8:37 PM Jakob Alvermark 
> wrote:
> >
> >> On 10/1/18 5:57 PM, Johannes Lundberg wrote:
> >>> Hi
> >>>
> >>> While sound work out of the box (with headphone switching) on the 1-2
> >> year
> >>> older Latitude 7270, it does not on my new machine.
> >>>
> >>> The internal speaker works fine. If I plug in external speakers in the
> >>> headphone jack, sound still goes to the internal speaker while a very
> >> load
> >>> buzz comes from the external speakers.
> >>>
> >>> Do we have a solution for this?
> >>>
> >>> # cat /dev/sndstat
> >>> Installed devices:
> >>> pcm0:  (play/rec) default
> >>> pcm1:  (play)
> >>> pcm2:  (play)
> >>> No devices installed from userspace.
> >>>
> >>> # sysctl hw.snd
> >>> hw.snd.maxautovchans: 16
> >>> hw.snd.default_unit: 0
> >>> hw.snd.version: 2009061500/amd64
> >>> hw.snd.default_auto: 1
> >>> hw.snd.verbose: 0
> >>> hw.snd.vpc_mixer_bypass: 1
> >>> hw.snd.feeder_rate_quality: 1
> >>> hw.snd.feeder_rate_round: 25
> >>> hw.snd.feeder_rate_max: 2016000
> >>> hw.snd.feeder_rate_min: 1
> >>> hw.snd.feeder_rate_polyphase_max: 183040
> >>> hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
> >>> hw.snd.feeder_eq_exact_rate: 0
> >>> hw.snd.feeder_eq_presets:
> >>>
> PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
> >>> hw.snd.basename_clone: 1
> >>> hw.snd.compat_linux_mmap: 0
> >>> hw.snd.syncdelay: -1
> >>> hw.snd.usefrags: 0
> >>> hw.snd.vpc_reset: 0
> >>> hw.snd.vpc_0db: 45
> >>> hw.snd.vpc_autoreset: 1
> >>> hw.snd.timeout: 5
> >>> hw.snd.latency_profile: 1
> >>> hw.snd.latency: 5
> >>> hw.snd.report_soft_matrix: 1
> >>> hw.snd.report_soft_formats: 1
> >>>
> >>> # sysctl dev.pcm
> >>> dev.pcm.2.bitperfect: 0
> >>> dev.pcm.2.buffersize: 65536
> >>> dev.pcm.2.play.vchanformat: s16le:2.0
> >>> dev.pcm.2.play.vchanrate: 48000
> >>> dev.pcm.2.play.vchanmode: passthrough
> >>> dev.pcm.2.play.vchans: 1
> >>> dev.pcm.2.play.32bit: 24
> >>> dev.pcm.2.%parent: hdaa1
> >>> dev.pcm.2.%pnpinfo:
> >>> dev.pcm.2.%location: nid=3
> >>> dev.pcm.2.%driver: pcm
> >>> dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
> >>> dev.pcm.1.bitperfect: 0
> >>> dev.pcm.1.buffersize: 65536
> >>> dev.pcm.1.play.vchanformat: s16le:2.0
> >>> dev.pcm.1.play.vchanrate: 48000
> >>> dev.pcm.1.play.vchanmode: fixed
> >>> dev.pcm.1.play.vchans: 1
> >>> dev.pcm.1.play.32bit: 24
> >>> dev.pcm.1.%parent: hdaa0
> >>> dev.pcm.1.%pnpinfo:
> >>> dev.pcm.1.%location: nid=33
> >>> dev.pcm.1.%driver: pcm
> >>> dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
> >>> dev.pcm.0.bitperfect: 0
> >>> dev.pcm.0.buffersize: 65536
> >>> dev.pcm.0.rec.vchanformat: s16le:2.0
> >>> dev.pcm.0.rec.vchanrate: 48000
> >>> dev.pcm.0.rec.vchanmode: fixed
> >>> dev.pcm.0.rec.vchans: 1
> >>> dev.pcm.0.rec.autosrc: 2
> >>> dev.pcm.0.rec.32bit: 24
> >>> dev.pcm.0.play.vchanformat: s16le:2.0
> >>> dev.pcm.0.play.vchanrate: 48000
> >>> dev.pcm.0.play.vchanmode: fixed
> >>> dev.pcm.0.play.vchans: 2
> >>> dev.pcm.0.play.32bit: 24
> >>> dev.pcm.0.%parent: hdaa0
> >>> dev.pcm.0.%pnpinfo:
> >>> dev.pcm.0.%location: nid=20,18
> >>> dev.pcm.0.%driver: pcm
> >>> dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
> >>> dev.pcm.%parent:
> >>
> >> You could try
> >>
> >> sysctl dev.hdaa.0.nid33_config="as=1 seq=15 device=Headphones"
> >>
> >> sysctl dev.hdaa.0.reconfig=1
> >>
> >>
> >> It should result in you having only one pcm device for the two outputs
> >> and it should switch from
> >>
> >> internal to external when you plug in the external speakers and vice
> versa.
> >>
> >> To make it permanent put 'hint.hdaa.0.nid33.config="as=1 seq=15
> >> device=Headphones"' in your loader.conf
> >>
> >>
> >> The loud buzz is a bit worrying, it could be related to the problem I
> >> have been having, where I got strange sound
> >>
> >> when using headphones on my laptop. I have worked around it by patching
> >> the sound driver, I have kept my local
> >>
> >> patch for years.
> >>
> >>
> > With that hint it does turn off the internal speakers but I can hear
> > nothing in my headphones. Turning the volume to 100% I can hear the
> > playback in my internal speakers at very low volume (with headphones
> > connected).
> > The headphones has no buzzing sound, that is only my external speakers
> and
> > they only act like that when connect to this laptop (kind of like the
> buzz
> > noise you get when the connector touches something (ground?))...
>
>
> Do the headphones work with this patch?
>
> Index: sys/dev/sound/pci/hda/hdaa.c
> ===
> --- sys/dev/sound/pci/hda/hdaa.c(revision 339076)
> +++ sys/dev/sound/pci/hda/hdaa.c(working copy)
> @@ -5034,11 +5034,13 @@
>   pincap = w->wclass.pin.cap;
>
>   /* Disable everything. */
> +/*
>   w->wclass.pin.ctrl &= ~(
>   

Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Emmanuel Vadot
On Tue, 2 Oct 2018 14:29:39 -0500
Eric van Gyzen  wrote:

> >>> Thanks. So if you try this:
> >>>
> >>> sysctl dev.hdaa.0.nid24_config="as=4 seq=15"
> >>> sysctl dev.hdaa.0.nid21_config="as=1 seq=15"
> >>> sysctl dev.hdaa.0.reconfig=1
> >>
> >> Works, thank you!
> > 
> >   Dude that's some serious shit !
> >   Jacob, is this documented somewhere ?
> >   I haven't read the driver code but what does as/seq etc represent
> > there ?
> 
> snd_hda(4) is very helpful.

 Indeed it is but I'm not sure that everyone (me included) can produce
what Jacob did to have headphone re-routed and muting the other outputs
just by reading the manual.

> 
> >   What could we do to make this
> > easier for users ?
> 
> We can commit similar changes to the kernel driver.  kstaring on github 
> has ported many such changes from Linux to FreeBSD:
> 
>   https://github.com/freebsd/freebsd/pull/139
>   https://github.com/freebsd/freebsd/pull/144
> 
> I don't know if his port includes the changes Rod needs.
> 
> I was planning to commit these when life calms down enough to test them. 
>   If anyone beats me to it, I would be delighted.  I was also waiting 
> until after 12.0, but in hindsight, I wish I had just committed them.

 Please do as soon as 13-CURRENT branches and let people
test/complain :)

> 
> Eric
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


-- 
Emmanuel Vadot  
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Eric van Gyzen

Thanks. So if you try this:

sysctl dev.hdaa.0.nid24_config="as=4 seq=15"
sysctl dev.hdaa.0.nid21_config="as=1 seq=15"
sysctl dev.hdaa.0.reconfig=1


Works, thank you!


  Dude that's some serious shit !
  Jacob, is this documented somewhere ?
  I haven't read the driver code but what does as/seq etc represent
there ?


snd_hda(4) is very helpful.


  What could we do to make this
easier for users ?


We can commit similar changes to the kernel driver.  kstaring on github 
has ported many such changes from Linux to FreeBSD:


https://github.com/freebsd/freebsd/pull/139
https://github.com/freebsd/freebsd/pull/144

I don't know if his port includes the changes Rod needs.

I was planning to commit these when life calms down enough to test them. 
 If anyone beats me to it, I would be delighted.  I was also waiting 
until after 12.0, but in hindsight, I wish I had just committed them.


Eric
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Emmanuel Vadot
On Tue, 2 Oct 2018 12:03:50 -0700 (PDT)
"Rodney W. Grimes"  wrote:

> > On 10/2/18 6:27 PM, Rodney W. Grimes wrote:
> > >> On 10/1/18 6:43 PM, Rodney W. Grimes wrote:
> >  Hi
> > 
> >  While sound work out of the box (with headphone switching) on the 1-2 
> >  year
> >  older Latitude 7270, it does not on my new machine.
> > 
> >  The internal speaker works fine. If I plug in external speakers in the
> >  headphone jack, sound still goes to the internal speaker while a very 
> >  load
> >  buzz comes from the external speakers.
> > 
> >  Do we have a solution for this?
> > >>> I do not believe we have anything that detects stuff plugged into
> > >>> and removed from the newer sound stuff that needs switching to
> > >>> change from internal to external speakers.
> > >>>
> > >>> I think you need to do what I have to do when I plug in external
> > >>> speakers on my thinkpad x230:
> > >>> sysctl hw.snd.default_unit=1
> > >>>
> > >>> And when I unplug them I have to do:
> > >>> sysctl hw.snd.default_unit=0
> > >>>
> > >>> to switch back to the internal speakers.
> > >>
> > >> Hi Rod,
> > >>
> > >>
> > >> Can you post the output of 'sysctl dev.pcm' and 'sysctl dev.hdaa'
> > > Sure:
> > > @x230a:~ # sysctl dev.pcm
> > > dev.pcm.4.bitperfect: 0
> ...
> ...
> > 
> > Thanks. So if you try this:
> > 
> > sysctl dev.hdaa.0.nid24_config="as=4 seq=15"
> > sysctl dev.hdaa.0.nid21_config="as=1 seq=15"
> > sysctl dev.hdaa.0.reconfig=1
> 
> Works, thank you!

 Dude that's some serious shit !
 Jacob, is this documented somewhere ? 
 I haven't read the driver code but what does as/seq etc represent
there ?

 What could we do to make this
easier for users ?

> > That should make pcm0 and pcm1 "merge" into pcm0 and enable 
> > auto-switching when plugging something
> > 
> > in the headphones jack.
> > 
> > If it works you might want to put the following two lines in 
> > /boot/loader.conf
> > 
> > hint.hdaa.0.nid24.config="as=4 seq=15"
> > hint.hdaa.0.nid21.config="as=1 seq=15"
> 
> 
> -- 
> Rod Grimes rgri...@freebsd.org
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


-- 
Emmanuel Vadot  
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Rodney W. Grimes
> On 10/2/18 6:27 PM, Rodney W. Grimes wrote:
> >> On 10/1/18 6:43 PM, Rodney W. Grimes wrote:
>  Hi
> 
>  While sound work out of the box (with headphone switching) on the 1-2 
>  year
>  older Latitude 7270, it does not on my new machine.
> 
>  The internal speaker works fine. If I plug in external speakers in the
>  headphone jack, sound still goes to the internal speaker while a very 
>  load
>  buzz comes from the external speakers.
> 
>  Do we have a solution for this?
> >>> I do not believe we have anything that detects stuff plugged into
> >>> and removed from the newer sound stuff that needs switching to
> >>> change from internal to external speakers.
> >>>
> >>> I think you need to do what I have to do when I plug in external
> >>> speakers on my thinkpad x230:
> >>> sysctl hw.snd.default_unit=1
> >>>
> >>> And when I unplug them I have to do:
> >>> sysctl hw.snd.default_unit=0
> >>>
> >>> to switch back to the internal speakers.
> >>
> >> Hi Rod,
> >>
> >>
> >> Can you post the output of 'sysctl dev.pcm' and 'sysctl dev.hdaa'
> > Sure:
> > @x230a:~ # sysctl dev.pcm
> > dev.pcm.4.bitperfect: 0
...
...
> 
> Thanks. So if you try this:
> 
> sysctl dev.hdaa.0.nid24_config="as=4 seq=15"
> sysctl dev.hdaa.0.nid21_config="as=1 seq=15"
> sysctl dev.hdaa.0.reconfig=1

Works, thank you!

> That should make pcm0 and pcm1 "merge" into pcm0 and enable 
> auto-switching when plugging something
> 
> in the headphones jack.
> 
> If it works you might want to put the following two lines in 
> /boot/loader.conf
> 
> hint.hdaa.0.nid24.config="as=4 seq=15"
> hint.hdaa.0.nid21.config="as=1 seq=15"


-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Jakob Alvermark

On 10/2/18 6:27 PM, Rodney W. Grimes wrote:

On 10/1/18 6:43 PM, Rodney W. Grimes wrote:

Hi

While sound work out of the box (with headphone switching) on the 1-2 year
older Latitude 7270, it does not on my new machine.

The internal speaker works fine. If I plug in external speakers in the
headphone jack, sound still goes to the internal speaker while a very load
buzz comes from the external speakers.

Do we have a solution for this?

I do not believe we have anything that detects stuff plugged into
and removed from the newer sound stuff that needs switching to
change from internal to external speakers.

I think you need to do what I have to do when I plug in external
speakers on my thinkpad x230:
sysctl hw.snd.default_unit=1

And when I unplug them I have to do:
sysctl hw.snd.default_unit=0

to switch back to the internal speakers.


Hi Rod,


Can you post the output of 'sysctl dev.pcm' and 'sysctl dev.hdaa'

Sure:
@x230a:~ # sysctl dev.pcm
dev.pcm.4.bitperfect: 0
dev.pcm.4.buffersize: 65536
dev.pcm.4.play.vchanformat: s16le:2.0
dev.pcm.4.play.vchanrate: 48000
dev.pcm.4.play.vchanmode: passthrough
dev.pcm.4.play.vchans: 1
dev.pcm.4.play.32bit: 24
dev.pcm.4.%parent: hdaa1
dev.pcm.4.%pnpinfo:
dev.pcm.4.%location: nid=7
dev.pcm.4.%driver: pcm
dev.pcm.4.%desc: Intel Panther Point (HDMI/DP 8ch)
dev.pcm.3.bitperfect: 0
dev.pcm.3.buffersize: 65536
dev.pcm.3.play.vchanformat: s16le:2.0
dev.pcm.3.play.vchanrate: 48000
dev.pcm.3.play.vchanmode: passthrough
dev.pcm.3.play.vchans: 1
dev.pcm.3.play.32bit: 24
dev.pcm.3.%parent: hdaa1
dev.pcm.3.%pnpinfo:
dev.pcm.3.%location: nid=6
dev.pcm.3.%driver: pcm
dev.pcm.3.%desc: Intel Panther Point (HDMI/DP 8ch)
dev.pcm.2.bitperfect: 0
dev.pcm.2.buffersize: 65536
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.2.play.vchanrate: 48000
dev.pcm.2.play.vchanmode: passthrough
dev.pcm.2.play.vchans: 1
dev.pcm.2.play.32bit: 24
dev.pcm.2.%parent: hdaa1
dev.pcm.2.%pnpinfo:
dev.pcm.2.%location: nid=5
dev.pcm.2.%driver: pcm
dev.pcm.2.%desc: Intel Panther Point (HDMI/DP 8ch)
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 65536
dev.pcm.1.rec.vchanformat: s16le:2.0
dev.pcm.1.rec.vchanrate: 48000
dev.pcm.1.rec.vchanmode: fixed
dev.pcm.1.rec.vchans: 1
dev.pcm.1.rec.autosrc: 2
dev.pcm.1.rec.32bit: 24
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.play.vchanrate: 48000
dev.pcm.1.play.vchanmode: fixed
dev.pcm.1.play.vchans: 9
dev.pcm.1.play.32bit: 24
dev.pcm.1.%parent: hdaa0
dev.pcm.1.%pnpinfo:
dev.pcm.1.%location: nid=21,18
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Realtek ALC269 (Analog)
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 65536
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.autosrc: 2
dev.pcm.0.rec.32bit: 24
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.32bit: 24
dev.pcm.0.%parent: hdaa0
dev.pcm.0.%pnpinfo:
dev.pcm.0.%location: nid=20,24
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: Realtek ALC269 (Analog)
dev.pcm.%parent:


@x230a:~ # sysctl dev.hdaa
dev.hdaa.1.reconfig: 0
dev.hdaa.1.gpo_config:
dev.hdaa.1.gpo_state:
dev.hdaa.1.gpio_config:
dev.hdaa.1.gpio_state:
dev.hdaa.1.gpi_state:
dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.1.nid8: vendor widget [DISABLED]
  Widget cap: 0x00f0

dev.hdaa.1.nid7_original: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid7_config: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid7: pin: Digital-out (Jack)
  Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
 Association: 2 (0x0001)
 Pin cap: 0x0994 PDC OUT HDMI DP HBR
  Pin config: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
 Pin control: 0x0040 OUT
  Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
 Connections: 1
   + <- nid=4 [audio output]

dev.hdaa.1.nid6_original: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid6_config: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid6: pin: Digital-out (Jack)
  Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
 Association: 1 (0x0001)
 Pin cap: 0x0994 PDC OUT HDMI DP HBR
  Pin config: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
 Pin control: 0x0040 OUT
  Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
 Connections: 1
   + <- nid=3 [audio output]

dev.hdaa.1.nid5_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid5_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0

Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Rodney W. Grimes
> On 10/1/18 6:43 PM, Rodney W. Grimes wrote:
> >> Hi
> >>
> >> While sound work out of the box (with headphone switching) on the 1-2 year
> >> older Latitude 7270, it does not on my new machine.
> >>
> >> The internal speaker works fine. If I plug in external speakers in the
> >> headphone jack, sound still goes to the internal speaker while a very load
> >> buzz comes from the external speakers.
> >>
> >> Do we have a solution for this?
> > I do not believe we have anything that detects stuff plugged into
> > and removed from the newer sound stuff that needs switching to
> > change from internal to external speakers.
> >
> > I think you need to do what I have to do when I plug in external
> > speakers on my thinkpad x230:
> > sysctl hw.snd.default_unit=1
> >
> > And when I unplug them I have to do:
> > sysctl hw.snd.default_unit=0
> >
> > to switch back to the internal speakers.
> 
> 
> Hi Rod,
> 
> 
> Can you post the output of 'sysctl dev.pcm' and 'sysctl dev.hdaa'

Sure:
@x230a:~ # sysctl dev.pcm
dev.pcm.4.bitperfect: 0
dev.pcm.4.buffersize: 65536
dev.pcm.4.play.vchanformat: s16le:2.0
dev.pcm.4.play.vchanrate: 48000
dev.pcm.4.play.vchanmode: passthrough
dev.pcm.4.play.vchans: 1
dev.pcm.4.play.32bit: 24
dev.pcm.4.%parent: hdaa1
dev.pcm.4.%pnpinfo: 
dev.pcm.4.%location: nid=7
dev.pcm.4.%driver: pcm
dev.pcm.4.%desc: Intel Panther Point (HDMI/DP 8ch)
dev.pcm.3.bitperfect: 0
dev.pcm.3.buffersize: 65536
dev.pcm.3.play.vchanformat: s16le:2.0
dev.pcm.3.play.vchanrate: 48000
dev.pcm.3.play.vchanmode: passthrough
dev.pcm.3.play.vchans: 1
dev.pcm.3.play.32bit: 24
dev.pcm.3.%parent: hdaa1
dev.pcm.3.%pnpinfo: 
dev.pcm.3.%location: nid=6
dev.pcm.3.%driver: pcm
dev.pcm.3.%desc: Intel Panther Point (HDMI/DP 8ch)
dev.pcm.2.bitperfect: 0
dev.pcm.2.buffersize: 65536
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.2.play.vchanrate: 48000
dev.pcm.2.play.vchanmode: passthrough
dev.pcm.2.play.vchans: 1
dev.pcm.2.play.32bit: 24
dev.pcm.2.%parent: hdaa1
dev.pcm.2.%pnpinfo: 
dev.pcm.2.%location: nid=5
dev.pcm.2.%driver: pcm
dev.pcm.2.%desc: Intel Panther Point (HDMI/DP 8ch)
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 65536
dev.pcm.1.rec.vchanformat: s16le:2.0
dev.pcm.1.rec.vchanrate: 48000
dev.pcm.1.rec.vchanmode: fixed
dev.pcm.1.rec.vchans: 1
dev.pcm.1.rec.autosrc: 2
dev.pcm.1.rec.32bit: 24
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.play.vchanrate: 48000
dev.pcm.1.play.vchanmode: fixed
dev.pcm.1.play.vchans: 9
dev.pcm.1.play.32bit: 24
dev.pcm.1.%parent: hdaa0
dev.pcm.1.%pnpinfo: 
dev.pcm.1.%location: nid=21,18
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Realtek ALC269 (Analog)
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 65536
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.autosrc: 2
dev.pcm.0.rec.32bit: 24
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.32bit: 24
dev.pcm.0.%parent: hdaa0
dev.pcm.0.%pnpinfo: 
dev.pcm.0.%location: nid=20,24
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: Realtek ALC269 (Analog)
dev.pcm.%parent: 


@x230a:~ # sysctl dev.hdaa
dev.hdaa.1.reconfig: 0
dev.hdaa.1.gpo_config: 
dev.hdaa.1.gpo_state: 
dev.hdaa.1.gpio_config: 
dev.hdaa.1.gpio_state: 
dev.hdaa.1.gpi_state: 
dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.1.nid8: vendor widget [DISABLED]
 Widget cap: 0x00f0

dev.hdaa.1.nid7_original: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid7_config: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid7: pin: Digital-out (Jack)
 Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
Association: 2 (0x0001)
Pin cap: 0x0994 PDC OUT HDMI DP HBR
 Pin config: 0x18560030 as=3 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
Pin control: 0x0040 OUT
 Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 1
  + <- nid=4 [audio output]

dev.hdaa.1.nid6_original: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid6_config: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid6: pin: Digital-out (Jack)
 Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
Association: 1 (0x0001)
Pin cap: 0x0994 PDC OUT HDMI DP HBR
 Pin config: 0x18560020 as=2 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
Pin control: 0x0040 OUT
 Output amp: 0x8000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 1
  + <- nid=3 [audio output]

dev.hdaa.1.nid5_original: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack 
ctype=Digital loc=0x18 color=Unknown misc=0
dev.hdaa.1.nid5_config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack 

Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-02 Thread Jakob Alvermark

On 10/1/18 6:43 PM, Rodney W. Grimes wrote:

Hi

While sound work out of the box (with headphone switching) on the 1-2 year
older Latitude 7270, it does not on my new machine.

The internal speaker works fine. If I plug in external speakers in the
headphone jack, sound still goes to the internal speaker while a very load
buzz comes from the external speakers.

Do we have a solution for this?

I do not believe we have anything that detects stuff plugged into
and removed from the newer sound stuff that needs switching to
change from internal to external speakers.

I think you need to do what I have to do when I plug in external
speakers on my thinkpad x230:
sysctl hw.snd.default_unit=1

And when I unplug them I have to do:
sysctl hw.snd.default_unit=0

to switch back to the internal speakers.



Hi Rod,


Can you post the output of 'sysctl dev.pcm' and 'sysctl dev.hdaa'


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-01 Thread Jakob Alvermark

On 10/1/18 10:56 PM, Johannes Lundberg wrote:

On Mon, Oct 1, 2018 at 8:37 PM Jakob Alvermark  wrote:


On 10/1/18 5:57 PM, Johannes Lundberg wrote:

Hi

While sound work out of the box (with headphone switching) on the 1-2

year

older Latitude 7270, it does not on my new machine.

The internal speaker works fine. If I plug in external speakers in the
headphone jack, sound still goes to the internal speaker while a very

load

buzz comes from the external speakers.

Do we have a solution for this?

# cat /dev/sndstat
Installed devices:
pcm0:  (play/rec) default
pcm1:  (play)
pcm2:  (play)
No devices installed from userspace.

# sysctl hw.snd
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2009061500/amd64
hw.snd.default_auto: 1
hw.snd.verbose: 0
hw.snd.vpc_mixer_bypass: 1
hw.snd.feeder_rate_quality: 1
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_eq_presets:
PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.basename_clone: 1
hw.snd.compat_linux_mmap: 0
hw.snd.syncdelay: -1
hw.snd.usefrags: 0
hw.snd.vpc_reset: 0
hw.snd.vpc_0db: 45
hw.snd.vpc_autoreset: 1
hw.snd.timeout: 5
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_matrix: 1
hw.snd.report_soft_formats: 1

# sysctl dev.pcm
dev.pcm.2.bitperfect: 0
dev.pcm.2.buffersize: 65536
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.2.play.vchanrate: 48000
dev.pcm.2.play.vchanmode: passthrough
dev.pcm.2.play.vchans: 1
dev.pcm.2.play.32bit: 24
dev.pcm.2.%parent: hdaa1
dev.pcm.2.%pnpinfo:
dev.pcm.2.%location: nid=3
dev.pcm.2.%driver: pcm
dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 65536
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.play.vchanrate: 48000
dev.pcm.1.play.vchanmode: fixed
dev.pcm.1.play.vchans: 1
dev.pcm.1.play.32bit: 24
dev.pcm.1.%parent: hdaa0
dev.pcm.1.%pnpinfo:
dev.pcm.1.%location: nid=33
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 65536
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.autosrc: 2
dev.pcm.0.rec.32bit: 24
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchans: 2
dev.pcm.0.play.32bit: 24
dev.pcm.0.%parent: hdaa0
dev.pcm.0.%pnpinfo:
dev.pcm.0.%location: nid=20,18
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
dev.pcm.%parent:


You could try

sysctl dev.hdaa.0.nid33_config="as=1 seq=15 device=Headphones"

sysctl dev.hdaa.0.reconfig=1


It should result in you having only one pcm device for the two outputs
and it should switch from

internal to external when you plug in the external speakers and vice versa.

To make it permanent put 'hint.hdaa.0.nid33.config="as=1 seq=15
device=Headphones"' in your loader.conf


The loud buzz is a bit worrying, it could be related to the problem I
have been having, where I got strange sound

when using headphones on my laptop. I have worked around it by patching
the sound driver, I have kept my local

patch for years.



With that hint it does turn off the internal speakers but I can hear
nothing in my headphones. Turning the volume to 100% I can hear the
playback in my internal speakers at very low volume (with headphones
connected).
The headphones has no buzzing sound, that is only my external speakers and
they only act like that when connect to this laptop (kind of like the buzz
noise you get when the connector touches something (ground?))...



Do the headphones work with this patch?

Index: sys/dev/sound/pci/hda/hdaa.c
===
--- sys/dev/sound/pci/hda/hdaa.c    (revision 339076)
+++ sys/dev/sound/pci/hda/hdaa.c    (working copy)
@@ -5034,11 +5034,13 @@
     pincap = w->wclass.pin.cap;

     /* Disable everything. */
+        /*
     w->wclass.pin.ctrl &= ~(
         HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
         HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
         HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
         HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
+        */

     if (w->enable == 0) {
         /* Pin is unused so left it disabled. */


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-01 Thread Johannes Lundberg
On Mon, Oct 1, 2018 at 8:37 PM Jakob Alvermark  wrote:

> On 10/1/18 5:57 PM, Johannes Lundberg wrote:
> > Hi
> >
> > While sound work out of the box (with headphone switching) on the 1-2
> year
> > older Latitude 7270, it does not on my new machine.
> >
> > The internal speaker works fine. If I plug in external speakers in the
> > headphone jack, sound still goes to the internal speaker while a very
> load
> > buzz comes from the external speakers.
> >
> > Do we have a solution for this?
> >
> > # cat /dev/sndstat
> > Installed devices:
> > pcm0:  (play/rec) default
> > pcm1:  (play)
> > pcm2:  (play)
> > No devices installed from userspace.
> >
> > # sysctl hw.snd
> > hw.snd.maxautovchans: 16
> > hw.snd.default_unit: 0
> > hw.snd.version: 2009061500/amd64
> > hw.snd.default_auto: 1
> > hw.snd.verbose: 0
> > hw.snd.vpc_mixer_bypass: 1
> > hw.snd.feeder_rate_quality: 1
> > hw.snd.feeder_rate_round: 25
> > hw.snd.feeder_rate_max: 2016000
> > hw.snd.feeder_rate_min: 1
> > hw.snd.feeder_rate_polyphase_max: 183040
> > hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
> > hw.snd.feeder_eq_exact_rate: 0
> > hw.snd.feeder_eq_presets:
> > PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
> > hw.snd.basename_clone: 1
> > hw.snd.compat_linux_mmap: 0
> > hw.snd.syncdelay: -1
> > hw.snd.usefrags: 0
> > hw.snd.vpc_reset: 0
> > hw.snd.vpc_0db: 45
> > hw.snd.vpc_autoreset: 1
> > hw.snd.timeout: 5
> > hw.snd.latency_profile: 1
> > hw.snd.latency: 5
> > hw.snd.report_soft_matrix: 1
> > hw.snd.report_soft_formats: 1
> >
> > # sysctl dev.pcm
> > dev.pcm.2.bitperfect: 0
> > dev.pcm.2.buffersize: 65536
> > dev.pcm.2.play.vchanformat: s16le:2.0
> > dev.pcm.2.play.vchanrate: 48000
> > dev.pcm.2.play.vchanmode: passthrough
> > dev.pcm.2.play.vchans: 1
> > dev.pcm.2.play.32bit: 24
> > dev.pcm.2.%parent: hdaa1
> > dev.pcm.2.%pnpinfo:
> > dev.pcm.2.%location: nid=3
> > dev.pcm.2.%driver: pcm
> > dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
> > dev.pcm.1.bitperfect: 0
> > dev.pcm.1.buffersize: 65536
> > dev.pcm.1.play.vchanformat: s16le:2.0
> > dev.pcm.1.play.vchanrate: 48000
> > dev.pcm.1.play.vchanmode: fixed
> > dev.pcm.1.play.vchans: 1
> > dev.pcm.1.play.32bit: 24
> > dev.pcm.1.%parent: hdaa0
> > dev.pcm.1.%pnpinfo:
> > dev.pcm.1.%location: nid=33
> > dev.pcm.1.%driver: pcm
> > dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
> > dev.pcm.0.bitperfect: 0
> > dev.pcm.0.buffersize: 65536
> > dev.pcm.0.rec.vchanformat: s16le:2.0
> > dev.pcm.0.rec.vchanrate: 48000
> > dev.pcm.0.rec.vchanmode: fixed
> > dev.pcm.0.rec.vchans: 1
> > dev.pcm.0.rec.autosrc: 2
> > dev.pcm.0.rec.32bit: 24
> > dev.pcm.0.play.vchanformat: s16le:2.0
> > dev.pcm.0.play.vchanrate: 48000
> > dev.pcm.0.play.vchanmode: fixed
> > dev.pcm.0.play.vchans: 2
> > dev.pcm.0.play.32bit: 24
> > dev.pcm.0.%parent: hdaa0
> > dev.pcm.0.%pnpinfo:
> > dev.pcm.0.%location: nid=20,18
> > dev.pcm.0.%driver: pcm
> > dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
> > dev.pcm.%parent:
>
>
> You could try
>
> sysctl dev.hdaa.0.nid33_config="as=1 seq=15 device=Headphones"
>
> sysctl dev.hdaa.0.reconfig=1
>
>
> It should result in you having only one pcm device for the two outputs
> and it should switch from
>
> internal to external when you plug in the external speakers and vice versa.
>
> To make it permanent put 'hint.hdaa.0.nid33.config="as=1 seq=15
> device=Headphones"' in your loader.conf
>
>
> The loud buzz is a bit worrying, it could be related to the problem I
> have been having, where I got strange sound
>
> when using headphones on my laptop. I have worked around it by patching
> the sound driver, I have kept my local
>
> patch for years.
>
>
With that hint it does turn off the internal speakers but I can hear
nothing in my headphones. Turning the volume to 100% I can hear the
playback in my internal speakers at very low volume (with headphones
connected).
The headphones has no buzzing sound, that is only my external speakers and
they only act like that when connect to this laptop (kind of like the buzz
noise you get when the connector touches something (ground?))...


> Jakob
>
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-01 Thread Jakob Alvermark

On 10/1/18 5:57 PM, Johannes Lundberg wrote:

Hi

While sound work out of the box (with headphone switching) on the 1-2 year
older Latitude 7270, it does not on my new machine.

The internal speaker works fine. If I plug in external speakers in the
headphone jack, sound still goes to the internal speaker while a very load
buzz comes from the external speakers.

Do we have a solution for this?

# cat /dev/sndstat
Installed devices:
pcm0:  (play/rec) default
pcm1:  (play)
pcm2:  (play)
No devices installed from userspace.

# sysctl hw.snd
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2009061500/amd64
hw.snd.default_auto: 1
hw.snd.verbose: 0
hw.snd.vpc_mixer_bypass: 1
hw.snd.feeder_rate_quality: 1
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_eq_presets:
PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.basename_clone: 1
hw.snd.compat_linux_mmap: 0
hw.snd.syncdelay: -1
hw.snd.usefrags: 0
hw.snd.vpc_reset: 0
hw.snd.vpc_0db: 45
hw.snd.vpc_autoreset: 1
hw.snd.timeout: 5
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_matrix: 1
hw.snd.report_soft_formats: 1

# sysctl dev.pcm
dev.pcm.2.bitperfect: 0
dev.pcm.2.buffersize: 65536
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.2.play.vchanrate: 48000
dev.pcm.2.play.vchanmode: passthrough
dev.pcm.2.play.vchans: 1
dev.pcm.2.play.32bit: 24
dev.pcm.2.%parent: hdaa1
dev.pcm.2.%pnpinfo:
dev.pcm.2.%location: nid=3
dev.pcm.2.%driver: pcm
dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 65536
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.play.vchanrate: 48000
dev.pcm.1.play.vchanmode: fixed
dev.pcm.1.play.vchans: 1
dev.pcm.1.play.32bit: 24
dev.pcm.1.%parent: hdaa0
dev.pcm.1.%pnpinfo:
dev.pcm.1.%location: nid=33
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 65536
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.autosrc: 2
dev.pcm.0.rec.32bit: 24
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchans: 2
dev.pcm.0.play.32bit: 24
dev.pcm.0.%parent: hdaa0
dev.pcm.0.%pnpinfo:
dev.pcm.0.%location: nid=20,18
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
dev.pcm.%parent:



You could try

sysctl dev.hdaa.0.nid33_config="as=1 seq=15 device=Headphones"

sysctl dev.hdaa.0.reconfig=1


It should result in you having only one pcm device for the two outputs 
and it should switch from


internal to external when you plug in the external speakers and vice versa.

To make it permanent put 'hint.hdaa.0.nid33.config="as=1 seq=15 
device=Headphones"' in your loader.conf



The loud buzz is a bit worrying, it could be related to the problem I 
have been having, where I got strange sound


when using headphones on my laptop. I have worked around it by patching 
the sound driver, I have kept my local


patch for years.


Jakob

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-01 Thread Johannes Lundberg
On Mon, Oct 1, 2018 at 5:43 PM Rodney W. Grimes <
freebsd-...@pdx.rh.cn85.dnsmgr.net> wrote:

> > Hi
> >
> > While sound work out of the box (with headphone switching) on the 1-2
> year
> > older Latitude 7270, it does not on my new machine.
> >
> > The internal speaker works fine. If I plug in external speakers in the
> > headphone jack, sound still goes to the internal speaker while a very
> load
> > buzz comes from the external speakers.
> >
> > Do we have a solution for this?
>
> I do not believe we have anything that detects stuff plugged into
> and removed from the newer sound stuff that needs switching to
> change from internal to external speakers.
>
> I think you need to do what I have to do when I plug in external
> speakers on my thinkpad x230:
> sysctl hw.snd.default_unit=1
>
> And when I unplug them I have to do:
> sysctl hw.snd.default_unit=0
>
> to switch back to the internal speakers.
>
>
Thanks for the tips. I will try that.

But, I think there is also something more serious with this. While pulse
audio clients (firefox) seem to play fine, Minecraft which uses OpenAL,
produces crackling noises and eventually crash Minecraft with OpenAL being
the culprit...

>
> > # cat /dev/sndstat
> > Installed devices:
> > pcm0:  (play/rec) default
> > pcm1:  (play)
> > pcm2:  (play)
> > No devices installed from userspace.
> >
> > # sysctl hw.snd
> > hw.snd.maxautovchans: 16
> > hw.snd.default_unit: 0
> > hw.snd.version: 2009061500/amd64
> > hw.snd.default_auto: 1
> > hw.snd.verbose: 0
> > hw.snd.vpc_mixer_bypass: 1
> > hw.snd.feeder_rate_quality: 1
> > hw.snd.feeder_rate_round: 25
> > hw.snd.feeder_rate_max: 2016000
> > hw.snd.feeder_rate_min: 1
> > hw.snd.feeder_rate_polyphase_max: 183040
> > hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
> > hw.snd.feeder_eq_exact_rate: 0
> > hw.snd.feeder_eq_presets:
> > PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
> > hw.snd.basename_clone: 1
> > hw.snd.compat_linux_mmap: 0
> > hw.snd.syncdelay: -1
> > hw.snd.usefrags: 0
> > hw.snd.vpc_reset: 0
> > hw.snd.vpc_0db: 45
> > hw.snd.vpc_autoreset: 1
> > hw.snd.timeout: 5
> > hw.snd.latency_profile: 1
> > hw.snd.latency: 5
> > hw.snd.report_soft_matrix: 1
> > hw.snd.report_soft_formats: 1
> >
> > # sysctl dev.pcm
> > dev.pcm.2.bitperfect: 0
> > dev.pcm.2.buffersize: 65536
> > dev.pcm.2.play.vchanformat: s16le:2.0
> > dev.pcm.2.play.vchanrate: 48000
> > dev.pcm.2.play.vchanmode: passthrough
> > dev.pcm.2.play.vchans: 1
> > dev.pcm.2.play.32bit: 24
> > dev.pcm.2.%parent: hdaa1
> > dev.pcm.2.%pnpinfo:
> > dev.pcm.2.%location: nid=3
> > dev.pcm.2.%driver: pcm
> > dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
> > dev.pcm.1.bitperfect: 0
> > dev.pcm.1.buffersize: 65536
> > dev.pcm.1.play.vchanformat: s16le:2.0
> > dev.pcm.1.play.vchanrate: 48000
> > dev.pcm.1.play.vchanmode: fixed
> > dev.pcm.1.play.vchans: 1
> > dev.pcm.1.play.32bit: 24
> > dev.pcm.1.%parent: hdaa0
> > dev.pcm.1.%pnpinfo:
> > dev.pcm.1.%location: nid=33
> > dev.pcm.1.%driver: pcm
> > dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
> > dev.pcm.0.bitperfect: 0
> > dev.pcm.0.buffersize: 65536
> > dev.pcm.0.rec.vchanformat: s16le:2.0
> > dev.pcm.0.rec.vchanrate: 48000
> > dev.pcm.0.rec.vchanmode: fixed
> > dev.pcm.0.rec.vchans: 1
> > dev.pcm.0.rec.autosrc: 2
> > dev.pcm.0.rec.32bit: 24
> > dev.pcm.0.play.vchanformat: s16le:2.0
> > dev.pcm.0.play.vchanrate: 48000
> > dev.pcm.0.play.vchanmode: fixed
> > dev.pcm.0.play.vchans: 2
> > dev.pcm.0.play.32bit: 24
> > dev.pcm.0.%parent: hdaa0
> > dev.pcm.0.%pnpinfo:
> > dev.pcm.0.%location: nid=20,18
> > dev.pcm.0.%driver: pcm
> > dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
> > dev.pcm.%parent:
> > ___
> > freebsd-current@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscr...@freebsd.org"
> >
>
> --
> Rod Grimes
> rgri...@freebsd.org
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Sound issues with Dell Latitude 7490 (kabylake)

2018-10-01 Thread Rodney W. Grimes
> Hi
> 
> While sound work out of the box (with headphone switching) on the 1-2 year
> older Latitude 7270, it does not on my new machine.
> 
> The internal speaker works fine. If I plug in external speakers in the
> headphone jack, sound still goes to the internal speaker while a very load
> buzz comes from the external speakers.
> 
> Do we have a solution for this?

I do not believe we have anything that detects stuff plugged into
and removed from the newer sound stuff that needs switching to
change from internal to external speakers.

I think you need to do what I have to do when I plug in external
speakers on my thinkpad x230:
sysctl hw.snd.default_unit=1

And when I unplug them I have to do:
sysctl hw.snd.default_unit=0

to switch back to the internal speakers.

> 
> # cat /dev/sndstat
> Installed devices:
> pcm0:  (play/rec) default
> pcm1:  (play)
> pcm2:  (play)
> No devices installed from userspace.
> 
> # sysctl hw.snd
> hw.snd.maxautovchans: 16
> hw.snd.default_unit: 0
> hw.snd.version: 2009061500/amd64
> hw.snd.default_auto: 1
> hw.snd.verbose: 0
> hw.snd.vpc_mixer_bypass: 1
> hw.snd.feeder_rate_quality: 1
> hw.snd.feeder_rate_round: 25
> hw.snd.feeder_rate_max: 2016000
> hw.snd.feeder_rate_min: 1
> hw.snd.feeder_rate_polyphase_max: 183040
> hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
> hw.snd.feeder_eq_exact_rate: 0
> hw.snd.feeder_eq_presets:
> PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
> hw.snd.basename_clone: 1
> hw.snd.compat_linux_mmap: 0
> hw.snd.syncdelay: -1
> hw.snd.usefrags: 0
> hw.snd.vpc_reset: 0
> hw.snd.vpc_0db: 45
> hw.snd.vpc_autoreset: 1
> hw.snd.timeout: 5
> hw.snd.latency_profile: 1
> hw.snd.latency: 5
> hw.snd.report_soft_matrix: 1
> hw.snd.report_soft_formats: 1
> 
> # sysctl dev.pcm
> dev.pcm.2.bitperfect: 0
> dev.pcm.2.buffersize: 65536
> dev.pcm.2.play.vchanformat: s16le:2.0
> dev.pcm.2.play.vchanrate: 48000
> dev.pcm.2.play.vchanmode: passthrough
> dev.pcm.2.play.vchans: 1
> dev.pcm.2.play.32bit: 24
> dev.pcm.2.%parent: hdaa1
> dev.pcm.2.%pnpinfo:
> dev.pcm.2.%location: nid=3
> dev.pcm.2.%driver: pcm
> dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
> dev.pcm.1.bitperfect: 0
> dev.pcm.1.buffersize: 65536
> dev.pcm.1.play.vchanformat: s16le:2.0
> dev.pcm.1.play.vchanrate: 48000
> dev.pcm.1.play.vchanmode: fixed
> dev.pcm.1.play.vchans: 1
> dev.pcm.1.play.32bit: 24
> dev.pcm.1.%parent: hdaa0
> dev.pcm.1.%pnpinfo:
> dev.pcm.1.%location: nid=33
> dev.pcm.1.%driver: pcm
> dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
> dev.pcm.0.bitperfect: 0
> dev.pcm.0.buffersize: 65536
> dev.pcm.0.rec.vchanformat: s16le:2.0
> dev.pcm.0.rec.vchanrate: 48000
> dev.pcm.0.rec.vchanmode: fixed
> dev.pcm.0.rec.vchans: 1
> dev.pcm.0.rec.autosrc: 2
> dev.pcm.0.rec.32bit: 24
> dev.pcm.0.play.vchanformat: s16le:2.0
> dev.pcm.0.play.vchanrate: 48000
> dev.pcm.0.play.vchanmode: fixed
> dev.pcm.0.play.vchans: 2
> dev.pcm.0.play.32bit: 24
> dev.pcm.0.%parent: hdaa0
> dev.pcm.0.%pnpinfo:
> dev.pcm.0.%location: nid=20,18
> dev.pcm.0.%driver: pcm
> dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
> dev.pcm.%parent:
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
> 

-- 
Rod Grimes rgri...@freebsd.org
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Sound issues with Dell Latitude 7490 (kabylake)

2018-10-01 Thread Johannes Lundberg
Hi

While sound work out of the box (with headphone switching) on the 1-2 year
older Latitude 7270, it does not on my new machine.

The internal speaker works fine. If I plug in external speakers in the
headphone jack, sound still goes to the internal speaker while a very load
buzz comes from the external speakers.

Do we have a solution for this?

# cat /dev/sndstat
Installed devices:
pcm0:  (play/rec) default
pcm1:  (play)
pcm2:  (play)
No devices installed from userspace.

# sysctl hw.snd
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2009061500/amd64
hw.snd.default_auto: 1
hw.snd.verbose: 0
hw.snd.vpc_mixer_bypass: 1
hw.snd.feeder_rate_quality: 1
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_eq_presets:
PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.basename_clone: 1
hw.snd.compat_linux_mmap: 0
hw.snd.syncdelay: -1
hw.snd.usefrags: 0
hw.snd.vpc_reset: 0
hw.snd.vpc_0db: 45
hw.snd.vpc_autoreset: 1
hw.snd.timeout: 5
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_matrix: 1
hw.snd.report_soft_formats: 1

# sysctl dev.pcm
dev.pcm.2.bitperfect: 0
dev.pcm.2.buffersize: 65536
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.2.play.vchanrate: 48000
dev.pcm.2.play.vchanmode: passthrough
dev.pcm.2.play.vchans: 1
dev.pcm.2.play.32bit: 24
dev.pcm.2.%parent: hdaa1
dev.pcm.2.%pnpinfo:
dev.pcm.2.%location: nid=3
dev.pcm.2.%driver: pcm
dev.pcm.2.%desc: Intel Kabylake (HDMI/DP 8ch)
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 65536
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.play.vchanrate: 48000
dev.pcm.1.play.vchanmode: fixed
dev.pcm.1.play.vchans: 1
dev.pcm.1.play.32bit: 24
dev.pcm.1.%parent: hdaa0
dev.pcm.1.%pnpinfo:
dev.pcm.1.%location: nid=33
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Realtek ALC256 (Front Analog Headphones)
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 65536
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.autosrc: 2
dev.pcm.0.rec.32bit: 24
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchans: 2
dev.pcm.0.play.32bit: 24
dev.pcm.0.%parent: hdaa0
dev.pcm.0.%pnpinfo:
dev.pcm.0.%location: nid=20,18
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: Realtek ALC256 (Internal Analog)
dev.pcm.%parent:
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"