Skip to content

RFC bttv: refactor audio_mux() and fix muting/unmuting

Frank Schäfer linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10bttv: audio_mux(): use a local variable "gpio_mute" instead of modifying the function parameter "mute"drivers/media/pci/bt8xx/bttv-driver.c+4 -41 reply
2/10bttv: audio_mux(): do not change the value of the v4l2 mute controldrivers/media/pci/bt8xx/bttv-driver.c+4 -41 reply
3/10bttv: do not save the audio input in audio_mux()drivers/media/pci/bt8xx/bttv-driver.c+5 -51 reply
4/10bttv: rename field 'audio' in struct 'bttv' to 'audio_input'drivers/media/pci/bt8xx/bttv-cards.c drivers/media/pci/bt8xx/bttv-driver.c drivers/media/pci/bt8xx/bttvp.h+8 -81 reply
5/10bttv: separate GPIO part from function audio_mux()drivers/media/pci/bt8xx/bttv-driver.c+12 -61 reply
6/10bttv: untangle audio input and mute settingdrivers/media/pci/bt8xx/bttv-driver.c+24 -271 reply
7/10bttv: do not unmute the device before the first opendrivers/media/pci/bt8xx/bttv-driver.c+3 -11 reply
8/10bttv: apply mute settings on opendrivers/media/pci/bt8xx/bttv-driver.c+2 -11 reply
9/10bttv: fix mute on last close of the video device nodedrivers/media/pci/bt8xx/bttv-driver.c+1 -12 replies
10/10bttv: avoid mute on last close when the radio device node is still opendrivers/media/pci/bt8xx/bttv-driver.c+4 -10 replies

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by.

PatchHans Verkuil
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 00/10] bttv: refactor audio_mux() and fix muting/unmuting

This patch series refactors function audio_mux() and fixes several issues related to muting/unmuting on probing, first open and last close.

Two thirds of the changes have already been sent as part of the RFC patch series "bttv: fix muting/unmuting on probing, first open and last close" v1 and v2, the new patches 3-6 untagle the mute and input setting code as much as possible as suggested by hans Verkuil.

Tested with a Hauppauge WinTV Theatre (model 37284, Rev B421).

Frank Schäfer (10):
bttv: audio_mux(): use a local variable "gpio_mute" instead of
modifying the function parameter "mute"
bttv: audio_mux(): do not change the value of the v4l2 mute control
bttv: do not save the audio input in audio_mux()
bttv: rename field 'audio' in struct 'bttv' to 'audio_input'
bttv: separate GPIO part from function audio_mux()
bttv: untangle audio input and mute setting
bttv: do not unmute the device before the first open
bttv: apply mute settings on open
bttv: fix mute on last close of the video device node
bttv: avoid mute on last close when the radio device node is still
open

 drivers/media/pci/bt8xx/bttv-cards.c  |    2 +-
 drivers/media/pci/bt8xx/bttv-driver.c |  101 ++++++++++++++++++---------------
 drivers/media/pci/bt8xx/bttvp.h       |    2 +-

3 Dateien geändert, 57 Zeilen hinzugefügt(+), 48 Zeilen entfernt(-)

Signature · 1 line
1.7.10.4