diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2009-01-16 15:07:00 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2009-01-16 15:07:00 +0000 |
commit | 962697d427ba3bf185e166bb89b93bd0357e9ab5 (patch) | |
tree | b33be908d5da76b3be0e9d35ce7641fad5be7227 /multimedia/mplayer/files | |
parent | f148355ab299512915a840296396de1dfe35b4fe (diff) |
Set sample rate when resuming playback. This fixes AC3/DTS passthrough
on S/PDIF with snd_hda(4).
Submitted by: mav
Notes
Notes:
svn path=/head/; revision=226263
Diffstat (limited to 'multimedia/mplayer/files')
-rw-r--r-- | multimedia/mplayer/files/patch-libao2-ao_oss.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/mplayer/files/patch-libao2-ao_oss.c b/multimedia/mplayer/files/patch-libao2-ao_oss.c new file mode 100644 index 000000000000..ba7ccfb401eb --- /dev/null +++ b/multimedia/mplayer/files/patch-libao2-ao_oss.c @@ -0,0 +1,18 @@ +--- libao2/ao_oss.c.orig ++++ libao2/ao_oss.c +@@ -433,6 +433,7 @@ + fcntl(audio_fd, F_SETFD, FD_CLOEXEC); + #endif + ++ ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate); + oss_format = format2oss(ao_data.format); + ioctl (audio_fd, SNDCTL_DSP_SETFMT, &oss_format); + if(ao_data.format != AF_FORMAT_AC3) { +@@ -442,7 +443,6 @@ + int c = ao_data.channels-1; + ioctl (audio_fd, SNDCTL_DSP_STEREO, &c); + } +- ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate); + } + } + |