Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (3h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-10 02:11:53 UTC Now

2024-04-26 00:59:08 UTC MAIN commitmail json YAML

Return early if PM data is not available.

This avoids random crashes on my Powerbook when using the mouse or keyboard.

The same was needed for the Powerbook 5xx/Duos (compile tested only).

XXX pullup-10, pullup-9, pullup-8.

(nat)

2024-03-13 08:13:56 UTC MAIN commitmail json YAML

Mention ascaudio(4).

(nat)

2024-03-13 07:55:29 UTC MAIN commitmail json YAML

Apple Sound Chip audio support for 68k Macintoshoes.

This provies a sound device and support for wsbell(4).

Manual page to be added in a followup commit.

As posted to port-mac68k.

(nat)

2024-03-13 07:22:16 UTC MAIN commitmail json YAML

Bluetooth low energy - A beginning at least.

This was the start of support for low energy bluetooth support that I have
not as yet completed.

I'm committing this as it gives the hci defines for an impementation in NetBSD.

(nat)

2024-02-27 16:07:02 UTC MAIN commitmail json YAML

Use proper clockframe size for those platforms that require it.

XXX This is a tempory measure, better to fix clock interrupts to take the
    common clockframe size.

OK thorpej@.

(nat)

2024-01-22 06:28:49 UTC MAIN commitmail json YAML

Missing '\'

Many thnanks rillig@

XXX-pullup10.

(nat)

2023-10-17 02:46:57 UTC MAIN commitmail json YAML

Improve hid matching.

It now matches all kinds (application/physical/logical) in the hid
collection.

Patch from PR applied.

Addresses PR/46868.

Ok skrll@

(nat)

2023-08-08 17:31:13 UTC MAIN commitmail json YAML

Avoid adding another member to the softc and use sc_flags instead.

NFCI.

(nat)

2023-08-08 16:32:39 UTC MAIN commitmail json YAML

Add a flag for output only devices and attachments.

It is necessary to skip the test for the device as output only attached
devices lack the ability for the device to be probed - such as the 1602 lcd
module.

(nat)

2023-08-08 16:29:00 UTC MAIN commitmail json YAML

2023-07-21 02:42:54 UTC MAIN commitmail json YAML

Add missing dot.

(nat)

2023-07-21 02:16:20 UTC MAIN commitmail json YAML

Mention changes to bta2dpd(8).

(nat)

2023-07-21 02:11:18 UTC MAIN commitmail json YAML

Reorder for readability.

No functional change intended.

XXX pullup-10.

(nat)

2023-07-20 13:31:31 UTC MAIN commitmail json YAML

Fix formatting.

XXX pullup-10.

(nat)

2023-07-20 13:28:48 UTC MAIN commitmail json YAML

Add BUGS section to manual page.

This notes the problems with playback from file on certain devices.

XXX pullup-10

(nat)

2023-07-20 12:33:28 UTC MAIN commitmail json YAML

Add thottling when playing from file.

This avoids rapid playback when playing from file with affected devices.

Playback using pad(4) is still preferred ad gives a better result.
Playback from pad(4) is unaffected by this change.

XXX pullup-10.

(nat)

2023-06-22 01:35:12 UTC MAIN commitmail json YAML

Bump date for previous commit.

XXX pullup-10.

(nat)

2023-06-20 03:24:08 UTC MAIN commitmail json YAML

Manual page fixups.

Fix EXAMPLES section.

Use correct flags when used with pad(4).
Use correct encoding format (sinear_le).

XXX pullup-10.

(nat)

2023-05-27 14:51:47 UTC MAIN commitmail json YAML

Revert to previous.

This change broke the intention of recent changes to pad(4).

The solution to address PR/57436 must be done in bta2dpd(8).

(nat)

2023-05-26 12:10:13 UTC MAIN commitmail json YAML

Fix previous.

The previous commit was misleading due to the flag names used.

The rationale for this change is that it is ok to return EAGAIN on first
read as playback has not started.  Then it shoud wait on every subsequent read.

This is what makes the high precsision throttling of pad(4), for which these
degree of fine-grained sleeps are not possible in userland.  This is a
requirement of users of pad(4) such as bta2dpd(8).

(nat)

2023-05-26 10:39:56 UTC MAIN commitmail json YAML

Fix logic for timing.

Addresses PR/57436.

XXX pullup-10.

(nat)

2023-05-22 22:36:53 UTC MAIN commitmail json YAML

Use the offset in mmap calculations.

It fixes wsfb(4) when used with intelfb(4).

Ok riastradh@

XXX pullup-10

(nat)

2023-02-18 13:28:05 UTC MAIN commitmail json YAML

Introduce a flag to disable PDMA when writing.

The use of pdma when writing would always cause a panic on my Powerbook 160,
possibly others as well.

As posted to tech-kern.

(nat)

2023-02-18 13:17:45 UTC MAIN commitmail json YAML

Honor the XS_CTL_POLL flag and fallback to polled io instead of PDMA.

As posted to tech-kern.

(nat)

2022-12-26 01:05:36 UTC MAIN commitmail json YAML

Sanity check and set the framebuffer length if necessary.

Addresses PR 57126.

(nat)

2022-12-22 23:06:11 UTC MAIN commitmail json YAML

Fix condition for ending the pacet read loop.

len is unsigned 16 bit so testing for less than zero is not valid.

(nat)

2022-12-22 22:39:20 UTC MAIN commitmail json YAML

Remove unused commented out code.
Remove unintentional stray debug printfs.
Fix DSE_DEBUG build.

(nat)

2022-12-22 11:10:52 UTC MAIN commitmail json YAML

Mention dse.4

(nat)

2022-12-22 11:05:55 UTC MAIN commitmail json YAML

2022-09-06 02:31:08 UTC MAIN commitmail json YAML

Don't hold a spin lock entering usbd_transfer.

This avoids a crash found with LOCKDEBUG.

(nat)

2022-09-06 02:28:35 UTC MAIN commitmail json YAML

Do a full screen update upon vt switch.

(nat)

2022-09-06 02:26:11 UTC MAIN commitmail json YAML

Ensure the device is fully initialized before starting the update thread.

(nat)

2022-09-06 02:23:50 UTC MAIN commitmail json YAML

Don't throttle the frame rate.

Throttling of the frame rate is no longer necessary as most screen updates are
now partial updates.

(nat)

2022-09-06 02:20:17 UTC MAIN commitmail json YAML

Finally fix the blitting function.

This means better performance for mostly static displays.
Full screen updates are still done five times a second.

Introduce a new variable sc_clear to force a full update.

(nat)

2022-08-17 23:36:48 UTC MAIN commitmail json YAML

Revert to previous as the atf tests are still failing.

(nat)

2022-08-17 12:35:11 UTC MAIN commitmail json YAML

Use existing address when setting parameters.

No need to specify address every time when setting broadcast address or
netmask.

Hopefully successfully re addresses PR bin/10911.

(nat)

2022-08-16 22:31:24 UTC MAIN commitmail json YAML

Revert to previous as atf tests were failing.

(nat)

2022-08-16 10:47:11 UTC MAIN commitmail json YAML

No need address every time to specify broadcast and netmask.

Previously ifconfig would fail silently.

Addresses PR bin/10911.

(nat)

2022-07-06 06:25:24 UTC MAIN commitmail json YAML

Cosmetic changes.  No functional change intended.

(nat)

2022-07-06 06:00:40 UTC MAIN commitmail json YAML

Add support for HXN variants from openbsd.

(nat)

2021-11-13 20:59:13 UTC MAIN commitmail json YAML

Better display in monochrome.

(nat)

2021-09-17 13:02:52 UTC MAIN commitmail json YAML

Sprinkle a little delay.

(nat)

2021-09-17 13:00:20 UTC MAIN commitmail json YAML

Initialize firmware mailbox counter when firmware is reset.

(nat)

2021-09-17 12:58:31 UTC MAIN commitmail json YAML

Serialize sending of firmware commands to device.

(nat)

2021-09-17 12:55:10 UTC MAIN commitmail json YAML

Use urtwn_delay_ms were possibile.

NFC intended.

(nat)

2021-09-16 02:53:28 UTC MAIN commitmail json YAML

Describe how to obtain debugging information from vchiq(4).

Ok nia@

(nat)

2021-09-12 03:58:52 UTC MAIN commitmail json YAML

Fix build for uniprocessor.

(nat)

2021-03-07 13:09:43 UTC MAIN commitmail json YAML

Intoduce "-n" switch.

Running btat2dpd with "-n" especially for use with pad(4) will stop bta2dpd
from exiting upon a read error from pad(4) devices.

This is to compenstate for the behaviour in NetBSD current that pad(4) will
no longer output 0's when its corresponding audio(4) device is not active.

I believe that this new pad(4) behaviour is not present in -9 and -8.

While here I've improved its function as a daemon and it should reconnect to
bluetooth speakers when they are disconnected/reconnected.

Reported and tested by reinoud@ and maya@

(nat)

2021-03-02 22:21:38 UTC MAIN commitmail json YAML

Opps....Remove irrelavent debug code and don't free_m before IFQ_DEQUEUE().

Identified and reported by Patrick Welche and remedy found by Martin Husemann.

(nat)

2021-02-26 01:38:44 UTC MAIN commitmail json YAML

Also free assocated mbufs.

(nat)

2021-01-02 03:41:07 UTC MAIN commitmail json YAML

Update the debug set for testpat(6).

(nat)

2021-01-02 03:24:02 UTC MAIN commitmail json YAML

Add testpat(6) to the games set.

(nat)

2021-01-02 03:21:39 UTC MAIN commitmail json YAML

Add testpat(6) to games.

Testpat displays a test pattern in curses(3).

(nat)

2020-10-07 19:06:50 UTC MAIN commitmail json YAML

Eddie Van Halen, co-founder of Van Halen dies.

(nat)

2020-10-04 06:15:55 UTC MAIN commitmail json YAML

Ensure event_thread stays in event loop upon creation.

(nat)

2020-05-31 06:17:24 UTC MAIN commitmail json YAML

Avoid running of the end of the array if a file cannot be opened.

Found by plunky@.

(nat)

2020-04-27 23:35:40 UTC MAIN commitmail json YAML

Remove inappropriate place for __predict_false.

Ok mrg@ maya@.

(nat)

2020-04-27 23:05:31 UTC MAIN commitmail json YAML

Skip pfil_run_hooks if no packet filter configured in kernel.

(nat)

2020-04-27 07:45:57 UTC phil-wifi commitmail json YAML

Pass the error through to the hardware to initialize.

(nat)

2020-04-27 07:40:50 UTC phil-wifi commitmail json YAML

Make ostate reflect the updated state.

(nat)

2020-04-27 07:38:25 UTC phil-wifi commitmail json YAML

Software crypto definitions from FreeBSD.

(nat)

2020-04-27 07:37:01 UTC phil-wifi commitmail json YAML

Fix resource leak in rx/tx free lists.

(nat)

2020-04-27 07:27:35 UTC phil-wifi commitmail json YAML

Skip pfil_run_hooks if no packet filter enabled in the kernel.

(nat)

2020-04-25 14:40:12 UTC phil-wifi commitmail json YAML

Remove configuring 40Mhz channels for now.

Avoid duplicate state transitions in urtwn_newstate.
Avoid changing channel parameters in urtwn_newstate.

Rework of tx desc parameters for all types of packets.

Don't create a percpuq as the stack is not expecting it //XXX not sure

Tested connections to an open 11n network with 8188CUS, 8192CU and 8192EU
usb adaptors.

(nat)

2020-04-25 09:32:16 UTC phil-wifi commitmail json YAML

Compete some more of 11n support.
htcaps and streams values from FreeBSD.

(nat)

2020-04-19 13:57:23 UTC phil-wifi commitmail json YAML

Initial 11n support for urtwn.

Compile tested only... More to come.

(nat)

2020-04-16 17:24:49 UTC phil-wifi commitmail json YAML

2020-04-16 17:18:28 UTC MAIN commitmail json YAML

Correct rx packet count for 8192EU.  Tested OK.

(nat)

2020-04-16 15:33:08 UTC phil-wifi commitmail json YAML

Use if_stat functions.

(nat)

2020-04-16 15:32:24 UTC phil-wifi commitmail json YAML

Pull in <sys/rndsource.h>

(nat)

2020-04-16 15:30:00 UTC phil-wifi commitmail json YAML

2019-09-21 00:01:33 UTC MAIN commitmail json YAML

Fix off by one in sbc encoder.  Test mode transmission and reception
works again.

XXX pullup -8 and -9.

(nat)

2019-05-08 22:01:47 UTC MAIN commitmail json YAML

Sync with reality.

(nat)

2019-03-31 11:44:11 UTC MAIN commitmail json YAML

Opps... Remove extra ')'

(nat)

2019-03-31 11:33:27 UTC MAIN commitmail json YAML

Remove dead code from sbc decoder.

Found by Hans Petter Selasky.

(nat)

2018-06-23 03:18:49 UTC MAIN commitmail json YAML

Add all encoding supported by the mixer.

Addresses PR kern/52585.

(nat)

2018-06-04 01:42:49 UTC MAIN commitmail json YAML

Update fstat for audio(4) and pad(4) devices.

XXX - pullup 8.

Ok christos@.

(nat)

2018-06-01 19:19:54 UTC MAIN commitmail json YAML

Fix support for 8192eu, notably TPLINK TL-WN823NV2, by using the right
registers when setting receiver gain.

Ok christos@.

(nat)

2018-06-01 19:17:04 UTC MAIN commitmail json YAML

Add another register as found on 8192eu.

(nat)

2018-05-28 00:18:06 UTC MAIN commitmail json YAML

2018-05-22 01:35:49 UTC MAIN commitmail json YAML

Using audioctl without the -p switch defaults to the mix ring.  This allows
setting the hardware gain etc.

Update the audio spec in audio.7 to reflect these changes.

Addresses PR kern/52781.

(nat)

2018-05-17 11:35:31 UTC MAIN commitmail json YAML

Fix a typo with sc_out/inports when setting the hardware recording gain on the
mix ring.  Found by mrg@

XXX pullup-8

(nat)

2018-05-15 10:23:03 UTC MAIN commitmail json YAML

Fix over cautious compiler error - setmode may not be initialized.

(nat)

2018-05-15 04:25:25 UTC MAIN commitmail json YAML

Use the correct tag options.

(nat)

2018-05-15 01:07:37 UTC MAIN commitmail json YAML

Update the introduction page to section 7 of the manual noting the audio
spec.

(nat)

2018-05-15 00:54:02 UTC MAIN commitmail json YAML

Add the audio mixer specification to section 7 of the manual.
See posting on tech-kern - "NetBSD Audio Specification 2018."

(nat)

2018-05-15 00:28:00 UTC MAIN commitmail json YAML

Expose the audio_info structure of vchan zero(0) the mix ring to allow
setting the hardware gain and balance via audioctl(1) using the -p 0
switch.

It is not possible to influence the hardware gain/blance from the
audio_info structure of vchans 1 onwards.  It is now possible to return
the audio mixers audio format from the audio_info structure of vchan 0 to
ease applications configuring for mmapped play back.

This is conformant to the audio specification posted on tech-kern see:
"NetBSD Audio Specification 2018"
or audio.7 manual page to be added in a follow up commit.

(nat)

2018-05-15 00:19:08 UTC MAIN commitmail json YAML

Fix numbering of vchan mixer controls to correspond to the vchan number in
use.
This makes the numbering of vchans consistient for audioctl and mixerctl.

(nat)

2018-01-13 10:20:45 UTC MAIN commitmail json YAML

Set size of mtusize before calling getsockopt to obtain mtu size.

(nat)

2018-01-12 04:10:10 UTC MAIN commitmail json YAML

Allow open of audioctl devices whilst audio is open with the mixer
disabled.

XXX pullup -8

(nat)

2018-01-09 04:23:59 UTC MAIN commitmail json YAML

Fix pad on systems with many cores/cpus:

* Introduce a lock to serialize attach/detach of pad devices.
* Forcefully detach children of pad on close.
* Be more carefull in pad_open with regards to config_detach only
  if new instances of the pad device are created and fail to open.

Addresses PR kern/52889.

These changes were developed with and tested by pgoyette@.

(nat)

2018-01-09 04:14:21 UTC MAIN commitmail json YAML

Forcefully detach children of audio instances.

This addresses part of PR kern/52889 as children of pad(4) were not
detaching.

(nat)

2018-01-09 04:10:27 UTC MAIN commitmail json YAML

Rework of play/rec threads to ensure effective use of locks.

Addresses part of PR kern/52889 where the mixing thread would not exit on
audio detach.

(nat)

2018-01-06 23:15:36 UTC MAIN commitmail json YAML

Only signal a pause change on a transition of a pause change.

This addresses a problem found in audio/sox causing high cpu usage.

Path and analysis by Onno van der Linden.

(nat)

2018-01-06 21:16:36 UTC MAIN commitmail json YAML

2017-12-27 00:12:06 UTC MAIN commitmail json YAML

mulaw/alaw_to_linearN macros replaced with individual faster filters.
NFC.

(nat)

2017-12-21 11:52:00 UTC MAIN commitmail json YAML

The reset bit for the analog portion of the codec is bit 28.  As per
Allwinner H3 datasheet.

Ok jmcneill@.

(nat)

2017-12-16 16:09:36 UTC MAIN commitmail json YAML

Replace LINEARN_TO_LINEARN macro with individual optimized functions for
8, 16, 24 and 32 bits linear to linear conversions.

Addresses PR kern/52586.

(nat)

2017-12-16 16:04:20 UTC MAIN commitmail json YAML

Convert double block size of data though the play back filters.  This is
primarily for when audio mixing is disabled to stop inserting silence when
there is data available.

This change should have no effect when mixing is enabled as there is only
1 block of data in the mix ring.

(nat)

2017-12-16 15:58:56 UTC MAIN commitmail json YAML

Allow the hwvc block size to be set to any amount with audio mixing
disabled.

(nat)

2017-12-16 15:56:00 UTC MAIN commitmail json YAML

Only init the mix ring if sc_usemixer is enabled as with mixing set to
false the mix ring is not used.

(nat)

2017-11-28 07:35:27 UTC MAIN commitmail json YAML

Speed up improvements for MIX_FUNC.

As suggested by jmcneill@.

(nat)

2017-11-16 23:43:48 UTC MAIN commitmail json YAML

Use correct combination of mix ring block size and vc playring used low
for signalling the writer or fetching data from the vc play ring filters.

When dealing with the ring buffer sc_mpr.s it is necessary to use the hwvc
or mixring block sizes as they represent the final size of the data to be
played back from the stream vc.

When dealing with sc_pustream when there is play back filters or not one
should use the vc->sc_mpr.blocksize, as this represents the amount of data
before going through play back filters.

This should address PR kern/52685.

(nat)

2017-11-16 23:32:12 UTC MAIN commitmail json YAML

Add vc to debug messages in audio_mix.
Also add debug message when available data in the vc is less than the mix
ring blocksize.  NFC.

(nat)

2017-11-15 04:28:45 UTC MAIN commitmail json YAML

For the virtual stream it is required to insert silence.  As these streams
are not harware streams audio_pint_silence is ineffective.

As audio_mix() was the only consumer of audio_pint_silence it has been
removed along with sc_sil_count - which was only used by this function.

(nat)

2017-11-15 02:13:33 UTC MAIN commitmail json YAML

The harware vc is rounded to a power of two then round_blocksize is called.

This improves playback and makes it possibile to use mmapped audio on usb.

(nat)

2017-11-15 02:02:55 UTC MAIN commitmail json YAML

audio_pint improvements for when audio mixing is disabled.

When audio mixing is disabled there is only the hardware vc the mix ring
is not used.

(nat)

2017-11-15 01:58:48 UTC MAIN commitmail json YAML

Improved audiostartp for when audio mixing is disabled.

(nat)

2017-11-15 01:55:46 UTC MAIN commitmail json YAML

Improved draining function for when the mixer is and is not enabled.

One block of silence is also played in audio drivers using start_output
when draining the hardware, this helps playback of short (less than
blocksize) samples.

(nat)

2017-11-15 01:49:59 UTC MAIN commitmail json YAML

Plug memory leak as the mixer state does not grow or shrink when audio
mixing is disabled.  This avoids triggering a panic also.

(nat)

2017-11-15 01:45:57 UTC MAIN commitmail json YAML

Don't return EIO falsely when dealing with the hardware vc.
Draining of the hardware vc on close is now possible.

(nat)

2017-11-07 09:26:55 UTC MAIN commitmail json YAML

Use mixring blocksizes in the right places when mixer is enabled.

This means that x68k's vs audio works once again with sysctl usemixer=1.

Tested with xm6i.

(nat)

2017-11-07 01:15:43 UTC MAIN commitmail json YAML

Remove 24 bit in a 32 bit container filters.

At present this filter did not work well and has caused problems with
the audio mixer disabled for hdaudio(4).

These filters may return when they are fixed.

(nat)

2017-11-07 01:13:19 UTC MAIN commitmail json YAML

A sysctl is now available to disable the in kernel mixer.
sysctl -w hw.hdafg0.usemixer=0

There currently is a problem draining the last block with the mixer
disabled.  I will fix this in a follow up commit.

AFAIK there will be a problem wiht vs(4) on x68k with the mixer disabled
as the filters for mulaw, alaw and unsigned linear have been removed post
audio mixing changes.

Documentation for this sysctl variable will be made to audio.4 in a follow
up commit.

Ok christos@.

(nat)

2017-11-04 01:50:48 UTC MAIN commitmail json YAML

AU_RING_SIZE -> s.bufsize in audio_initbufs.

(nat)

2017-11-04 01:46:56 UTC MAIN commitmail json YAML

Add AUDIO_ENCODING_SLINEAR to supported encodings.  This allows sb, sbpro
& sb16 to configure with 8-bit precision.

Tested in games/mame with a 486DX emulation.

(nat)

2017-11-03 21:15:18 UTC MAIN commitmail json YAML

Blocksizes sould be rounded to a power of 2 as OSS applications need this.

Tested by martin@.

(nat)

2017-11-03 21:12:44 UTC MAIN commitmail json YAML

Revert to previous.  It is necessary to use the calculated blocksize if
none supplied.

Tested by martin@.

(nat)

2017-11-03 05:31:38 UTC MAIN commitmail json YAML

No need to ratify block size twice as this is done in audio_initbufs.

This is a rework of rev 1.421.

(nat)

2017-11-03 05:09:49 UTC MAIN commitmail json YAML

Calc latency when altering precision, frequency and channels sysctls.

(nat)

2017-11-03 05:07:37 UTC MAIN commitmail json YAML

Allow for block sizes less than hw block size.  This allows for the lowest
possible latency for all precision, sample rate and frequencies.

This is a rework of rev 1.419.

(nat)

2017-11-03 05:04:17 UTC MAIN commitmail json YAML

Use mix ring block size in audio write, startp, and audio drain.

(nat)

2017-11-02 02:08:02 UTC MAIN commitmail json YAML

Revert commit rev 1.419 to audio.c.  This should address PR kern/52685.

This also means that drivers that have a static block size will have more
latency at lower sample rates/precision/channels.  Also audio drivers that
do more than supply rounded blocksizes in their round_blocksize functions
will have to be changed.

(nat)

2017-10-31 21:53:48 UTC MAIN commitmail json YAML

Add padding to gus.c so fields match up when it ts cast to a ad1848_isa
softc for the allocation of hw ring buffers.

Locking fixes as gus KASSERTS / uses the codec locks.

Ok christos@.

(nat)

2017-10-31 21:18:02 UTC MAIN commitmail json YAML

Only allow blocksizes greater or equal to the calculated one.

This should help applications as the blocksize obtained (AUDIO_SET/GETINFO)
will work without stutter.

Ok christos@.

(nat)

2017-10-31 21:13:24 UTC MAIN commitmail json YAML

Move calculation of sc_latency into a function.

The latency of the audio device is updated on attach in the audio auto
config and shown on screen.

Ok christos@.

(nat)

2017-10-31 21:09:27 UTC MAIN commitmail json YAML

round_blocksize is only used for the hardware ring buffer.  All other
buffers (mix ring, streams) are set to be a power of 2.

This allows for consistent latency where a static blocksize is enforced by
the underlying audio device driver.

Ok christos@.

(nat)

2017-10-27 19:00:07 UTC MAIN commitmail json YAML

Document the hw.driverN.latency sysctl variable.

(nat)

2017-10-27 01:34:32 UTC MAIN commitmail json YAML

Independent blocksizes for virtual channels where a static blocksize is
not stipulated by the underlying hw driver.

This improves latency in games esp. when the stream format differs from
the harware format.

OK christos@.

(nat)

2017-10-26 22:45:00 UTC MAIN commitmail json YAML

Ensure that the low/high water marks are at least PREFILL_BLOCKS.

(nat)

2017-10-26 22:38:27 UTC MAIN commitmail json YAML

Add latency sysctl to adjust hw blocksize and hence latency of the mixer.

usage: sysctl -w hw.hdafg0.lantency="value in milliseconds"

It is possible to set the latency of the mixer unless a static blocksize
is configured by the underlying hardware driver (pad, vcaudio on RPI).

Documentation updates to audio.4 will occur in a follow up commit.

OK christos@.  XXX pullup-8.

(nat)

2017-10-02 07:06:15 UTC MAIN commitmail json YAML

Allow maxused to be an odd number of bytes.  This makes single byte
conversions work for the test described in the PR.

Addresses another part of PR kern/52586.

(nat)

2017-10-02 06:06:43 UTC MAIN commitmail json YAML

Improve LINEAR_LINEARN macro - inparticular BE/LE conversions.

Addresses part of PR kern/52586 analyzed and reported by isaki@.

(nat)

2017-10-01 21:49:20 UTC MAIN commitmail json YAML

Ensure proper use of sc_opens (play back) and sc_recopens (recording).
Fix logic for /dev/sound so audiosetinfo is only called once.

These changes are to ensure that init_output/input is only called once for
the respective function play back or recording.  For multiple recording or
plack back streams init_input/output is only called once fot the first
play/rec stream.

This addresses PR kern/52580, PR kern/52581 and PR kern/52582 analyzed and
reported by isaki@.

(nat)

2017-09-26 04:34:59 UTC MAIN commitmail json YAML

Call audio_mix for a third time - thus ensuring there is a block of data
in the mix ring before the audio interrupt occurs.

This addresses the instability seen in the audio atf tests.

(nat)

2017-09-24 23:40:41 UTC MAIN commitmail json YAML

Move play/rec mix ring buffers into a virtual channel sc_mixring.  NFCI.

(nat)

2017-09-03 23:11:19 UTC MAIN commitmail json YAML

Remove references to BlueCore.
Enable XON/XOFF flowcontrol in SLIP layer depending on config response.
Send an acknowlegment packet on timeout/retry.
Compute tx{ack,seq} and rx{ack,seq} according to the specification.

(nat)

2017-09-03 22:54:12 UTC MAIN commitmail json YAML

Fix copyright error.

Ok plunky@.

(nat)

2017-08-27 10:39:18 UTC MAIN commitmail json YAML

Connection state machine improvement upon transition from AVDTP_OPEN to
AVDTP_START/SUSPEND.

(nat)

2017-08-16 21:18:58 UTC MAIN commitmail json YAML

Remove extra newline.

(nat)

2017-08-16 21:09:48 UTC MAIN commitmail json YAML

If ALPS probe fails, send a PMS_RESET.
Restores functionality on a wrong version ALPS touchpad.

Addresses PR kern/52489.

This patch was prepared by/committed on behalf of maya@.

(nat)

2017-08-14 12:51:11 UTC MAIN commitmail json YAML

Apply the sequence number mask to txack.

(nat)

2017-08-14 05:33:30 UTC MAIN commitmail json YAML

Conform to the spec. with regards to acknowlegment packets.  This prevents
the host controller from freezing.

Inmprove communication from inactive to active state.

(nat)

2017-08-14 05:28:23 UTC MAIN commitmail json YAML

Set controller clock based on baud rate.

(nat)

2017-08-11 00:58:37 UTC MAIN commitmail json YAML

Ensure the XMIT flag is cleared before calling bth5_start.

This avoids a panic due to a diagnostic assertion.

(nat)

2017-08-10 15:31:49 UTC MAIN commitmail json YAML

Add bcm43xx bluetooth controller firmware to the lists and update relevant
makefiles.

(nat)

2017-08-10 15:15:48 UTC MAIN commitmail json YAML

Add firmware and license for bcm43430 bluetooth uart interface.
This firmware is used by the Raspberry Pi 3 on-board bluetooth controller.

For additional licensing information, see:
https://github.com/raspberrypi/linux/issues/1325#issuecomment-195560582

(nat)

2017-08-10 13:48:20 UTC MAIN commitmail json YAML

Add bluetooth serial uart devices.

RPI3 on-board bluetooth controller works with the bthfive pseudo-device.

(nat)

2017-08-10 13:40:04 UTC MAIN commitmail json YAML

Update lists for btuart h5 protocol includes.

(nat)

2017-08-10 13:34:29 UTC MAIN commitmail json YAML

Add support for bcm 43xx devices using the btuart h5 protocol.

Currently It will only load 1 firmware image for rpi3.

To use change to the directory containing the firmware BCM4340A1.hcd.
Then issue: btattach -FPi 115200 bcm43xx /dev/ttydevice 921600.

Then you can use the bluetooth device btfive0.

This enables the embedded bluetooth controller on rpi3.

(nat)

2017-08-10 13:25:49 UTC MAIN commitmail json YAML

Report AUXUART fifo size on rpi3 to 1 byte.  This prevents bluetooth
errors using the h5 protocol.

(nat)

2017-08-10 13:22:19 UTC MAIN commitmail json YAML

2017-08-08 22:21:35 UTC MAIN commitmail json YAML

If the harware ring is starved of data...Insert silence into the mix ring
so mix_write can function properly.

(nat)

2017-08-06 10:07:31 UTC MAIN commitmail json YAML

Ensure to call mix write if inserting silence into the hw ring.

Addresses PR kern/52459.

Patch provided and tested by isaki@.

(nat)

2017-08-05 13:34:06 UTC MAIN commitmail json YAML

Reset mixer ports on opening /dev/sound.

This fixes an issue reported on port-arm@ by Brian Buhrow.

(nat)

2017-07-30 00:53:58 UTC MAIN commitmail json YAML

Audio now compiles with WARNS=5, so there is no need to specify WARNS=3.

(nat)

2017-07-30 00:50:52 UTC MAIN commitmail json YAML

The pad module will now compile with WARNS=5.

(nat)

2017-07-30 00:47:48 UTC MAIN commitmail json YAML

2017-07-29 07:30:39 UTC MAIN commitmail json YAML

Audio vchan auto config works again due to the use of a null_filter.

Tested and confirmed working by isaki@.

(nat)

2017-07-28 03:58:54 UTC MAIN commitmail json YAML

Remove dead code from audio open.  Found by isaki@.
Better error handling incase memory for the streams' ringbuffers cannot be
allocated.

Addresses PR kern/52433.

(nat)

2017-07-28 03:29:19 UTC MAIN commitmail json YAML

Remove unused code from audio_set_params.

Addresses PR kern/52434.

(nat)

2017-07-28 02:53:54 UTC MAIN commitmail json YAML

Refactoring of order of auto config combinations.  Most common formats
come first.

Do not exceed AUDIO_MAX_CHANNELS.

Addresses PR kern/52435.

(nat)

2017-07-28 01:36:41 UTC MAIN commitmail json YAML

2017-07-27 23:39:38 UTC MAIN commitmail json YAML

Add a null_filter to help with the audio autoconfig of pmax.

Tested by flxd@.

(nat)

2017-07-25 23:20:57 UTC MAIN commitmail json YAML

Use the correct attachment for dreamcast audio.

Found and tested by Bjorn Johannesson on port-dreamcast.

(nat)

2017-07-25 23:18:04 UTC MAIN commitmail json YAML

Dreamcast audio only supports playback so set it in the props.
This makes dreamcast audio work again.

Tested by Bjorn Johannesson.
cvs: ----------------------------------------------------------------------

(nat)

2017-07-25 13:29:16 UTC MAIN commitmail json YAML

Fix a panic caused by opening pad(4)'s mixer before the corresponding
audio device has attached.

Addresses PR kern/52424.

(nat)

2017-07-03 09:08:35 UTC MAIN commitmail json YAML

As pad devices are now created on demand - pad has to be open for a
corresponding mixer to be available.

(nat)

2017-07-02 13:32:51 UTC MAIN commitmail json YAML

If a particular pad device is opened, ie pad1 then configure and use pad1
if it is not already configured.

This improves scriptability as you will know the particular pad(4) device
you have opened.

pad(4) devices still have a cloning interface if pad device (minor
number 254) is opened it will attach the next free device.  This action
can be repeated.

XXX update MAKEDEV scripts to make /dev/pad the cloning device.

Ok christos@.

(nat)

2017-07-02 05:59:27 UTC MAIN commitmail json YAML

Return early from read if kpause is interrupted by a signal.

(nat)

2017-07-01 23:31:19 UTC MAIN commitmail json YAML

Pad is now clones its device, attaching upon open and detaching upon close.
This means that only one pad device is required in /dev.

The code contains a compile time limit of 128 units.

Ok christos@.

(nat)

2017-07-01 23:27:17 UTC MAIN commitmail json YAML

On a forcefull detach wait for spkr to close as the detach has to
succeed.

Ok christos@.

(nat)

2017-07-01 05:50:10 UTC MAIN commitmail json YAML

sc_audiodev should be defined as a device_t as this is what audio_attach_mi
returns.

(nat)

2017-07-01 05:44:52 UTC MAIN commitmail json YAML

Broadcast all conditional variables if in being deactivated so no readers
or writers get stuck.

(nat)

2017-07-01 05:32:24 UTC MAIN commitmail json YAML

Don't keep writing data if an error has occurred.

(nat)

2017-06-27 09:44:13 UTC MAIN commitmail json YAML

Ensure to close open file descriptors.

Patch by pgoyette@.

(nat)

2017-06-27 09:35:05 UTC MAIN commitmail json YAML

2017-06-26 12:17:10 UTC MAIN commitmail json YAML

Better solution to mulaw/alaw conversion on big endian systems/sound
devices.

(nat)

2017-06-26 11:45:46 UTC MAIN commitmail json YAML

Rectify an error in mulaw/alaw conversion to big endian.  The atf audio
test should pass on sparc again.

(nat)

2017-06-25 10:28:23 UTC MAIN commitmail json YAML

Don't autoconfig for 24 bits precision.  It does not work as yet.

(nat)

2017-06-25 09:42:40 UTC MAIN commitmail json YAML

Don't start playback or recording on the hw ring only stream ring buffers.

(nat)

2017-06-25 09:40:17 UTC MAIN commitmail json YAML

Set hw parameters for linear to ulaw filters.

Tested by flxd@.

(nat)

2017-06-25 02:47:28 UTC MAIN commitmail json YAML

Check validbits against precision in vchan_autoconfig.  At present
validbits != precision is not supported.

This change will most likely break autoconfig on vs(4), for these machines
the parameters can be set to the paramaters reported at attach time via
sysctl.

(nat)

2017-06-25 02:16:41 UTC MAIN commitmail json YAML

Use LINEARNTOMULAW for 8 bits as well.

(nat)

2017-06-25 02:14:16 UTC MAIN commitmail json YAML

Remove stray ";" from defines.

(nat)

2017-06-25 02:11:40 UTC MAIN commitmail json YAML

Use pustream params when clearing the next block in the mixring.

(nat)

2017-06-25 02:09:47 UTC MAIN commitmail json YAML

rfill and pfill mixed up.

(nat)

2017-06-21 08:40:05 UTC MAIN commitmail json YAML

Check hardare precision in vchan_autoconfig.  Passes atf test again.

(nat)

2017-06-20 13:51:54 UTC MAIN commitmail json YAML

Fix defines to proper function names.

(nat)

2017-06-20 08:33:11 UTC MAIN commitmail json YAML

Allow for bigger data types to mix into to avoid overflow.

(nat)

2017-06-20 07:45:01 UTC MAIN commitmail json YAML

sc_iffreq -> sc_frequency.  NFCI.

Ok christos@.

(nat)

2017-06-20 07:42:32 UTC MAIN commitmail json YAML

No need to reset the audioinfo whem dealing with the hardware ring.  This
avoids a panic with some audio devices.

Ok christos@.

(nat)

2017-06-20 07:21:50 UTC MAIN commitmail json YAML

Add support for more formats.  At present 24 bit formats do not work and
have been disabled.

Ok christos@.

(nat)

2017-06-20 07:13:09 UTC MAIN commitmail json YAML

Rate conversion works at 8 bits, so enable it.

Ok christos@.

(nat)

2017-06-19 23:54:00 UTC MAIN commitmail json YAML

Use defines to specify pad audio format.  NFCI.

Ok christos@.

(nat)

2017-06-14 06:55:37 UTC MAIN commitmail json YAML

Ensure to detach children.

(nat)

2017-06-13 09:11:22 UTC MAIN commitmail json YAML

2017-06-13 06:39:09 UTC MAIN commitmail json YAML

2017-06-13 06:27:10 UTC MAIN commitmail json YAML

2017-06-13 06:25:20 UTC MAIN commitmail json YAML

Update the speaker man page, mentioning wsbell and new formatting for
ioctls.

Ok pgoyette@.

(nat)