The NetBSD Project

CVS log for src/sys/arch/arm/sunxi/sunxi_codec.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / sunxi

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.12.4.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:24 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +6 -5 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed May 5 20:58:03 2021 UTC (3 years, 7 months ago) by jmcneill
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -6 lines
Fix GENERIC64 build

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed May 5 10:24:04 2021 UTC (3 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -2 lines
Add support for Allwinner V3s, from Rui-Xiang Guo.

Revision 1.8.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:18 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +7 -6 lines
Sync with HEAD.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jan 27 03:10:20 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jan 27 02:09:39 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Use DEVICE_COMPAT_EOL.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jan 25 14:20:39 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Jan 18 02:35:49 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +6 -5 lines
Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:31 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +2 -13 lines
Merge changes from current as of 20200406

Revision 1.7.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:18:20 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +2 -13 lines
Sync with head.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Feb 29 05:51:10 2020 UTC (4 years, 9 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Branch point for: thorpej-futex
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -13 lines
Remove rounding by 4 bytes on round_blocksize().
For drivers which supports only 16bit * 2channels sampling,
rounding by 4 bytes no longer meaningful.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:56 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +15 -82 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Jun 8 08:02:37 2019 UTC (5 years, 6 months ago) by isaki
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -5 lines
Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly.
  This eliminates need for audio.c to take care of such (old)
  drivers which don't return both of PLAYBACK and CAPTURE.
- All get_props() doesn't need to return AUDIO_PROP_MMAP.
  It is handled in the audio layer now.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed May 8 13:40:14 2019 UTC (5 years, 7 months ago) by isaki
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +12 -79 lines
Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c         -> dev/audio/audio.c (rewritten)
- dev/audiovar.h      -> dev/audio/audiovar.h
- dev/audio_dai.h     -> dev/audio/audio_dai.h
- dev/audio_if.h      -> dev/audio/audio_if.h
- dev/audiobell.c     -> dev/audio/audiobell.c
- dev/audiobellvar.h  -> dev/audio/audiobellvar.h
- dev/mulaw.[ch]      -> dev/audio/mulaw.[ch] + dev/audio/alaw.c

Revision 1.5.4.2: download - view: text, markup, annotated - select for diffs
Sat May 4 07:20:07 2019 UTC (5 years, 7 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.5.4.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.4.1: +3 -3 lines
Move dev/audio_if.h -> dev/audio/audio_if.h

Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 27 05:30:37 2019 UTC (5 years, 7 months ago) by isaki
Branches: isaki-audio2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +11 -78 lines
Adapt to audio2.

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Sun Apr 22 07:20:17 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +21 -23 lines
Sync with HEAD

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 20 18:07:40 2018 UTC (6 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, isaki-audio2-base
Branch point for: phil-wifi, isaki-audio2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +18 -21 lines
Remove sunxi_codec_drain(). It's optional, and as the DMA is not stopped
at this time I'm not sure what draining the fifo means here. Also,
we're not waiting for the drain to complete.
The upper level will play enough silence when needed to make sure interesting
data have been played.

In sunxi_codec_halt_output() and sunxi_codec_halt_input(), drain the fifo
(and wait for it to complete) before or after disabling the DMA.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Apr 19 18:19:17 2018 UTC (6 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -4 lines
Take the interrupt lock in interrupt handler. Seesm to fix the hang I was
seeing with a portaudio2 application.
Don't unmute at attach time, it will be done when the upper level starts
sending data.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:35:56 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +751 -0 lines
update from HEAD

Revision 1.3.2.1
Sat Oct 7 21:53:16 2017 UTC (7 years, 2 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.3: +0 -751 lines
file sunxi_codec.c was added on branch tls-maxphys on 2017-12-03 11:35:56 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Oct 7 21:53:16 2017 UTC (7 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: tls-maxphys, pgoyette-compat
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
Add A31 audio codec support.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:32 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.2.2.1: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +751 -0 lines
Sync with HEAD

Revision 1.2.2.1
Sun Aug 27 16:05:26 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.2: +0 -750 lines
file sunxi_codec.c was added on branch nick-nhusb on 2017-08-28 17:51:32 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 27 16:05:26 2017 UTC (7 years, 3 months ago) by jmcneill
Branches: MAIN
Branch point for: nick-nhusb
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +9 -10 lines
Add sun4i DMA and audio codec support.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 9 05:49:50 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +751 -0 lines
Pull up following revision(s) (requested by jmcneill in ticket #200):
	sys/arch/arm/sunxi/files.sunxi: 1.15-1.16
	sys/arch/arm/sunxi/sun6i_dma.c: 1.1-1.2
	sys/arch/arm/sunxi/sun8i_h3_ccu.c: 1.9-1.10
	sys/arch/arm/sunxi/sun8i_h3_codec.c: 1.1-1.2
	sys/arch/arm/sunxi/sunxi_ccu.h: 1.8
	sys/arch/arm/sunxi/sunxi_ccu_nkmp.c: 1.5
	sys/arch/arm/sunxi/sunxi_codec.c: 1.1
	sys/arch/arm/sunxi/sunxi_codec.h: 1.1
	sys/arch/evbarm/conf/SUNXI: 1.20-1.21
Add DMA controller driver for sun6i and later family SoCs.
--
Enable sun6idma
--
add DMA gate
--
Fix burst field encoding, and add a helper function to dump registers
from ddb.
--
Add support for H3 audio PLL and digital audio part.
--
Add support for Allwinner H3 audio codec.
--
Enable H3 audio support
--
h3_codec_pr_write: clear write mode bit after setting it; fixes an issue with output being mutex when skipping tracks in mpg123

Revision 1.1.2.1
Sun Aug 6 17:15:45 2017 UTC (7 years, 4 months ago) by snj
Branches: netbsd-8
FILE REMOVED
Changes since revision 1.1: +0 -751 lines
file sunxi_codec.c was added on branch netbsd-8 on 2017-08-09 05:49:50 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Aug 6 17:15:45 2017 UTC (7 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Branch point for: netbsd-8
Add support for Allwinner H3 audio codec.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>